classmethod and zope
Robin Becker
robin at jessikat.fsnet.co.uk
Tue May 6 07:23:24 EDT 2003
In article <m27k94nyup.fsf at clmac-kjt.st-and.ac.uk>, Kevin J Thomson
<kjt at clmac-kjt.st-and.ac.uk> writes
>
>Hi does anybody know if there is anything special you have to do when you
>create
>a class in a zope product
> that uses the "classmethod" key word.
>
>when I import the class from the command line the class import fine, when I
>call
>it from the zope product and restart zope
>I get an error saying NameError: 'classmethod' is not defined
>
>Cheers for any help
>
>Kevin Thomson
>
>kjt at st-andrews.ac.uk
I think there's a usage of the word classmethod in the cookbook OOP
section.
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/113645
Since Zope is currently 2.1 perhaps that's what you need.
--
Robin Becker
More information about the Python-list
mailing list