[Mpuls-commits] r1047 - wasko/branches/2.0/waskaweb/controllers

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Feb 1 12:28:28 CET 2010


Author: torsten
Date: 2010-02-01 12:28:27 +0100 (Mon, 01 Feb 2010)
New Revision: 1047

Modified:
   wasko/branches/2.0/waskaweb/controllers/logbook.py
Log:
* waskaweb/controllers/logbook.py (LogbookController.printout): New.


Modified: wasko/branches/2.0/waskaweb/controllers/logbook.py
===================================================================
--- wasko/branches/2.0/waskaweb/controllers/logbook.py	2010-02-01 11:22:26 UTC (rev 1046)
+++ wasko/branches/2.0/waskaweb/controllers/logbook.py	2010-02-01 11:28:27 UTC (rev 1047)
@@ -49,4 +49,13 @@
         c.eval_effort = logbook.getEvaluation()
         return render('/logbook/overview.mako')
 
+    @checkRole(('cm_ka'))
+    def printout(self, id):
+        id = self._checkInt(id)
+        c.print_version = 1
+        logbook = Logbook()
+        logbook.loadById(id)
+        c.logbook = logbook
+        return render('/logbook/overview_print.mako')
+
 # vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8:



More information about the Mpuls-commits mailing list