[Zope-Checkins] CVS: Zope3/lib/python/Interface - pyskel.py:1.1.2.6

Stephan Richter srichter@cbu.edu
Thu, 28 Mar 2002 17:36:28 -0500


Update of /cvs-repository/Zope3/lib/python/Interface
In directory cvs.zope.org:/tmp/cvs-serv8445

Modified Files:
      Tag: Zope-3x-branch
	pyskel.py 
Log Message:
The class name  is now the name of the interface without the 'I'. This fix
is based in a collector request by Tres.

I also looked into keeping the order of defined methods, but it seems like
the Python mechanism does not allow this, since it simply sends all 
attributes (attributes and methods) in a dictionary.


=== Zope3/lib/python/Interface/pyskel.py 1.1.2.5 => 1.1.2.6 ===
     print "from %s import %s" % (iface.__module__, iface.__name__)
     print
-    print "class X:"
+    print "class %s:" %iface.__name__[1:]
     print
     print "    __implements__ = ", iface.__name__
     print