[Mpuls-commits] r2073 - wasko/branches/2.0/jmdweb/controllers

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Mar 23 12:55:43 CET 2010


Author: torsten
Date: 2010-03-23 12:55:42 +0100 (Tue, 23 Mar 2010)
New Revision: 2073

Modified:
   wasko/branches/2.0/jmdweb/controllers/case.py
Log:
* jmdweb/controllers/case.py (keepActive): Deleted. Now defined in
	mpulsweb.


Modified: wasko/branches/2.0/jmdweb/controllers/case.py
===================================================================
--- wasko/branches/2.0/jmdweb/controllers/case.py	2010-03-23 11:54:27 UTC (rev 2072)
+++ wasko/branches/2.0/jmdweb/controllers/case.py	2010-03-23 11:55:42 UTC (rev 2073)
@@ -215,28 +215,4 @@
     def createExportScheme(self):
         return render('casemanagement/create_export_scheme.mako')
 
-    @checkRole('cm_ka')
-    @checkPrivacyStatement('keepActive')
-    def keepActive(self, id, confirmed):
-        entry = LogbookEntry()
-        entry.setDate(datetime.now())
-        entry.setKind(-2)
-        form_defaults = {}
-        form_defaults['date'] = entry.getDate()
-        form_defaults['time'] = entry.getTime()
-        form_defaults['kind'] = entry.getKindAsInt()
-        form_defaults['kind'] = entry.getKindAsInt()
-        form_defaults['short_notice'] = u"Aufbewahrung verlängert"
-        form_defaults['notice'] = (u"Bitte geben Sie hier den Grund für"
-                                   u" die Verlängerung der Aufbewahrungsfrist"
-                                   u" ein.")
-        id = self._checkInt(id)
-        c.entry = entry
-        c.form_errors = {}
-        form = render('/logbook/new.mako')
-        return formencode.htmlfill.render(unicode(form, 'utf-8'),
-                                          defaults=form_defaults,
-                                          auto_insert_errors=False,
-                                          errors=c.form_errors)
-
 # vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8:



More information about the Mpuls-commits mailing list