Last change
on this file since 5870 was
5870,
checked in by Henrik Bettermann, 14 years ago
|
Add 'position' field to user data.
Redesign members page.
|
-
Property svn:keywords set to
Id
|
File size:
396 bytes
|
Rev | Line | |
---|
[5870] | 1 | from plone.app.users.browser.personalpreferences import UserDataPanelAdapter |
---|
| 2 | |
---|
| 3 | class EnhancedUserDataPanelAdapter(UserDataPanelAdapter): |
---|
| 4 | """ |
---|
| 5 | """ |
---|
| 6 | def get_position(self): |
---|
| 7 | return self.context.getProperty('position', '') |
---|
| 8 | def set_position(self, value): |
---|
| 9 | return self.context.setMemberProperties({'position': value}) |
---|
| 10 | position = property(get_position, set_position) |
---|
| 11 | |
---|
| 12 | |
---|
| 13 | |
---|
| 14 | |
---|
Note: See
TracBrowser for help on using the repository browser.