[CalendarServer-changes] [6961] CalendarServer/branches/users/glyph/dalify/txdav/common/datastore/ sql.py
source_changes at macosforge.org
source_changes at macosforge.org
Wed Feb 16 06:31:32 PST 2011
Revision: 6961
http://trac.macosforge.org/projects/calendarserver/changeset/6961
Author: glyph at apple.com
Date: 2011-02-16 06:31:32 -0800 (Wed, 16 Feb 2011)
Log Message:
-----------
draft of object list query
Modified Paths:
--------------
CalendarServer/branches/users/glyph/dalify/txdav/common/datastore/sql.py
Modified: CalendarServer/branches/users/glyph/dalify/txdav/common/datastore/sql.py
===================================================================
--- CalendarServer/branches/users/glyph/dalify/txdav/common/datastore/sql.py 2011-02-16 14:31:21 UTC (rev 6960)
+++ CalendarServer/branches/users/glyph/dalify/txdav/common/datastore/sql.py 2011-02-16 14:31:32 UTC (rev 6961)
@@ -928,14 +928,22 @@
)
_objectResourceClass = None
- _bindTable = None
- _homeChildTable = None
- _homeChildBindTable = None
- _revisionsTable = None
- _revisionsBindTable = None
- _objectTable = None
+ _bindSchema = None
+ _homeChildSchema = None
+ _homeChildBindSchema = None
+ _revisionsSchema = None
+ _revisionsBindSchema = None
+ _objectSchema = None
+ _bindTable = None
+ _homeChildTable = None
+ _homeChildBindTable = None
+ _revisionsTable = None
+ _revisionsBindTable = None
+ _objectTable = None
+
+
def __init__(self, home, name, resourceID, owned):
if home._notifiers:
@@ -959,6 +967,15 @@
self._invites = None # Derived classes need to set this
+ @classproperty
+ def _objectListQuery(cls):
+ bind = cls._bindSchema
+ return Select([bind.RESOURCE_NAME], From=bind,
+ Where=(bind.HOME_RESOURCE_ID ==
+ Parameter("resourceID")).And(
+ bind.BIND_MODE == _BIND_MODE_OWN))
+
+
@classmethod
@inlineCallbacks
def listObjects(cls, home, owned):
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20110216/29cf4457/attachment-0001.html>
More information about the calendarserver-changes
mailing list