Commit 80a6a792 authored by Anthony Baxter's avatar Anthony Baxter

Make ZClasses that subclass ObjectManager (created in Zope2.5 and earlier)

work again.
parent 0622136a
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
""" """
Revision information: Revision information:
$Id: _Element.py,v 1.3 2002/08/14 21:35:32 mj Exp $ $Id: _Element.py,v 1.4 2003/07/25 13:48:34 anthony Exp $
""" """
from _object import object from _object import object
...@@ -28,10 +28,10 @@ class Element(object): ...@@ -28,10 +28,10 @@ class Element(object):
__tagged_values = {} __tagged_values = {}
def __init__(self, __name__, __doc__=''): def __init__(self, __name__=None, __doc__=''):
"""Create an 'attribute' description """Create an 'attribute' description
""" """
if not __doc__ and __name__.find(' ') >= 0: if not __doc__ and __name__ and __name__.find(' ') >= 0:
__doc__ = __name__ __doc__ = __name__
__name__ = None __name__ = None
......
import warnings
warnings.warn("""\
The Interface.iclass module is no more.
This is a stub module to allow ZClasses that subclass ObjectManager
to continue to function - please fix your ZClasses (using the 'Subobjects'
tab)""",
DeprecationWarning)
# Old interface object. Provided for backwards compatibility - allows ZClasses
# that subclass ObjectManager to be used in 2.6.
class Interface:
def __init__(self, *args, **kwargs):
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