[CalendarServer-changes] [10212] CalendarServer/branches/users/glyph/queue-locking-and-timing

source_changes at macosforge.org source_changes at macosforge.org
Fri Jan 4 16:38:20 PST 2013


Revision: 10212
          http://trac.calendarserver.org//changeset/10212
Author:   glyph at apple.com
Date:     2013-01-04 16:38:20 -0800 (Fri, 04 Jan 2013)
Log Message:
-----------
include some spacing as well

Modified Paths:
--------------
    CalendarServer/branches/users/glyph/queue-locking-and-timing/twext/enterprise/dal/record.py
    CalendarServer/branches/users/glyph/queue-locking-and-timing/twext/enterprise/dal/test/test_record.py

Property Changed:
----------------
    CalendarServer/branches/users/glyph/queue-locking-and-timing/

Modified: CalendarServer/branches/users/glyph/queue-locking-and-timing/twext/enterprise/dal/record.py
===================================================================
--- CalendarServer/branches/users/glyph/queue-locking-and-timing/twext/enterprise/dal/record.py	2013-01-05 00:38:19 UTC (rev 10211)
+++ CalendarServer/branches/users/glyph/queue-locking-and-timing/twext/enterprise/dal/record.py	2013-01-05 00:38:20 UTC (rev 10212)
@@ -144,10 +144,10 @@
 
 
     def __repr__(self):
-        r = "<{0} record from table {1} ".format(self.__class__.__name__,
-                                                 self.table.model.name)
+        r = "<{0} record from table {1}".format(self.__class__.__name__,
+                                                self.table.model.name)
         for k in sorted(self.__attrmap__.keys()):
-            r += "{0}={1}".format(k, repr(getattr(self, k)))
+            r += " {0}={1}".format(k, repr(getattr(self, k)))
         r += ">"
         return r
 

Modified: CalendarServer/branches/users/glyph/queue-locking-and-timing/twext/enterprise/dal/test/test_record.py
===================================================================
--- CalendarServer/branches/users/glyph/queue-locking-and-timing/twext/enterprise/dal/test/test_record.py	2013-01-05 00:38:19 UTC (rev 10211)
+++ CalendarServer/branches/users/glyph/queue-locking-and-timing/twext/enterprise/dal/test/test_record.py	2013-01-05 00:38:20 UTC (rev 10212)
@@ -246,8 +246,8 @@
         txn = self.pool.connection()
         yield txn.execSQL("insert into ALPHA values (:1, :2)", [789, u'nine'])
         rec = list((yield TestRecord.all(txn)))[0]
-        self.assertIn("789", repr(rec))
-        self.assertIn("'nine'", repr(rec))
+        self.assertIn(" beta=789", repr(rec))
+        self.assertIn(" gamma=u'nine'", repr(rec))
 
 
     @inlineCallbacks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20130104/8c715dc3/attachment.html>


More information about the calendarserver-changes mailing list