[Zope3-checkins] SVN: Zope3/trunk/src/zope/wfmc/process.py
Implement Florent's suggestion to use %r instead of %s.
Stephan Richter
srichter at cosmos.phy.tufts.edu
Mon Aug 1 10:57:31 EDT 2005
Log message for revision 37620:
Implement Florent's suggestion to use %r instead of %s.
Changed:
U Zope3/trunk/src/zope/wfmc/process.py
-=-
Modified: Zope3/trunk/src/zope/wfmc/process.py
===================================================================
--- Zope3/trunk/src/zope/wfmc/process.py 2005-08-01 14:53:50 UTC (rev 37619)
+++ Zope3/trunk/src/zope/wfmc/process.py 2005-08-01 14:57:31 UTC (rev 37620)
@@ -164,7 +164,7 @@
self.outgoing = self.transition_outgoing
def __repr__(self):
- return "<ActivityDefinition '%s'>" %self.__name__
+ return "<ActivityDefinition '%r'>" %self.__name__
def always_true(data):
@@ -181,7 +181,7 @@
self.condition = condition
def __repr__(self):
- return "TransitionDefinition(from='%s', to='%s')" %(self.from_, self.to)
+ return "TransitionDefinition(from='%r', to='%r')" %(self.from_, self.to)
class Process(persistent.Persistent):
@@ -471,11 +471,11 @@
self.parameters += parameters
def __repr__(self):
- input = ', '.join([param.__name__ for param in self.parameters
+ input = u', '.join([param.__name__ for param in self.parameters
if param.input == True])
- output = ', '.join([param.__name__ for param in self.parameters
+ output = u', '.join([param.__name__ for param in self.parameters
if param.output == True])
- return "<Application '%s': (%s) --> (%s)>" %(self.__name__,
+ return "<Application '%r': (%r) --> (%r)>" %(self.__name__,
input, output)
@@ -487,4 +487,4 @@
self.__name__ = name
def __repr__(self):
- return "Participant('%s')" %self.__name__
+ return "Participant('%r')" %self.__name__
More information about the Zope3-Checkins
mailing list