Changeset 7335 for main/waeup.sirp/trunk/src/waeup/sirp/browser/pages.py
- Timestamp:
- 13 Dec 2011, 07:30:25 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/browser/pages.py
r7334 r7335 1715 1715 tabtwoactions = ['Add course referrer', 1716 1716 'Remove selected course referrers','Cancel'] 1717 tabthreeactions1 = ['Remove selected local roles'] 1718 tabthreeactions2 = ['Add local role'] 1717 1719 1718 1720 @property … … 1751 1753 self.redirect(self.url(self.context)) 1752 1754 return 1755 1756 def getLocalRoles(self): 1757 roles = ILocalRolesAssignable(self.context) 1758 return roles() 1759 1760 def getUsers(self): 1761 """Get a list of all users. 1762 """ 1763 for key, val in grok.getSite()['users'].items(): 1764 url = self.url(val) 1765 yield(dict(url=url, name=key, val=val)) 1766 1767 def getUsersWithLocalRoles(self): 1768 return get_users_with_local_roles(self.context) 1769 1770 @grok.action('Add local role', validator=NullValidator) 1771 def addLocalRole(self, **data): 1772 return add_local_role(self, 3, **data) 1773 1774 @grok.action('Remove selected local roles') 1775 def delLocalRoles(self, **data): 1776 return del_local_roles(self,3,**data) 1753 1777 1754 1778
Note: See TracChangeset for help on using the changeset viewer.