diff --git a/pythonrewrite/bin2/CryptoBoxWebserverSettings.py b/pythonrewrite/bin2/CryptoBoxWebserverSettings.py index 6caaebf..13c6b18 100644 --- a/pythonrewrite/bin2/CryptoBoxWebserverSettings.py +++ b/pythonrewrite/bin2/CryptoBoxWebserverSettings.py @@ -11,8 +11,8 @@ class CryptoBoxWebserverSettings: ## put all found Settings values in the dictionary for key in self.cbxPrefs["Settings"].keys(): website.settings["Settings."+key] = self.cbxPrefs["Settings"][key] - # for the logbook - self.log.info(self.cbxPrefs) + + ## for reading the logbook, we have to propagate it's # filename website.settings["Settings.Details"] = self.cbxPrefs["Log"]["Details"] #self.log.info(self.settings) diff --git a/pythonrewrite/bin2/CryptoBoxWebserverSites.py b/pythonrewrite/bin2/CryptoBoxWebserverSites.py index be9f25e..c22e861 100755 --- a/pythonrewrite/bin2/CryptoBoxWebserverSites.py +++ b/pythonrewrite/bin2/CryptoBoxWebserverSites.py @@ -41,6 +41,8 @@ class CryptoBoxWebserverSites(CryptoBox.CryptoBoxProps, CryptoBoxWebserverSettin self.__prepare("show_log") import filehandling self.settings["Data.Log"] = filehandling.read_file(self.settings["Settings.Details"]) + #TODO: give the logs a nice format for displaying as html + # sed s/$/<\/br>/ return website.render(self) def status(self): diff --git a/pythonrewrite/templates/footer.cs b/pythonrewrite/templates/footer.cs index a784024..3107ddf 100644 --- a/pythonrewrite/templates/footer.cs +++ b/pythonrewrite/templates/footer.cs @@ -1,7 +1,7 @@ -

+

diff --git a/pythonrewrite/templates/form_system.cs b/pythonrewrite/templates/form_system.cs index 4ae64d2..9e0f001 100644 --- a/pythonrewrite/templates/form_system.cs +++ b/pythonrewrite/templates/form_system.cs @@ -5,24 +5,23 @@

diff --git a/pythonrewrite/templates/header.cs b/pythonrewrite/templates/header.cs index 8bbf8a7..6b2bf36 100644 --- a/pythonrewrite/templates/header.cs +++ b/pythonrewrite/templates/header.cs @@ -12,7 +12,7 @@ + elif:Data.Redirect.Action ?> @@ -24,7 +24,7 @@
- &">
diff --git a/pythonrewrite/templates/macros.cs b/pythonrewrite/templates/macros.cs index 332149c..7a180c7 100644 --- a/pythonrewrite/templates/macros.cs +++ b/pythonrewrite/templates/macros.cs @@ -77,6 +77,6 @@ def:link(path, attr1, value1, attr2, value2) def:print_form_header() ?>
" method="post" enctype="application/x-www-from-urlencoded" accept-charset="utf-8">" method="post" enctype="application/x-www-from-urlencoded" accept-charset="utf-8"> diff --git a/pythonrewrite/templates/nav.cs b/pythonrewrite/templates/nav.cs index c870174..fd7286b 100644 --- a/pythonrewrite/templates/nav.cs +++ b/pythonrewrite/templates/nav.cs @@ -5,21 +5,21 @@ - + diff --git a/pythonrewrite/templates/show_status.cs b/pythonrewrite/templates/show_status.cs index 803b281..06efffc 100644 --- a/pythonrewrite/templates/show_status.cs +++ b/pythonrewrite/templates/show_status.cs @@ -17,12 +17,12 @@ 0 ?>

:

0 ?>

:

diff --git a/pythonrewrite/templates/show_volumes.cs b/pythonrewrite/templates/show_volumes.cs index 7a5d8a8..05df5aa 100644 --- a/pythonrewrite/templates/show_volumes.cs +++ b/pythonrewrite/templates/show_volumes.cs @@ -2,7 +2,7 @@ -" title="">