[Zope3-checkins] CVS: Zope3/src/zope/app/workflow - instance.py:1.12
Jim Fulton
jim at zope.com
Sat Mar 6 11:51:06 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/workflow
In directory cvs.zope.org:/tmp/cvs-serv11249/src/zope/app/workflow
Modified Files:
instance.py
Log Message:
Converted most getAdapter calls to use interface calls instead.
=== Zope3/src/zope/app/workflow/instance.py 1.11 => 1.12 ===
--- Zope3/src/zope/app/workflow/instance.py:1.11 Fri Feb 27 11:50:37 2004
+++ Zope3/src/zope/app/workflow/instance.py Sat Mar 6 11:50:36 2004
@@ -26,7 +26,6 @@
import IProcessInstance, IProcessInstanceContainer
from zope.interface import implements
-from zope.component import getAdapter
from zope.app.container.contained import Contained, setitem, uncontained
@@ -64,7 +63,7 @@
# path. Eventually the pi should have context as parent directly.
self.__parent__ = context
self.__name__ = "processInstances"
- annotations = getAdapter(context, IAnnotations)
+ annotations = IAnnotations(context)
wfdata = annotations.get(WFKey)
if not wfdata:
wfdata = PersistentDict()
More information about the Zope3-Checkins
mailing list