comparison pylons_app/controllers/admin/permissions.py @ 418:63c697d1a631

added logic for changin defualt permissions, and option to overwrite all defualt permissions on each repository fixed registration form text
author Marcin Kuzminski <marcin@python-works.com>
date Sat, 21 Aug 2010 18:31:28 +0200
parents 3ed2d46a2ca7
children
comparison
equal deleted inserted replaced
417:3ed2d46a2ca7 418:63c697d1a631
95 [x[0] for x in self.register_choices], 95 [x[0] for x in self.register_choices],
96 [x[0] for x in self.create_choices])() 96 [x[0] for x in self.create_choices])()
97 97
98 try: 98 try:
99 form_result = _form.to_python(dict(request.POST)) 99 form_result = _form.to_python(dict(request.POST))
100 form_result.update({'perm_user_name':id})
100 permission_model.update(form_result) 101 permission_model.update(form_result)
101 h.flash(_('Default permissions updated succesfully'), 102 h.flash(_('Default permissions updated succesfully'),
102 category='success') 103 category='success')
103 104
104 except formencode.Invalid as errors: 105 except formencode.Invalid as errors: