[Zope-CVS] CVS: Packages/pypes/pypes - services.py:1.2
Casey Duncan
casey at zope.com
Mon Aug 11 22:34:20 EDT 2003
Update of /cvs-repository/Packages/pypes/pypes
In directory cvs.zope.org:/tmp/cvs-serv8959
Modified Files:
services.py
Log Message:
Add convenience service accessor for event service
=== Packages/pypes/pypes/services.py 1.1.1.1 => 1.2 ===
--- Packages/pypes/pypes/services.py:1.1.1.1 Mon Aug 4 00:46:03 2003
+++ Packages/pypes/pypes/services.py Mon Aug 11 21:33:45 2003
@@ -54,6 +54,13 @@
"""
return get(accesspoint, 'identity')
+def event(accesspoint):
+ """Convenience function to access the event service from accesspoint
+
+ Usage: services.event(someobj)
+ """
+ return get(accesspoint, 'event')
+
def all(accesspoint):
"""Return a dictionary containing all services available from accesspoint
More information about the Zope-CVS
mailing list