Skip to content
This repository has been archived by the owner on Sep 28, 2020. It is now read-only.

Commit

Permalink
Made an implicit acquirer.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Fulton committed Nov 7, 1997
1 parent eb10407 commit c18dbe6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
9 changes: 6 additions & 3 deletions Session.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
$Id: Session.py,v 1.2 1997/11/07 17:43:19 jim Exp $'''
$Id: Session.py,v 1.3 1997/11/07 18:51:13 jim Exp $'''

import time, SimpleItem, AccessControl.Role, Persistence, Acquisition, Globals
from string import rfind
Expand Down Expand Up @@ -40,7 +40,7 @@ def add(self, id, title, acl_type='A',acl_roles=[], REQUEST=None):
class Session(Persistence.Persistent,
AccessControl.Role.RoleManager,
SimpleItem.Item,
Acquisition.Explicit):
Acquisition.Implicit):

'''Model sessions as drop-in objects
'''
Expand Down Expand Up @@ -104,14 +104,17 @@ def discard(self, REQUEST):

def nonempty(self): return Globals.SessionBase[self.cookie].nonempty()

__version__='$Revision: 1.2 $'[11:-2]
__version__='$Revision: 1.3 $'[11:-2]




##############################################################################
#
# $Log: Session.py,v $
# Revision 1.3 1997/11/07 18:51:13 jim
# Made an implicit acquirer.
#
# Revision 1.2 1997/11/07 17:43:19 jim
# Added a feature to exit another session.
#
Expand Down
9 changes: 6 additions & 3 deletions Version.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
$Id: Version.py,v 1.2 1997/11/07 17:43:19 jim Exp $'''
$Id: Version.py,v 1.3 1997/11/07 18:51:13 jim Exp $'''

import time, SimpleItem, AccessControl.Role, Persistence, Acquisition, Globals
from string import rfind
Expand Down Expand Up @@ -40,7 +40,7 @@ def add(self, id, title, acl_type='A',acl_roles=[], REQUEST=None):
class Session(Persistence.Persistent,
AccessControl.Role.RoleManager,
SimpleItem.Item,
Acquisition.Explicit):
Acquisition.Implicit):

'''Model sessions as drop-in objects
'''
Expand Down Expand Up @@ -104,14 +104,17 @@ def discard(self, REQUEST):

def nonempty(self): return Globals.SessionBase[self.cookie].nonempty()

__version__='$Revision: 1.2 $'[11:-2]
__version__='$Revision: 1.3 $'[11:-2]




##############################################################################
#
# $Log: Version.py,v $
# Revision 1.3 1997/11/07 18:51:13 jim
# Made an implicit acquirer.
#
# Revision 1.2 1997/11/07 17:43:19 jim
# Added a feature to exit another session.
#
Expand Down

0 comments on commit c18dbe6

Please sign in to comment.