From e40ad3b6059785b3c8b056a9ebf3fe1bf91287b5 2006-07-27 17:07:03 From: walter.doerwald Date: 2006-07-27 17:07:03 Subject: [PATCH] Readd ifile.defaultattrs. --- diff --git a/IPython/Extensions/ipipe.py b/IPython/Extensions/ipipe.py index 7aafa73..f018064 100644 --- a/IPython/Extensions/ipipe.py +++ b/IPython/Extensions/ipipe.py @@ -1082,6 +1082,8 @@ class ifile(path.path): def __repr__(self): return "ifile(%s)" % path._base.__repr__(self) + defaultattrs = (None, "type", "size", "modestr", "owner", "group", "mdate") + def __xattrs__(self, mode): if mode == "detail": return ( @@ -1121,7 +1123,7 @@ class ifile(path.path): "-walkfiles()", ) else: - return (None, "type", "size", "modestr", "owner", "group", "mdate") + return self.defaultattrs def __xrepr__(self, mode): try: