Permalink
Browse files

including app id in __repr__

  • Loading branch information...
1 parent 1ad72fc commit d279f0ac34bca5181501bec7e3b7564ad13aa101 @gka gka committed Dec 11, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 pbclient/__init__.py
View
@@ -78,17 +78,17 @@ def __setattr__(self, name, value):
class App(DomainObject):
def __repr__(self):
- return 'pybossa.App("' + self.short_name + '")'
+ return 'pybossa.App("' + self.short_name + '", ' + str(self.id) + ')'
class Task(DomainObject):
def __repr__(self):
- return 'pybossa.Task("' + str(self.id) + '")'
+ return 'pybossa.Task(' + str(self.id) + ')'
class TaskRun(DomainObject):
def __repr__(self):
- return 'pybossa.TaskRun("' + str(self.id) + '")'
+ return 'pybossa.TaskRun(' + str(self.id) + ')'
# Apps

0 comments on commit d279f0a

Please sign in to comment.