[CalendarServer-changes] [9129] CalendarServer/trunk/calendarserver/tools/shell/vfs.py
source_changes at macosforge.org
source_changes at macosforge.org
Mon Apr 16 15:05:32 PDT 2012
Revision: 9129
http://trac.macosforge.org/projects/calendarserver/changeset/9129
Author: wsanchez at apple.com
Date: 2012-04-16 15:05:32 -0700 (Mon, 16 Apr 2012)
Log Message:
-----------
Add ListEntry to __all__.
Add __repr__ to ListEntry.
Modified Paths:
--------------
CalendarServer/trunk/calendarserver/tools/shell/vfs.py
Modified: CalendarServer/trunk/calendarserver/tools/shell/vfs.py
===================================================================
--- CalendarServer/trunk/calendarserver/tools/shell/vfs.py 2012-04-16 21:13:32 UTC (rev 9128)
+++ CalendarServer/trunk/calendarserver/tools/shell/vfs.py 2012-04-16 22:05:32 UTC (rev 9129)
@@ -19,6 +19,7 @@
"""
__all__ = [
+ "ListEntry",
"File",
"Folder",
"RootFolder",
@@ -66,6 +67,14 @@
def __str__(self):
return self.toString()
+ def __repr__(self):
+ return "<%s: (%s)%s %s>" % (
+ self.__class__.__name__,
+ self.fileClass.__name__,
+ self.fileName,
+ self.fields,
+ )
+
def isFolder(self):
return issubclass(self.fileClass, Folder)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20120416/279e5a3d/attachment.html>
More information about the calendarserver-changes
mailing list