[Mpuls-commits] r1059 - wasko/branches/2.0/waskaweb/controllers
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Mon Feb 1 14:24:04 CET 2010
Author: torsten
Date: 2010-02-01 14:24:02 +0100 (Mon, 01 Feb 2010)
New Revision: 1059
Modified:
wasko/branches/2.0/waskaweb/controllers/case.py
Log:
* waskaweb/controllers/case.py (CaseController.editLogbookEntry):
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 13:19:56 UTC (rev 1058)
+++ wasko/branches/2.0/waskaweb/controllers/case.py 2010-02-01 13:24:02 UTC (rev 1059)
@@ -917,34 +917,6 @@
return render('/logbook/dialogs/failed_create_logbook_entry.mako')
@checkRole('cm_ka')
- def editLogbookEntry(self, id):
- id = self._checkInt(id)
- c.form_errors = {}
- entry_data = {}
- try:
- entry = LogbookEntry()
- entry.loadById(id)
- entry_data['id'] = entry.id
- entry_data['date'] = entry.getDate()
- entry_data['time'] = entry.getTime()
- entry_data['duration'] = entry.getDuration()
- entry_data['kind'] = entry.getKindAsInt()
- entry_data['notice'] = entry.getNotice()
- entry_data['short_notice'] = entry.getShortNotice()
- c.entry = entry
- form = render('/logbook/edit.mako')
- return formencode.htmlfill.render(unicode(form, 'utf-8'),
- defaults=entry_data,
- auto_insert_errors=False,
- errors={})
- except:
- traceback.print_exc(file=sys.stderr)
- c.failed_for = LOGBOOK_ENTRY_SHOW_FAILED
- c.failed_text = LOGBOOK_ENTRY_SHOW_FAILED_TEXT
- c.url_ok = "/case/logbook/%s" % str(session['case'].id)
- return render('/logbook/dialogs/failed_show_logbook_entry.mako')
-
- @checkRole('cm_ka')
def saveLogbookEntry(self):
params = request.params
id = self._checkInt(params.getone('id'))
More information about the Mpuls-commits
mailing list