[CalendarServer-changes] [9679] CalendarServer/branches/users/glyph/q
source_changes at macosforge.org
source_changes at macosforge.org
Sat Aug 11 01:55:48 PDT 2012
Revision: 9679
http://trac.macosforge.org/projects/calendarserver/changeset/9679
Author: glyph at apple.com
Date: 2012-08-11 01:55:48 -0700 (Sat, 11 Aug 2012)
Log Message:
-----------
Implement Record.all
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:47 UTC (rev 9678)
+++ CalendarServer/branches/users/glyph/q/twext/enterprise/dal/record.py 2012-08-11 08:55:48 UTC (rev 9679)
@@ -279,6 +279,19 @@
@classmethod
+ def all(cls, transaction):
+ """
+ Load all rows from the table that corresponds to C{cls} and return
+ instances of C{cls} corresponding to all.
+ """
+ return cls._rowsFromQuery(transaction,
+ Select(list(cls.table),
+ From=cls.table,
+ OrderBy=cls._primaryKeyExpression()),
+ None)
+
+
+ @classmethod
@inlineCallbacks
def _rowsFromQuery(cls, transaction, qry, rozrc):
"""
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20120811/925014de/attachment.html>
More information about the calendarserver-changes
mailing list