[Mpuls-commits] r1382 - wasko/branches/2.0/waskaweb/controllers

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Feb 9 15:01:00 CET 2010


Author: torsten
Date: 2010-02-09 15:00:59 +0100 (Tue, 09 Feb 2010)
New Revision: 1382

Modified:
   wasko/branches/2.0/waskaweb/controllers/administration.py
Log:
* waskaweb/controllers/administration.py (AdministrationController.createUserGroupAction): Deleted.


Modified: wasko/branches/2.0/waskaweb/controllers/administration.py
===================================================================
--- wasko/branches/2.0/waskaweb/controllers/administration.py	2010-02-09 14:00:38 UTC (rev 1381)
+++ wasko/branches/2.0/waskaweb/controllers/administration.py	2010-02-09 14:00:59 UTC (rev 1382)
@@ -172,34 +172,6 @@
             #return "Es ist ein Fehler beim Speichern des Benutzers aufgetreten."
 
     @checkRole('admin_ka')
-    def createUserGroupAction(self):
-        factory = UserGroupFactory()
-        validator = NewUserGroupForm()
-        try:
-            try:
-                c.form_result = validator.to_python(request.params)
-                c.ugo = factory.create(c.form_result.get('name'))
-                c.success_for = NEW_USERGROUP_SUCCESS_HEADER
-                c.success_text = NEW_USERGROUP_SUCCESS_TEXT
-                c.url_ok = "/administration/overviewUserGroups"
-                return render('/administration/dialogs/success_new_usergroup.mako')
-            except formencode.Invalid, error:
-                c.form_result = error.value
-                c.form_errors = error.error_dict or {}
-                form = render('/administration/new_usergroup.mako')
-                return htmlfill.render(unicode(form, 'utf-8'),
-                                       c.form_result,
-                                       c.form_errors,
-                                       auto_insert_errors=False)
-            except:
-                c.failed_for = NEW_USERGROUP_FAILURE_HEADER
-                c.failed_text = NEW_USERGOUP_FAILURE_TEXT
-                c.url_ok = "/administration/overviewUserGroups"
-                return render('/administration/dialogs/failed_new_usergroup.mako')
-        except:
-            return render('/tests/trace.mako')
-
-    @checkRole('admin_ka')
     def createUserAction(self):
         validator = NewUserForm()
         c.user_password = None



More information about the Mpuls-commits mailing list