I created a class wich base classes are PortalContent, DefaultDublinCoreImpl, PropertyManager). I indicated a _properties and a manage_options structures as following. manage_options=(( {'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 hierarchy ? Thanks, Andre
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=(( {'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 hierarchy ? Looks like your "PropertyManager" is the module not the class.
Use: from OFS.PropertyManager import PropertyManager Dieter
Dieter Maurer a écrit:
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=(( {'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 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
D2 wrote at 2003-1-16 01:31 -0400:
... 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. You find the answer to this question in the Python language documentation: special attributes and methods.
"__bases__" is a special attribute of classes. It returns the tuple of base classes for this class. Dieter
Dieter Maurer a écrit:
D2 wrote at 2003-1-16 01:31 -0400:
... 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. You find the answer to this question in the Python language documentation: special attributes and methods.
"__bases__" is a special attribute of classes. It returns the tuple of base classes for this class.
Dieter
Thanks, i found it. It's what i presumed it was. My Windows doesn't know how to search a string in a .pdf. -- Andre PZP Enthusiast
participants (3)
-
aborel -
D2 -
Dieter Maurer