Changeset 4627 for waeup/branches/ulif-layout
- Timestamp:
- 2 Jan 2010, 13:49:37 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup/branches/ulif-layout/src/waeup/browser/pages.py
r4610 r4627 4 4 import grok 5 5 from waeup.browser import WAeUPPage, WAeUPEditFormPage 6 from waeup.interfaces import IUniversity, IWAeUPObject 6 from waeup.interfaces import IUniversity, IWAeUPObject, IUserContainer 7 7 from waeup.widgets.interfaces import ITableProvider 8 8 from zope.app.security.interfaces import (IAuthentication, … … 108 108 self.redirect(self.url(self.context)) 109 109 return 110 111 # 112 # User container pages... 113 # 114 115 class UserContainerPage(WAeUPPage): 116 grok.require('waeup.manageUsers') 117 grok.context(IUserContainer) 118 grok.name('index') 119 title = 'Users' 120 121 def update(self, userid=None, adduser=None, edit=None, delete=None): 122 if edit is not None and userid is not None: 123 self.redirect(self.url(userid)) 124 if delete is not None and userid is not None: 125 self.context.delUser(userid) 126 self.flash('User %s successfully deleted.' % userid)
Note: See TracChangeset for help on using the changeset viewer.