- Timestamp:
- 25 Nov 2011, 08:32:43 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/authentication.py
r7193 r7197 88 88 if title is None: 89 89 title = name 90 if description is None:91 description = title90 #if description is None: 91 # description = title 92 92 self.title = title 93 93 self.description = description -
main/waeup.sirp/trunk/src/waeup/sirp/browser/pages.py
r7195 r7197 348 348 return "Edit user %s" % self.context.__name__ 349 349 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 350 355 @grok.action('Save') 351 356 def save(self, **data): … … 376 381 grok.name('index') 377 382 grok.require('waeup.editUser') 378 form_fields = grok.AutoFields(IUserAccount).omit('name', 'roles') 383 form_fields = grok.AutoFields(IUserAccount).omit( 384 'name', 'description', 'roles') 379 385 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 380 390 381 391 def title(self): -
main/waeup.sirp/trunk/src/waeup/sirp/interfaces.py
r7193 r7197 200 200 description = u'Real name of user', 201 201 required = False,) 202 description = schema.Text Line(203 title = u'Description ',202 description = schema.Text( 203 title = u'Description/Notice', 204 204 required = False,) 205 205 roles = schema.List( -
main/waeup.sirp/trunk/src/waeup/sirp/userscontainer.py
r7193 r7197 36 36 if title is None: 37 37 title = name 38 if description is None:39 description = title38 #if description is None: 39 # description = title 40 40 self[name] = Account(name, password, title, description, roles) 41 41 -
main/waeup.sirp/trunk/src/waeup/sirp/userscontainer.txt
r7172 r7197 40 40 41 41 >>> bob.description 42 'bob'43 42 44 As we did not give a title nor description, the name was taken instead 45 for these values. The password, however, is stored encoded: 43 44 As we did not give a title, the name was taken instead 45 for title (but not for description). The password, however, is stored encoded: 46 46 47 47 >>> bob.password
Note: See TracChangeset for help on using the changeset viewer.