Remove the "is CapBaseObject" condition

A module has to always return a CapBaseObject, this condition is not
usefull
This commit is contained in:
Florent 2014-05-07 09:35:05 +02:00
commit b6e44e8d22

View file

@ -1026,10 +1026,7 @@ class ReplApplication(Cmd, ConsoleApplication):
for obj in objects: for obj in objects:
if only is False or not hasattr(obj, 'id') or obj.id in only: if only is False or not hasattr(obj, 'id') or obj.id in only:
if isinstance(obj, CapBaseObject): self.cached_format(obj)
self.cached_format(obj)
else:
print obj
if path: if path:
# Let's go back to the parent directory # Let's go back to the parent directory