[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/schemagen - modulegen.py:1.2
Martijn Faassen
m.faassen@vet.uu.nl
Thu, 12 Dec 2002 07:14:52 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/schemagen
In directory cvs.zope.org:/tmp/cvs-serv27980
Modified Files:
modulegen.py
Log Message:
Fixed __schema_version__; it should be on the instance of the class
generated, not the class itself.
=== Zope3/lib/python/Zope/App/schemagen/modulegen.py 1.1 => 1.2 ===
--- Zope3/lib/python/Zope/App/schemagen/modulegen.py:1.1 Wed Dec 11 14:07:22 2002
+++ Zope3/lib/python/Zope/App/schemagen/modulegen.py Thu Dec 12 07:14:52 2002
@@ -40,7 +40,9 @@
class %(class_name)s(Persistent):
"""Autogenerated class for %(schema_name)s."""
__implements__ = %(schema_name)s
- __schema_version__ = %(schema_version)s
+
+ def __init__(self):
+ self.__schema_version__ = %(schema_version)s
%(property_text)s
''' % vars()