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
a20d3bea
Commit
a20d3bea
authored
May 22, 1998
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Got rid of OldMoniker, but something looks fishy here. There is code to
"save" acquisition chain, but it's not a chain anymore.
parent
9bd3ef62
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
32 deletions
+1
-32
lib/python/OFS/Moniker.py
lib/python/OFS/Moniker.py
+1
-32
No files found.
lib/python/OFS/Moniker.py
View file @
a20d3bea
...
...
@@ -8,42 +8,11 @@ Object monikers
"""
__version__
=
'$Revision: 1.
3
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
4
$'
[
11
:
-
2
]
import
Globals
class
OldMoniker
:
""" """
def
__init__
(
self
,
obj
=
None
,
p
=
1
):
if
obj
is
None
:
return
self
.
id
=
absattr
(
obj
.
id
)
self
.
title
=
absattr
(
obj
.
title
)
self
.
mtype
=
absattr
(
obj
.
meta_type
)
self
.
oid
=
obj
.
_p_oid
self
.
jar
=
obj
.
_p_jar
.
name
self
.
aqp
=
None
if
p
:
try
:
self
.
aqp
=
Moniker
(
obj
.
aq_parent
,
0
)
except
:
self
.
aqp
=
None
def
assert
(
self
):
# Return true if the named object exists
if
self
.
jar
is
None
:
jar
=
Globals
.
Bobobase
.
_jar
else
:
jar
=
Globals
.
SessionBase
[
self
.
jar
].
jar
return
jar
.
has_key
(
self
.
oid
)
def
bind
(
self
):
# Return the real object named by this moniker
if
self
.
jar
is
None
:
jar
=
Globals
.
Bobobase
.
_jar
else
:
jar
=
Globals
.
SessionBase
[
self
.
jar
].
jar
obj
=
jar
[
self
.
oid
]
if
self
.
aqp
is
not
None
:
obj
=
obj
.
__of__
(
self
.
aqp
.
bind
())
return
obj
class
Moniker
:
""" """
def
__init__
(
self
,
obj
=
None
,
op
=
0
):
...
...
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