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 @@ ...@@ -14,7 +14,7 @@
""" """
Revision information: 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 from _Element import Element
......
...@@ -14,11 +14,11 @@ ...@@ -14,11 +14,11 @@
""" """
Revision information: 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 _Interface import Interface
from _Attribute import Attribute from Attribute import Attribute
class IElement(Interface): class IElement(Interface):
"""Objects that have basic documentation and tagged values. """Objects that have basic documentation and tagged values.
......
...@@ -14,10 +14,10 @@ ...@@ -14,10 +14,10 @@
"""Method interfaces """Method interfaces
Revision information: 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 import Exceptions
from _Attribute import Attribute from Attribute import Attribute
sig_traits = ['positional', 'required', 'optional', 'varargs', 'kwargs'] sig_traits = ['positional', 'required', 'optional', 'varargs', 'kwargs']
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
"""Interface object implementation """Interface object implementation
Revision information: 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 from _InterfaceClass import Interface as InterfaceClass
...@@ -26,7 +26,7 @@ def wire(): ...@@ -26,7 +26,7 @@ def wire():
from Implements import implements from Implements import implements
from _Attribute import Attribute from Attribute import Attribute
from IAttribute import IAttribute from IAttribute import IAttribute
implements(Attribute, IAttribute) implements(Attribute, IAttribute)
......
...@@ -14,13 +14,13 @@ ...@@ -14,13 +14,13 @@
"""Interface object implementation """Interface object implementation
Revision information: 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 from inspect import currentframe
import sys import sys
from Method import Method, fromFunction from Method import Method, fromFunction
from _Attribute import Attribute from Attribute import Attribute
from types import FunctionType from types import FunctionType
import Exceptions import Exceptions
from _Element import Element from _Element import Element
......
...@@ -64,10 +64,10 @@ There is also a script, pyself.py in the package that can be used to ...@@ -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. create interface skeletins. Run it without arguments to get documentation.
Revision information: 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 _Interface import Interface
from _Attribute import Attribute from Attribute import Attribute
Base = Interface # XXX We need to stamp out Base usage Base = Interface # XXX We need to stamp out Base usage
...@@ -25,7 +25,7 @@ Example: ...@@ -25,7 +25,7 @@ Example:
The dotted name is the module name and interface object name connected The dotted name is the module name and interface object name connected
with a dot. 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 import sys, os, re
...@@ -36,7 +36,7 @@ from _object import isInstance ...@@ -36,7 +36,7 @@ from _object import isInstance
from types import ModuleType from types import ModuleType
from Interface.Method import Method 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_]*)') 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_]*)') def_re = re.compile(r'\s*def\s+([a-zA-Z_][a-zA-Z0-9_]*)')
......
...@@ -14,12 +14,12 @@ ...@@ -14,12 +14,12 @@
""" """
Revision information: 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 unittest import TestCase, TestSuite, main, makeSuite
from Interface import Interface from Interface import Interface
from Interface._Attribute import Attribute from Interface.Attribute import Attribute
class Test(TestCase): class Test(TestCase):
......
...@@ -19,7 +19,7 @@ from Interface.Exceptions import BrokenImplementation ...@@ -19,7 +19,7 @@ from Interface.Exceptions import BrokenImplementation
from Interface.Implements import instancesOfObjectImplements from Interface.Implements import instancesOfObjectImplements
from Interface.Implements import objectImplements from Interface.Implements import objectImplements
from Interface import Interface from Interface import Interface
from Interface._Attribute import Attribute from Interface.Attribute import Attribute
class InterfaceTests(unittest.TestCase): class InterfaceTests(unittest.TestCase):
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
# #
############################################################################## ##############################################################################
from Interface import Interface from Interface import Interface
from Interface._Attribute import Attribute from Interface.Attribute import Attribute
class mytest(Interface): class mytest(Interface):
pass 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