[CalendarServer-changes] [5196] CalendarServer/trunk/twext/python/datetime.py

source_changes at macosforge.org source_changes at macosforge.org
Wed Feb 24 16:39:45 PST 2010


Revision: 5196
          http://trac.macosforge.org/projects/calendarserver/changeset/5196
Author:   wsanchez at apple.com
Date:     2010-02-24 16:39:44 -0800 (Wed, 24 Feb 2010)
Log Message:
-----------
Add timerange.__repr__

Modified Paths:
--------------
    CalendarServer/trunk/twext/python/datetime.py

Modified: CalendarServer/trunk/twext/python/datetime.py
===================================================================
--- CalendarServer/trunk/twext/python/datetime.py	2010-02-24 23:16:09 UTC (rev 5195)
+++ CalendarServer/trunk/twext/python/datetime.py	2010-02-25 00:39:44 UTC (rev 5196)
@@ -178,6 +178,9 @@
         if duration is not None:
             self._duration = duration
 
+    def __repr__(self):
+        return "timerange(%r, %s)" % (self.start(), self.end())
+
     def start(self):
         return self._start
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100224/74d53c03/attachment.html>


More information about the calendarserver-changes mailing list