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
4296f24d
Commit
4296f24d
authored
Mar 09, 1998
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed session marking support
parent
f4de345c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
5 deletions
+19
-5
lib/python/OFS/ObjectManager.py
lib/python/OFS/ObjectManager.py
+10
-3
lib/python/OFS/SimpleItem.py
lib/python/OFS/SimpleItem.py
+9
-2
No files found.
lib/python/OFS/ObjectManager.py
View file @
4296f24d
__doc__
=
"""Object Manager
$Id: ObjectManager.py,v 1.3
5 1998/02/10 18:38:01
jim Exp $"""
$Id: ObjectManager.py,v 1.3
6 1998/03/09 19:58:20
jim Exp $"""
__version__
=
'$Revision: 1.3
5
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.3
6
$'
[
11
:
-
2
]
import
Persistence
,
App
.
Management
,
Acquisition
,
App
.
Undo
import
Persistence
,
App
.
Management
,
Acquisition
,
App
.
Undo
,
Globals
from
Globals
import
HTMLFile
,
HTMLFile
from
Globals
import
MessageDialog
,
default__class_init__
from
string
import
find
,
join
,
lower
...
...
@@ -456,6 +456,10 @@ class ObjectManager(
except
:
t
=
0
return
DateTime
(
t
)
def
locked_in_session
(
self
):
oid
=
self
.
_p_oid
return
oid
and
Globals
.
SessionBase
.
locks
.
has_key
(
oid
)
def
modified_in_session
(
self
):
jar
=
self
.
_p_jar
if
jar
is
None
:
...
...
@@ -473,6 +477,9 @@ class ObjectManager(
##############################################################################
#
# $Log: ObjectManager.py,v $
# Revision 1.36 1998/03/09 19:58:20 jim
# changed session marking support
#
# Revision 1.35 1998/02/10 18:38:01 jim
# Removed validation check.
#
...
...
lib/python/OFS/SimpleItem.py
View file @
4296f24d
...
...
@@ -16,8 +16,8 @@ Aqueduct database adapters, etc.
This module can also be used as a simple template for implementing new
item types.
$Id: SimpleItem.py,v 1.1
5 1998/01/15 15:16:46 brian
Exp $'''
__version__
=
'$Revision: 1.1
5
$'
[
11
:
-
2
]
$Id: SimpleItem.py,v 1.1
6 1998/03/09 19:58:21 jim
Exp $'''
__version__
=
'$Revision: 1.1
6
$'
[
11
:
-
2
]
import
Globals
,
App
.
Management
from
DateTime
import
DateTime
...
...
@@ -87,6 +87,10 @@ class Item(CopySource, App.Management.Tabs):
except
:
t
=
0
return
DateTime
(
t
)
def
locked_in_session
(
self
):
oid
=
self
.
_p_oid
return
oid
and
Globals
.
SessionBase
.
locks
.
has_key
(
oid
)
def
modified_in_session
(
self
):
jar
=
self
.
_p_jar
if
jar
is
None
:
...
...
@@ -119,6 +123,9 @@ class Item_w__name__(Item):
##############################################################################
#
# $Log: SimpleItem.py,v $
# Revision 1.16 1998/03/09 19:58:21 jim
# changed session marking support
#
# Revision 1.15 1998/01/15 15:16:46 brian
# Fixed Setup, cleaned up SimpleItem
#
...
...
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