Changeset 6181 for main/waeup.sirp/trunk/src/waeup
- Timestamp:
- 21 May 2011, 07:46:51 (14 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp/browser
- Files:
-
- 2 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: -
main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/usercontainerpage.pt
r5942 r6181 11 11 <th>Title</th> 12 12 <th>Description</th> 13 <th>Local Roles</th> 13 14 <th>Actions</th> 14 15 </tr> … … 19 20 <td tal:content="account/title">Title</td> 20 21 <td tal:content="account/description">Description</td> 22 <td tal:content="account/getLocalRoles">Local Roles</td> 21 23 <td class="text-right"> 22 23 <input type="hidden" name="userid" 24 25 26 27 24 <form method="post"> 25 <input type="hidden" name="userid" 26 tal:attributes="value account/name"/> 27 <input type="submit" name="edit" value="edit" /> 28 <input type="submit" name="delete" value="delete" /> 29 </form> 28 30 </td> 29 31 </tr>
Note: See TracChangeset for help on using the changeset viewer.