Browse Source

* added more specific information to a log message

* added the name of the current template to the footer
* added the name of the possibly broken themplate causing invalid message handling
master
lars 12 years ago
parent
commit
6984bc8841
  1. 3
      plugins/volume_mount/volume_mount.py
  2. 3
      templates/footer.cs
  3. 1
      templates/main.cs

3
plugins/volume_mount/volume_mount.py

@ -66,7 +66,8 @@ class volume_mount(cryptobox.plugins.base.CryptoBoxPlugin):
return "volume_status"
if self.container.get_type() != cbxContainer.CONTAINERTYPES["plain"]:
## not a plain container
self.cbox.log.info("plugin 'volume_mount' - invalid container type")
self.cbox.log.info("plugin 'volume_mount' - invalid container "
+ "type: %s" % str(self.container.get_type()))
self.hdf["Data.Warning"] = "Plugins.volume_mount.InvalidContainerType"
return "volume_status"
try:

3
templates/footer.cs

@ -28,6 +28,7 @@
Settings.Language=<?cs var:html_escape(Settings.Language) ?>
Data.Version=<?cs var:html_escape(Data.Version) ?>
Data.ScriptURL=<?cs var:html_escape(Data.ScriptURL) ?>
Settings.TemplateFile=<?cs var:html_escape(Settings.TemplateFile) ?>
<?cs each:x = Data.Status.Plugins ?>Data.Status.Plugins.<?cs
var:name(x) ?>=<?cs var: html_escape(x) ?>
<?cs /each
@ -36,7 +37,7 @@ Data.ScriptURL=<?cs var:html_escape(Data.ScriptURL) ?>
<!-- $Revision$ -->
<?cs # check, if the macro 'handle_messages' was called before - otherwise place a warning ?>
<?cs if:!messages_are_handled ?>MESSAGES WERE NOT HANDLED PROPERLY - PLEASE FIX THIS!<?cs /if ?>
<?cs if:!messages_are_handled ?>MESSAGES WERE NOT HANDLED PROPERLY - PLEASE FIX THIS!<br/>Maybe check template file '<?cs var:html_escape(Settings.TemplateFile) ?>.<?cs /if ?>
</body>
</html>

1
templates/main.cs

@ -17,3 +17,4 @@
<?cs include:Settings.TemplateDir + '/footer.cs' ?>
Loading…
Cancel
Save