[Mpuls-commits] r1444 - wasko/branches/2.0/waskaweb/controllers
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Wed Feb 10 11:07:02 CET 2010
Author: torsten
Date: 2010-02-10 11:07:00 +0100 (Wed, 10 Feb 2010)
New Revision: 1444
Modified:
wasko/branches/2.0/waskaweb/controllers/administration.py
Log:
* waskaweb/controllers/administration.py (AdministrationController.editUserAction): Deleted. Implemented in mpulsweb now.
Modified: wasko/branches/2.0/waskaweb/controllers/administration.py
===================================================================
--- wasko/branches/2.0/waskaweb/controllers/administration.py 2010-02-10 10:05:35 UTC (rev 1443)
+++ wasko/branches/2.0/waskaweb/controllers/administration.py 2010-02-10 10:07:00 UTC (rev 1444)
@@ -76,9 +76,6 @@
SETEDITOR_NOTIFICATION_SUCCESS_REST_HEAD = \
_('adm_set_editor_success_text_rest_head')
-EDIT_USER_SUCCESS_HEADER = _('adm_edit_user_header')
-EDIT_USER_SUCCESS_TEXT = _('adm_edit_user_text')
-
class AdministrationController(BaseAdministrationController):
def index(self):
@@ -94,29 +91,6 @@
return render('/administration/account_deactivated.mako')
@checkRole('admin_ka')
- def editUserAction(self):
- validator = EditUserForm()
- try:
- try:
- uid = request.params['uid']
- c.uo = UserObject(uid)
- form_result = validator.to_python(request.params)
- c.uo.setData(form_result)
- c.uo.store()
- c.success_for = EDIT_USER_SUCCESS_HEADER
- c.success_text = EDIT_USER_SUCCESS_TEXT
- c.url_ok = "/administration/overviewUser"
- return render('/administration/dialogs/success_edit_user.mako')
- #return self.overviewUser()
- except formencode.Invalid, error:
- c.form_result = error.value
- c.form_errors = error.error_dict or {}
- return render('/administration/edit_user.mako')
- except:
- return render('/tests/trace.mako')
- #return "Es ist ein Fehler beim Speichern des Benutzers aufgetreten."
-
- @checkRole('admin_ka')
def deleteUser(self, id, confirmed='0'):
id = self._checkInt(id)
confirmed = self._checkBool(confirmed)
More information about the Mpuls-commits
mailing list