str(BrowserObject) should call toString()

This commit is contained in:
David Rose 2010-10-24 13:31:05 +00:00
parent 4e0eae9eff
commit 64415a4352

View File

@ -79,13 +79,7 @@ class BrowserObject:
return method return method
def __str__(self): def __str__(self):
parentObj, attribName = self.__childObject return self.toString()
if parentObj:
# Format it from its parent.
return "%s.%s" % (parentObj, attribName)
else:
# Format it directly.
return "BrowserObject(%s)" % (self.__objectId)
def __nonzero__(self): def __nonzero__(self):
return True return True