[CalendarServer-changes] [9670] CalendarServer/branches/users/glyph/q

source_changes at macosforge.org source_changes at macosforge.org
Sat Aug 11 01:55:40 PDT 2012


Revision: 9670
          http://trac.macosforge.org/projects/calendarserver/changeset/9670
Author:   glyph at apple.com
Date:     2012-08-11 01:55:40 -0700 (Sat, 11 Aug 2012)
Log Message:
-----------
document an important attribute

Modified Paths:
--------------
    CalendarServer/branches/users/glyph/q/twext/enterprise/dal/record.py

Property Changed:
----------------
    CalendarServer/branches/users/glyph/q/

Modified: CalendarServer/branches/users/glyph/q/twext/enterprise/dal/record.py
===================================================================
--- CalendarServer/branches/users/glyph/q/twext/enterprise/dal/record.py	2012-08-11 08:55:39 UTC (rev 9669)
+++ CalendarServer/branches/users/glyph/q/twext/enterprise/dal/record.py	2012-08-11 08:55:40 UTC (rev 9670)
@@ -115,10 +115,14 @@
     Superclass for all database-backed record classes.  (i.e.  an object mapped
     from a database record).
 
-    @cvar table: the table that represents this L{Record} in the
-        database.
+    @cvar table: the table that represents this L{Record} in the database.
     @type table: L{TableSyntax}
 
+    @ivar transaction: The L{IAsyncTransaction} where this record is being
+        loaded.  This may be C{None} if this L{Record} is not participating in
+        a transaction, which may be true if it was instantiated but never
+        saved.
+
     @cvar __colmap__: map of L{ColumnSyntax} objects to attribute names.
     @type __colmap__: L{dict}
 
@@ -270,8 +274,8 @@
         if order is not None:
             kw.update(OrderBy=order, Ascending=ascending)
         return cls._rowsFromQuery(transaction, Select(list(cls.table),
-                                              From=cls.table,
-                                              Where=expr, **kw), None)
+                                                      From=cls.table,
+                                                      Where=expr, **kw), None)
 
 
     @classmethod
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20120811/f1024c18/attachment.html>


More information about the calendarserver-changes mailing list