[CMF-checkins] CVS: CMF/DCWorkflow - ContainerTab.py:1.4 States.py:1.5
Shane Hathaway
shane@cvs.zope.org
Mon, 15 Jul 2002 10:16:05 -0400
Update of /cvs-repository/CMF/DCWorkflow
In directory cvs.zope.org:/tmp/cvs-serv1833
Modified Files:
ContainerTab.py States.py
Log Message:
On the States tab, display only the transitions that actually exist.
=== CMF/DCWorkflow/ContainerTab.py 1.3 => 1.4 ===
else:
return default
+ def has_key(self, key):
+ return self._mapping.has_key(key)
+
def objectIds(self, spec=None):
# spec is not important for now...
return self._mapping.keys()
=== CMF/DCWorkflow/States.py 1.4 => 1.5 ===
return aq_parent(aq_inner(aq_parent(aq_inner(self))))
def getTransitions(self):
- return list(self.transitions)
+ return filter(self.getWorkflow().transitions.has_key,
+ self.transitions)
def getTransitionTitle(self, tid):
t = self.getWorkflow().transitions.get(tid, None)