Ignore:
Timestamp:
22 Nov 2011, 10:03:49 (13 years ago)
Author:
Henrik Bettermann
Message:

Add UserManageEditPage? for portal users (not students). Tests will follow.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/pages.py

    r7162 r7164  
    300300    grok.name('manage')
    301301    grok.template('usereditformpage')
     302    grok.require('waeup.manageUsers')
    302303
    303304    form_fields = grok.AutoFields(IUserAccount).omit('name')
    304     grok.require('waeup.manageUsers')
    305305
    306306    title = "Portal Users"
     
    331331        self.redirect(self.url(self.context.__parent__))
    332332        return
     333
     334class UserManageEditPage(UserManageFormPage):
     335    """Edit a user account.
     336    """
     337    grok.name('index')
     338    grok.require('waeup.editUser')
     339    form_fields = grok.AutoFields(IUserAccount).omit('name', 'roles')
     340
     341    def label(self):
     342        return "My preferences (username = %s)" % self.context.__name__
    333343
    334344#
Note: See TracChangeset for help on using the changeset viewer.