[Zope3-checkins] CVS: Zope3/src/zope/app/workflow/stateful -
contentworkflow.py:1.13
Jim Fulton
jim at zope.com
Sat Mar 6 12:49:26 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/workflow/stateful
In directory cvs.zope.org:/tmp/cvs-serv21993/src/zope/app/workflow/stateful
Modified Files:
contentworkflow.py
Log Message:
Changed most calls to queryAdapter to use interface calls instead.
=== Zope3/src/zope/app/workflow/stateful/contentworkflow.py 1.12 => 1.13 ===
--- Zope3/src/zope/app/workflow/stateful/contentworkflow.py:1.12 Fri Mar 5 17:09:23 2004
+++ Zope3/src/zope/app/workflow/stateful/contentworkflow.py Sat Mar 6 12:48:55 2004
@@ -21,7 +21,7 @@
from persistent import Persistent
from persistent.dict import PersistentDict
-from zope.component import getService, queryAdapter
+from zope.component import getService
from zope.app.event.interfaces import ISubscriber
from zope.app.event.interfaces import IObjectCreatedEvent
@@ -49,11 +49,12 @@
obj = event.object
# check if it implements IProcessInstanceContainerAdaptable
- # This interface ensures that the object can store process instances.
+ # This interface ensures that the object can store process
+ # instances.
if not IProcessInstanceContainerAdaptable.providedBy(obj):
return
- pi_container = queryAdapter(obj, IProcessInstanceContainer)
+ pi_container = IProcessInstanceContainer(obj, None)
# probably need to adapt to IZopeContainer to use pi_container with
# context.
if pi_container is None:
More information about the Zope3-Checkins
mailing list