added repr() calls to better display itself on prints

This commit is contained in:
tao.takashi
2008-07-14 18:42:24 +00:00
committed by Salad Dais
parent 3273416923
commit a1df8813b0

View File

@@ -33,6 +33,8 @@ class Capability(object):
raise
return llsd.parse(result)
def __repr__(self):
return "<Capability for %s>" %self.private_url
class SeedCapability(Capability):
"""a seed capability which is able to retrieve other capabilities"""
@@ -52,7 +54,9 @@ class SeedCapability(Capability):
return caps
def __repr__(self):
return "<SeedCapability for %s>" %self.private_url