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
840802e5
Commit
840802e5
authored
Jan 22, 2001
by
Michel Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
missing some tiget thingy
parent
05bd66c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
lib/python/Interface/Util.py
lib/python/Interface/Util.py
+3
-3
No files found.
lib/python/Interface/Util.py
View file @
840802e5
from
iclass
import
Interface
,
Class
,
ClassType
,
Base
,
assertTypeImplements
from
iclass
import
Interface
,
Class
,
ClassType
,
Base
,
assertTypeImplements
,
_typeImplements
#uuh..
from
types
import
FunctionType
def
impliedInterface
(
klass
,
__name__
=
None
,
__doc__
=
None
):
...
...
@@ -20,7 +20,7 @@ def _ii(klass, items):
for
b
in
klass
.
__bases__
:
_ii
(
b
,
items
)
return
items
def
objectImplements
(
object
):
def
objectImplements
(
object
,
tiget
=
_typeImplements
.
get
):
"""Return the interfaces implemented by the object
"""
r
=
[]
...
...
@@ -43,7 +43,7 @@ def objectImplements(object):
return
r
def
instancesOfObjectImplements
(
klass
):
def
instancesOfObjectImplements
(
klass
,
tiget
=
_typeImplements
.
get
):
"""Return the interfaces that instanced implement (by default)
"""
r
=
[]
...
...
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