* 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
This commit is contained in:
lars 2009-06-11 09:21:03 +00:00
parent 6ad1523510
commit 6984bc8841
3 changed files with 5 additions and 2 deletions

View File

@ -66,7 +66,8 @@ class volume_mount(cryptobox.plugins.base.CryptoBoxPlugin):
return "volume_status" return "volume_status"
if self.container.get_type() != cbxContainer.CONTAINERTYPES["plain"]: if self.container.get_type() != cbxContainer.CONTAINERTYPES["plain"]:
## not a plain container ## 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" self.hdf["Data.Warning"] = "Plugins.volume_mount.InvalidContainerType"
return "volume_status" return "volume_status"
try: try:

View File

@ -28,6 +28,7 @@
Settings.Language=<?cs var:html_escape(Settings.Language) ?> Settings.Language=<?cs var:html_escape(Settings.Language) ?>
Data.Version=<?cs var:html_escape(Data.Version) ?> Data.Version=<?cs var:html_escape(Data.Version) ?>
Data.ScriptURL=<?cs var:html_escape(Data.ScriptURL) ?> 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 <?cs each:x = Data.Status.Plugins ?>Data.Status.Plugins.<?cs
var:name(x) ?>=<?cs var: html_escape(x) ?> var:name(x) ?>=<?cs var: html_escape(x) ?>
<?cs /each <?cs /each
@ -36,7 +37,7 @@ Data.ScriptURL=<?cs var:html_escape(Data.ScriptURL) ?>
<!-- $Revision$ --> <!-- $Revision$ -->
<?cs # check, if the macro 'handle_messages' was called before - otherwise place a warning ?> <?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> </body>
</html> </html>

View File

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