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
9fbc3ead
Commit
9fbc3ead
authored
Dec 03, 2000
by
Michel Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved exceptions around, renamed tagged value methods
parent
83042b50
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
lib/python/Interface/Exceptions.py
lib/python/Interface/Exceptions.py
+1
-1
lib/python/Interface/InterfaceBase.py
lib/python/Interface/InterfaceBase.py
+9
-9
No files found.
lib/python/Interface/Exceptions.py
View file @
9fbc3ead
...
...
@@ -23,7 +23,7 @@ class BrokenImplementation(Exception):
The %(name)s attribute was not provided.
"""
%
self
.
__dict__
class
BrokenMethodImplementation
(
Excep
tion
):
class
BrokenMethodImplementation
(
BrokenImplementa
tion
):
"""An method is not completely implemented.
"""
...
...
lib/python/Interface/InterfaceBase.py
View file @
9fbc3ead
class
InterfaceBase
:
__
meta_data
=
{}
__
tagged_values
=
{}
def
getName
(
self
):
""" Returns the name of the object. """
...
...
@@ -11,17 +11,17 @@ class InterfaceBase:
""" Returns the documentation for the object. """
return
self
.
__doc__
def
get
Data
(
self
,
key
):
""" Returns the value associated with '
key
'. """
return
self
.
__
meta_data
[
key
]
def
get
TaggedValue
(
self
,
tag
):
""" Returns the value associated with '
tag
'. """
return
self
.
__
tagged_values
[
tag
]
def
get
DataKey
s
(
self
):
""" Returns a list of all
key
s. """
return
self
.
__
meta_data
.
keys
()
def
get
TaggedValueTag
s
(
self
):
""" Returns a list of all
tag
s. """
return
self
.
__
tagged_values
.
keys
()
def
set
Data
(
self
,
key
,
value
):
def
set
TaggedValue
(
self
,
tag
,
value
):
""" Associates 'value' with 'key'. """
self
.
__
meta_data
[
key
]
=
value
self
.
__
tagged_values
[
tag
]
=
value
...
...
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