Commit 5c0333b0 authored by Chris McDonough's avatar Chris McDonough

Moved _Attribute.py module back to Attribute.py at Jim's behest in the name of...

Moved _Attribute.py module back to Attribute.py at Jim's behest in the name of maintaining similarity with the Zope 3 Interface package.
parent ae011558
......@@ -14,7 +14,7 @@
"""
Revision information:
$Id: _Attribute.py,v 1.1 2002/06/10 16:47:38 chrism Exp $
$Id: Attribute.py,v 1.4 2002/06/11 15:34:28 chrism Exp $
"""
from _Element import Element
......
......@@ -14,11 +14,11 @@
"""
Revision information:
$Id: IElement.py,v 1.3 2002/06/10 16:47:38 chrism Exp $
$Id: IElement.py,v 1.4 2002/06/11 15:34:28 chrism Exp $
"""
from _Interface import Interface
from _Attribute import Attribute
from Attribute import Attribute
class IElement(Interface):
"""Objects that have basic documentation and tagged values.
......
......@@ -14,10 +14,10 @@
"""Method interfaces
Revision information:
$Id: Method.py,v 1.10 2002/06/10 16:47:38 chrism Exp $
$Id: Method.py,v 1.11 2002/06/11 15:34:28 chrism Exp $
"""
import Exceptions
from _Attribute import Attribute
from Attribute import Attribute
sig_traits = ['positional', 'required', 'optional', 'varargs', 'kwargs']
......
......@@ -14,7 +14,7 @@
"""Interface object implementation
Revision information:
$Id: _Interface.py,v 1.3 2002/06/10 16:47:38 chrism Exp $
$Id: _Interface.py,v 1.4 2002/06/11 15:34:28 chrism Exp $
"""
from _InterfaceClass import Interface as InterfaceClass
......@@ -26,7 +26,7 @@ def wire():
from Implements import implements
from _Attribute import Attribute
from Attribute import Attribute
from IAttribute import IAttribute
implements(Attribute, IAttribute)
......
......@@ -14,13 +14,13 @@
"""Interface object implementation
Revision information:
$Id: _InterfaceClass.py,v 1.4 2002/06/10 20:00:42 jim Exp $
$Id: _InterfaceClass.py,v 1.5 2002/06/11 15:34:28 chrism Exp $
"""
from inspect import currentframe
import sys
from Method import Method, fromFunction
from _Attribute import Attribute
from Attribute import Attribute
from types import FunctionType
import Exceptions
from _Element import Element
......
......@@ -64,10 +64,10 @@ There is also a script, pyself.py in the package that can be used to
create interface skeletins. Run it without arguments to get documentation.
Revision information:
$Id: __init__.py,v 1.7 2002/06/10 16:47:38 chrism Exp $
$Id: __init__.py,v 1.8 2002/06/11 15:34:28 chrism Exp $
"""
from _Interface import Interface
from _Attribute import Attribute
from Attribute import Attribute
Base = Interface # XXX We need to stamp out Base usage
......@@ -25,7 +25,7 @@ Example:
The dotted name is the module name and interface object name connected
with a dot.
Revision information: $Id: pyskel.py,v 1.3 2002/06/10 16:47:38 chrism Exp $
Revision information: $Id: pyskel.py,v 1.4 2002/06/11 15:34:28 chrism Exp $
"""
import sys, os, re
......@@ -36,7 +36,7 @@ from _object import isInstance
from types import ModuleType
from Interface.Method import Method
from Interface._Attribute import Attribute
from Interface.Attribute 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_]*)')
......
......@@ -14,12 +14,12 @@
"""
Revision information:
$Id: testDocument.py,v 1.3 2002/06/10 16:47:38 chrism Exp $
$Id: testDocument.py,v 1.4 2002/06/11 15:34:28 chrism Exp $
"""
from unittest import TestCase, TestSuite, main, makeSuite
from Interface import Interface
from Interface._Attribute import Attribute
from Interface.Attribute import Attribute
class Test(TestCase):
......
......@@ -19,7 +19,7 @@ from Interface.Exceptions import BrokenImplementation
from Interface.Implements import instancesOfObjectImplements
from Interface.Implements import objectImplements
from Interface import Interface
from Interface._Attribute import Attribute
from Interface.Attribute import Attribute
class InterfaceTests(unittest.TestCase):
......
......@@ -12,7 +12,7 @@
#
##############################################################################
from Interface import Interface
from Interface._Attribute import Attribute
from Interface.Attribute import Attribute
class mytest(Interface):
pass
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment