Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
80a6a792
Commit
80a6a792
authored
Jul 25, 2003
by
Anthony Baxter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make ZClasses that subclass ObjectManager (created in Zope2.5 and earlier)
work again.
parent
0622136a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
3 deletions
+16
-3
lib/python/Interface/_Element.py
lib/python/Interface/_Element.py
+3
-3
lib/python/Interface/iclass.py
lib/python/Interface/iclass.py
+13
-0
No files found.
lib/python/Interface/_Element.py
View file @
80a6a792
...
@@ -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
...
...
lib/python/Interface/iclass.py
0 → 100644
View file @
80a6a792
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment