Ignore:
Timestamp:
25 Nov 2011, 08:32:43 (13 years ago)
Author:
Henrik Bettermann
Message:

Do not fill user description automatically.

Hide user description in user edit mode. We could use the description field also for notices appearing in a user notice box on the left (to be implemented).

File:
1 edited

Legend:

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

    r7195 r7197  
    348348        return "Edit user %s" % self.context.__name__
    349349
     350    def setUpWidgets(self, ignore_request=False):
     351        super(UserManageFormPage,self).setUpWidgets(ignore_request)
     352        self.widgets['title'].displayWidth = 30
     353        self.widgets['description'].height = 3
     354
    350355    @grok.action('Save')
    351356    def save(self, **data):
     
    376381    grok.name('index')
    377382    grok.require('waeup.editUser')
    378     form_fields = grok.AutoFields(IUserAccount).omit('name', 'roles')
     383    form_fields = grok.AutoFields(IUserAccount).omit(
     384        'name', 'description', 'roles')
    379385    label = u"My Preferences"
     386
     387    def setUpWidgets(self, ignore_request=False):
     388        super(UserManageFormPage,self).setUpWidgets(ignore_request)
     389        self.widgets['title'].displayWidth = 30
    380390
    381391    def title(self):
Note: See TracChangeset for help on using the changeset viewer.