[Zope3-checkins] CVS: Zope3/src/zope/app/browser/workflow/stateful - instance.py:1.10

Jim Fulton jim at zope.com
Sun Sep 21 13:31:43 EDT 2003


Update of /cvs-repository/Zope3/src/zope/app/browser/workflow/stateful
In directory cvs.zope.org:/tmp/cvs-serv12774/src/zope/app/browser/workflow/stateful

Modified Files:
	instance.py 
Log Message:
No-longer use context wrappers.


=== Zope3/src/zope/app/browser/workflow/stateful/instance.py 1.9 => 1.10 ===
--- Zope3/src/zope/app/browser/workflow/stateful/instance.py:1.9	Thu Aug 21 16:10:30 2003
+++ Zope3/src/zope/app/browser/workflow/stateful/instance.py	Sun Sep 21 13:31:12 2003
@@ -23,8 +23,6 @@
 from zope.app.interfaces.workflow import IProcessInstanceContainerAdaptable
 from zope.app.services.servicenames import Workflows
 from zope.component import getAdapter, getService
-from zope.context import getWrapperData
-from zope.interface import Interface
 from zope.proxy import removeAllProxies
 from zope.publisher.browser import BrowserView
 from zope.security.proxy import trustedRemoveSecurityProxy
@@ -104,8 +102,7 @@
 
 
     def _getTitle(self, obj):
-        return (getAdapter(obj, IZopeDublinCore).title
-                or getWrapperData(obj)['name'])
+        return (getAdapter(obj, IZopeDublinCore).title or obj.__name___)
 
  
     def _getSelWorkflow(self):




More information about the Zope3-Checkins mailing list