Changeset 7202


Ignore:
Timestamp:
25 Nov 2011, 20:06:27 (13 years ago)
Author:
Henrik Bettermann
Message:

Remove MyStudentsPage? view components. I will implement another solution.

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  
    424424        return site_roles_userfriendly
    425425
    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 
    439426#
    440427# Search pages...
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/viewlets.py

    r7195 r7202  
    375375        return
    376376
    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     @property
    386     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         return
    391 
    392377#
    393378# Manage ("Edit settings") actions...
Note: See TracChangeset for help on using the changeset viewer.