Changeset 6181 for main/waeup.sirp/trunk/src/waeup/sirp/browser/pages.py
- Timestamp:
- 21 May 2011, 07:46:51 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/browser/pages.py
r6166 r6181 23 23 from zope.exceptions import DuplicationError 24 24 from zope.session.interfaces import ISession 25 from zope.event import notify 25 26 from waeup.sirp.browser.resources import warning, datepicker, tabs, datatable 26 27 from waeup.sirp.browser import ( … … 40 41 from waeup.sirp.university.vocabularies import course_levels 41 42 from waeup.sirp.widgets.restwidget import ReSTDisplayWidget 43 from waeup.sirp.users import LocalRoleSetEvent 42 44 43 45 grok.context(IWAeUPObject) … … 50 52 role_manager = IPrincipalRoleManager(view.context) 51 53 role_manager.assignRoleToPrincipal(localrole, user) 54 notify(LocalRoleSetEvent(view.context, localrole, user, granted=True)) 55 #import pdb; pdb.set_trace() 52 56 view.redirect(view.url(view.context, u'@@manage')+'#tab-%s' % tab) 53 57 return … … 63 67 if not isinstance(child_id, list): 64 68 child_id = [child_id] 65 #import pdb; pdb.set_trace()66 69 deleted = [] 67 70 role_manager = IPrincipalRoleManager(view.context) … … 71 74 try: 72 75 role_manager.unsetRoleForPrincipal(localrole, user_name) 76 notify(LocalRoleSetEvent(view.context, localrole, user_name, granted=False)) 73 77 deleted.append(id) 74 78 except:
Note: See TracChangeset for help on using the changeset viewer.