[Zope3-checkins] SVN: Zope3/branches/Zope-3.1/src/zope/wfmc/process.py Backport to branch.

Stephan Richter srichter at cosmos.phy.tufts.edu
Tue Aug 2 16:37:30 EDT 2005


Log message for revision 37662:
  Backport to branch.
  

Changed:
  U   Zope3/branches/Zope-3.1/src/zope/wfmc/process.py

-=-
Modified: Zope3/branches/Zope-3.1/src/zope/wfmc/process.py
===================================================================
--- Zope3/branches/Zope-3.1/src/zope/wfmc/process.py	2005-08-02 20:32:52 UTC (rev 37661)
+++ Zope3/branches/Zope-3.1/src/zope/wfmc/process.py	2005-08-02 20:37:29 UTC (rev 37662)
@@ -164,7 +164,7 @@
             self.outgoing = self.transition_outgoing
 
     def __repr__(self):
-        return "<ActivityDefinition '%r'>" %self.__name__
+        return "<ActivityDefinition %r>" %self.__name__
 
         
 def always_true(data):
@@ -181,7 +181,7 @@
         self.condition = condition
 
     def __repr__(self):
-        return "TransitionDefinition(from='%r', to='%r')" %(self.from_, self.to)
+        return "TransitionDefinition(from=%r, to=%r)" %(self.from_, self.to)
 
         
 class Process(persistent.Persistent):
@@ -475,8 +475,7 @@
                            if param.input == True])
         output = u', '.join([param.__name__ for param in self.parameters
                            if param.output == True])        
-        return "<Application '%r': (%r) --> (%r)>" %(self.__name__,
-                                                     input, output)
+        return "<Application %r: (%r) --> (%r)>" %(self.__name__, input, output)
         
 
 class Participant:
@@ -487,4 +486,4 @@
         self.__name__ = name
 
     def __repr__(self):
-        return "Participant('%r')" %self.__name__
+        return "Participant(%r)" %self.__name__



More information about the Zope3-Checkins mailing list