[Zope3-checkins] CVS: Zope3/src/zope/app/utilities - session.py:1.5
session.stx:1.3
Stuart Bishop
zen at shangri-la.dropbear.id.au
Tue Feb 10 22:37:06 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/utilities
In directory cvs.zope.org:/tmp/cvs-serv7612
Modified Files:
session.py session.stx
Log Message:
clarifications
=== Zope3/src/zope/app/utilities/session.py 1.4 => 1.5 ===
--- Zope3/src/zope/app/utilities/session.py:1.4 Tue Feb 10 10:16:22 2004
+++ Zope3/src/zope/app/utilities/session.py Tue Feb 10 22:37:06 2004
@@ -200,6 +200,10 @@
def getSession(context, request, product_id, session_data_container=None):
''' Retrieve an ISession. session_data_container defaults to
an ISessionDataContainer utility registered with the name product_id
+
+ XXX: This method will probably be changed when we have an
+ Interaction or other object that combines context & request
+ into a single object.
'''
if session_data_container is None:
dc = zapi.getUtility(context, ISessionDataContainer, product_id)
=== Zope3/src/zope/app/utilities/session.stx 1.2 => 1.3 ===
--- Zope3/src/zope/app/utilities/session.stx:1.2 Mon Feb 9 00:16:32 2004
+++ Zope3/src/zope/app/utilities/session.stx Tue Feb 10 22:37:06 2004
@@ -18,14 +18,14 @@
>>> browser_id = getAdapter(request, IBrowserId))
- >>> explicit_dm = getUtility(None, ISessionDataContainer,
+ >>> explicit_dm = getUtility(context, ISessionDataContainer,
... 'zopeproducts.fooprod')
>>> session = Session(explicit_dm, browser_id, 'zopeproducts.foorprod')
>>> session['color'] = 'red'
or....
- >>> session = zapi.getSession(request, 'zopeproducts.fooprod')
+ >>> session = zapi.getSession(context, request, 'zopeproducts.fooprod')
>>> session['color'] = 'red'
Page Template example::
More information about the Zope3-Checkins
mailing list