[Zope-CMF] argument 2 to map() must be a sequence object
Pascal Samuzeau
samuzeau@oreka.com
Fri, 22 Nov 2002 13:21:48 +0100
Hi,
I have this following error:
******************************************************************
Type de l'erreur : TypeError
Valeur de l'erreur : argument 2 to map() must be a sequence object
File \Zope\lib\python\OFS\PropertyManager.py, line 227, in propertyMap
(Object: TestB)
******************************************************************
I've got this error with the following use:
I have create a Product named Test
testA_factory_type_information = ....
(.... , 'actions' :
, { 'id' : 'edit'
, 'name' : 'Edit'
, 'action' : 'folder_edit_form'
, 'permissions' : (ManageProperties,)
, 'category' : 'folder'
} ....
testB_factory_type_information = ....
(.... , 'actions' :
, { 'id' : 'edit'
, 'name' : 'Edit'
, 'action' : 'folder_edit_form'
, 'permissions' : (ManageProperties,)
, 'category' : 'folder'
} ....
factory_type_information = ( testA + testB )
class TestA(SkinnedFolder):
.....
_properties=(
{'id':'title', 'type':'string', 'mode':'w'},
{'id':'path', 'type':'string', 'mode':'w'},
..... )
....
class TestB(SkinnedFolder, TestB):
.....
# With only 1 property
_properties=({'id':'other', 'type':'string', 'mode':'w'},)
....
So, I can go to tab property of TestA, but not in TestB.
How to change it ? I dont't want to acquire properties's TestA inside
TestB like _properties =( porperties's TestA + here propertie's TestB)
Sincerily
PS
--------------------------------------------------
Oreka ! Nous sommes l'internet moins cher !
Surfez 25% moins cher avec http://www.oreka.com