[Zope3-checkins]
SVN: Zope3/branches/ZopeX3-3.0/zopeskel/bin/pyskel.in
Don't know how this worked in the first place. But now the
zope-specific
Stephan Richter
srichter at cosmos.phy.tufts.edu
Wed Sep 1 20:47:24 EDT 2004
Log message for revision 27404:
Don't know how this worked in the first place. But now the zope-specific
imports are done in the method.
Changed:
U Zope3/branches/ZopeX3-3.0/zopeskel/bin/pyskel.in
-=-
Modified: Zope3/branches/ZopeX3-3.0/zopeskel/bin/pyskel.in
===================================================================
--- Zope3/branches/ZopeX3-3.0/zopeskel/bin/pyskel.in 2004-09-02 00:20:55 UTC (rev 27403)
+++ Zope3/branches/ZopeX3-3.0/zopeskel/bin/pyskel.in 2004-09-02 00:47:24 UTC (rev 27404)
@@ -27,22 +27,23 @@
$Id: pyskel.py 26446 2004-07-13 16:11:36Z philikon $
"""
import sys, os, re
+from types import ModuleType
SOFTWARE_HOME = "<<SOFTWARE_HOME>>"
INSTANCE_HOME = "<<INSTANCE_HOME>>"
sys.path.insert(0, os.getcwd())
-from types import ModuleType
-from zope.interface.interface import Method
-from zope.interface import Attribute
-
class_re = re.compile(r'\s*class\s+([a-zA-Z_][a-zA-Z0-9_]*)')
def_re = re.compile(r'\s*def\s+([a-zA-Z_][a-zA-Z0-9_]*)')
attr_re = re.compile(r'\s*([a-zA-Z_][a-zA-Z0-9_]*)\s*=\s*Attribute')
def rskel(iface, top, print_iface=1):
+
+ from zope.interface.interface import Method
+ from zope.interface import Attribute
+
name = "%s.%s" % (iface.__module__, iface.__name__)
file = resolve(iface.__module__).__file__
More information about the Zope3-Checkins
mailing list