[Mpuls-commits] r3898 - base/trunk/mpulsweb/controllers

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Oct 6 12:38:55 CEST 2010


Author: torsten
Date: 2010-10-06 12:38:55 +0200 (Wed, 06 Oct 2010)
New Revision: 3898

Modified:
   base/trunk/mpulsweb/controllers/tags.py
Log:
* mpulsweb/controllers/tags.py (TagsController.overview): Save tags in
c.tags. Changed rendering of page (is not a formular anymore)


Modified: base/trunk/mpulsweb/controllers/tags.py
===================================================================
--- base/trunk/mpulsweb/controllers/tags.py	2010-10-06 10:37:51 UTC (rev 3897)
+++ base/trunk/mpulsweb/controllers/tags.py	2010-10-06 10:38:55 UTC (rev 3898)
@@ -3,6 +3,7 @@
 
 import formencode
 
+from pylons import tmpl_context as c
 from mpulsweb.lib.base import BaseController, render
 from mpulsweb.lib.security import checkRole
 
@@ -20,10 +21,9 @@
         defaults = {'tags': []}
         id = self._checkInt(id)
         case = self._loadCase(id)
-        defaults['tags'] = case.getTags()
+        c.tags = case.getTags()
         form = render('/tags/tags.mako')
-        return formencode.htmlfill.render(form, 
-                                   defaults=defaults)
+        return formencode.htmlfill.render(form)
 
     @checkRole(('cm_ka'))
     def editAction(self):



More information about the Mpuls-commits mailing list