[Zope] Attribute error on security tab

D2 borelan@wanadoo.fr
Thu, 16 Jan 2003 01:31:41 -0400


Dieter Maurer a =E9crit:
 > aborel wrote at 2003-1-15 11:08 -0400:
 >  > I created a class wich base classes are PortalContent,
 >  > DefaultDublinCoreImpl, PropertyManager).
 >  >
 >  > I indicated a _properties and a manage_options structures as
 >  > following.
 >  >
 >  >        manage_options=3D((
 >  >            {'label':'Properties', 'action':'manage_propertiesForm'}=
,
 >  >            )
 >  >            + PortalContent.manage_options)
 >  >
 >  > I have a problem when i click on the security tab, an error occures=
 :
 >  >
 >  > Attribute error
 >  > OFS.PropertyManager' module has no attribute '__bases__
 >  >
 >  > What is this __bases__ attribute and how can i find it in the=20
hierarchy ?
 > Looks like your "PropertyManager" is the module not the class.


 >
 > Use:
 >
 > 	from OFS.PropertyManager import PropertyManager
 >
 >
 > Dieter
 >
TRUE. The answer is in the error message. I must learn to read.
But what is __bases__
I didn't find __bases__ and as Windows don't know how to search in *.py
files, i can't make a search on this string in the files.

Thanks