[Mpuls-commits] r1052 - wasko/branches/2.0/waskaweb/controllers
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Mon Feb 1 12:52:03 CET 2010
Author: torsten
Date: 2010-02-01 12:52:01 +0100 (Mon, 01 Feb 2010)
New Revision: 1052
Modified:
wasko/branches/2.0/waskaweb/controllers/case.py
Log:
* waskaweb/controllers/case.py (CaseController.newLogbookEntry):
Deleted. Not called from anywhere now.
Modified: wasko/branches/2.0/waskaweb/controllers/case.py
===================================================================
--- wasko/branches/2.0/waskaweb/controllers/case.py 2010-02-01 11:50:19 UTC (rev 1051)
+++ wasko/branches/2.0/waskaweb/controllers/case.py 2010-02-01 11:52:01 UTC (rev 1052)
@@ -851,28 +851,6 @@
return render('/tests/trace.mako')
@checkRole('cm_ka')
- def newLogbookEntry(self, id):
- id = self._checkInt(id)
-
- entry = LogbookEntry()
- entry.setDate(datetime.now())
- entry.setKind(-1)
-
- form_defaults = {}
- c.form_errors = {}
-
- form_defaults['date'] = entry.getDate()
- form_defaults['time'] = entry.getTime()
- form_defaults['kind'] = entry.getKindAsInt()
- form_defaults['case_id'] = id
-
- form = render('/logbook/new.mako')
- return formencode.htmlfill.render(unicode(form, 'utf-8'),
- defaults=form_defaults,
- auto_insert_errors=False,
- errors=c.form_errors)
-
- @checkRole('cm_ka')
@checkPrivacyStatement('keepActive')
def keepActive(self, id, confirmed):
entry = LogbookEntry()
More information about the Mpuls-commits
mailing list