Skip to content
This repository has been archived by the owner on Dec 21, 2020. It is now read-only.

Commit

Permalink
Backport to branch.
Browse files Browse the repository at this point in the history
  • Loading branch information
strichter committed Aug 2, 2005
1 parent f7c93b8 commit 0d36255
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions process.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def computeOutgoing(self):
self.outgoing = self.transition_outgoing

def __repr__(self):
return "<ActivityDefinition '%r'>" %self.__name__
return "<ActivityDefinition %r>" %self.__name__


def always_true(data):
Expand All @@ -181,7 +181,7 @@ def __init__(self, from_, to, condition=always_true, id=None):
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):
Expand Down Expand Up @@ -475,8 +475,7 @@ def __repr__(self):
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:
Expand All @@ -487,4 +486,4 @@ def __init__(self, name=None):
self.__name__ = name

def __repr__(self):
return "Participant('%r')" %self.__name__
return "Participant(%r)" %self.__name__

0 comments on commit 0d36255

Please sign in to comment.