Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ask committed Mar 11, 2012
1 parent f9e832c commit 64d41be
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cyme/branch/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def _component_shutdown(self, sender, **kwargs):
def about(self):
url = port = None
if self.httpd:
url, port = self.http.thread.url, self.httpd.thread.port
url, port = self.httpd.thread.url, self.httpd.thread.port
port = self.httpd.thread.port if self.httpd else None
return {"id": self.id,
"loglevel": LOG_LEVELS[self.loglevel],
Expand Down
5 changes: 4 additions & 1 deletion cyme/client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,4 +280,7 @@ def clone(self, app=None, info=None):
return self.__class__(url=self.url, app=app, info=info)

def __repr__(self):
return "<Client: %r>" % (self.build_url(""), )
url = self.build_url('')
if self.app:
return "<App: %r>" % url
return "<Client: %r>" % url

0 comments on commit 64d41be

Please sign in to comment.