- Timestamp:
- 2 Jan 2010, 13:46:22 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup/branches/ulif-layout/src/waeup/users.py
r4577 r4625 34 34 del self[name] 35 35 36 class UserContainerView(Index):37 grok.require('waeup.manageUsers')38 grok.context(IUserContainer)39 grok.name('index')40 grok.template('master_template')41 42 def update(self, userid=None, adduser=None, edit=None, delete=None):43 yui.sam.need()44 yui.datatable.need()45 46 if edit is not None and userid is not None:47 self.redirect(self.url(userid))48 if delete is not None and userid is not None:49 self.context.delUser(userid)50 self.flash('User %s successfully deleted.' % userid)51 36 52 37 class AddUserForm(grok.AddForm): … … 82 67 formview_name = 'adduserform' # The name of the formview we want 83 68 # to be rendered in this viewlet. 84 85 class UserContainerMain(grok.Viewlet):86 grok.require('waeup.manageUsers')87 grok.viewletmanager(MainArea)88 grok.template('usermain')89 grok.view(UserContainerView)90 69 91 70
Note: See TracChangeset for help on using the changeset viewer.