[Zope-CMF] argument 2 to map() must be a sequence object
Dieter Maurer
dieter@handshake.de
Fri, 22 Nov 2002 19:50:02 +0100
Pascal Samuzeau writes:
> 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)
> ...
> # With only 1 property
>
> _properties=({'id':'other', 'type':'string', 'mode':'w'},)
Are you sure, this comma ^
is there and before "(".
What you describe happens, when this comma is missing.
(Then you do not have a sequence but a dictionary).
Dieter