[Zope3-checkins] CVS: Zope3/src/zope/app/browser/workflow/stateful - instance.py:1.2
Jim Fulton
jim@zope.com
Wed, 21 May 2003 16:28:12 -0400
Update of /cvs-repository/Zope3/src/zope/app/browser/workflow/stateful
In directory cvs.zope.org:/tmp/cvs-serv22327/src/zope/app/browser/workflow/stateful
Modified Files:
instance.py
Log Message:
Fixed some bad formatting. Some lines were too long and backslashes
were used unnecessarily.
=== Zope3/src/zope/app/browser/workflow/stateful/instance.py 1.1 => 1.2 ===
--- Zope3/src/zope/app/browser/workflow/stateful/instance.py:1.1 Thu May 8 13:27:17 2003
+++ Zope3/src/zope/app/browser/workflow/stateful/instance.py Wed May 21 16:27:41 2003
@@ -38,7 +38,8 @@
id, processInstance = item
info = {}
info['id'] = id
- info['name']=self._getTitle(self._getProcessDefinition(processInstance))
+ info['name'] = self._getTitle(
+ self._getProcessDefinition(processInstance))
return info
def listContentInfo(self):
@@ -85,13 +86,15 @@
return
trans = self.request.get('selTransition', None)
- self.request.response.redirect('@@workflows.html?workflow=%s' % pi.processDefinitionName)
+ self.request.response.redirect('@@workflows.html?workflow=%s'
+ % pi.processDefinitionName)
if pi and trans:
pi.fireTransition(trans)
def _getTitle(self, obj):
- return getAdapter(obj, IZopeDublinCore).title or getWrapperData(obj)['name']
+ return (getAdapter(obj, IZopeDublinCore).title
+ or getWrapperData(obj)['name'])
def _getSelWorkflow(self):