Commit 4296f24d authored by Jim Fulton's avatar Jim Fulton

changed session marking support

parent f4de345c
__doc__="""Object Manager
$Id: ObjectManager.py,v 1.35 1998/02/10 18:38:01 jim Exp $"""
$Id: ObjectManager.py,v 1.36 1998/03/09 19:58:20 jim Exp $"""
__version__='$Revision: 1.35 $'[11:-2]
__version__='$Revision: 1.36 $'[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.
#
......
......@@ -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.15 1998/01/15 15:16:46 brian Exp $'''
__version__='$Revision: 1.15 $'[11:-2]
$Id: SimpleItem.py,v 1.16 1998/03/09 19:58:21 jim Exp $'''
__version__='$Revision: 1.16 $'[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
#
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment