Alexander Schad wrote:
Hi ! I have a product that uses userroles to set certain permissions on objects. i added user roles to my product (MUSHandle is the actual instance of my Product) with this:
data=list(MUSHandle.__ac_roles__)
data.append('Kunde') data.append('Vertriebspartner') data.append('Executive') data.append('Verwalter') MUSHandle.__ac_roles__=tuple(data)
but when i try to assign permissions to my roles :
AccessControl.Role.RoleManager.manage_role(self,'Verwalter',['ChangeMuS'])
I fail :(
Any suggestions??
Any traceback? ;) Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats.