[Zope3-checkins] CVS: Zope3/src/zope/app/services - session.py:1.3

Jim Fulton jim@zope.com
Thu, 26 Dec 2002 14:01:46 -0500


Update of /cvs-repository/Zope3/src/zope/app/services
In directory cvs.zope.org:/tmp/cvs-serv21753

Modified Files:
	session.py 
Log Message:
Added function that wasn't copied in the grand renaming.


=== Zope3/src/zope/app/services/session.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/services/session.py:1.2	Wed Dec 25 09:13:19 2002
+++ Zope3/src/zope/app/services/session.py	Thu Dec 26 14:01:45 2002
@@ -97,3 +97,11 @@
 
     def unregisterDataManager(self, name):
         del self.dataManagers[name]
+
+
+
+def getSessionDataObject(context, request, name):
+    """Get data object from appropriate ISessionDataManager."""
+    service = getService(context, "SessionService")
+    sid = service.getSessionId(request)
+    return service.getDataManager(name).getDataObject(sid)