comparison rhodecode/controllers/admin/users_groups.py @ 3715:25dbbdae3ed9 beta

consistent handling of grant/revoke of permissions widgets - use 1 method for users and for users groups - use common JS for ajax revoke - cleanup code
author Marcin Kuzminski <marcin@python-works.com>
date Mon, 08 Apr 2013 23:49:08 +0200
parents 7e3d89d9d3a2
children 87e6960e250b
comparison
equal deleted inserted replaced
3714:7e3d89d9d3a2 3715:25dbbdae3ed9
293 elif obj_type == 'user_group': 293 elif obj_type == 'user_group':
294 pass 294 pass
295 Session().commit() 295 Session().commit()
296 except Exception: 296 except Exception:
297 log.error(traceback.format_exc()) 297 log.error(traceback.format_exc())
298 h.flash(_('An error occurred during deletion of group user'), 298 h.flash(_('An error occurred during revoking of permission'),
299 category='error') 299 category='error')
300 raise HTTPInternalServerError() 300 raise HTTPInternalServerError()
301 301
302 def show(self, id, format='html'): 302 def show(self, id, format='html'):
303 """GET /users_groups/id: Show a specific item""" 303 """GET /users_groups/id: Show a specific item"""