Changeset 7202 for main/waeup.sirp/trunk
- Timestamp:
- 25 Nov 2011, 20:06:27 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp/browser
- Files:
-
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/browser/pages.py
r7197 r7202 424 424 return site_roles_userfriendly 425 425 426 class MyStudentsPage(WAeUPPage):427 """Browse students dynamically assigned to officers.428 """429 grok.name('my_students')430 grok.require('waeup.editUser')431 grok.context(IUserAccount)432 grok.template('mystudentspage')433 title = 'Portal Users'434 label = u"My Students"435 436 def title(self):437 return "%s (%s)" % (self.context.title, self.context.__name__)438 439 426 # 440 427 # Search pages... -
main/waeup.sirp/trunk/src/waeup/sirp/browser/viewlets.py
r7195 r7202 375 375 return 376 376 377 class MyStudents(LeftSidebarLink):378 """A link to list students dynamically assigned to officers.379 """380 grok.order(9)381 grok.require('waeup.Public')382 title = u'My Students'383 icon = ''384 385 @property386 def url(self):387 account_object = get_user_account(self.request)388 if account_object:389 return self.view.url(account_object) + '/my_students'390 return391 392 377 # 393 378 # Manage ("Edit settings") actions...
Note: See TracChangeset for help on using the changeset viewer.