[CalendarServer-changes] [5949] CalendarServer/branches/new-store-no-caldavfile-2/twistedcaldav/ sharing.py
source_changes at macosforge.org
source_changes at macosforge.org
Mon Jul 26 14:39:56 PDT 2010
Revision: 5949
http://trac.macosforge.org/projects/calendarserver/changeset/5949
Author: glyph at apple.com
Date: 2010-07-26 14:39:55 -0700 (Mon, 26 Jul 2010)
Log Message:
-----------
on-demand path calculation in a few more places
Modified Paths:
--------------
CalendarServer/branches/new-store-no-caldavfile-2/twistedcaldav/sharing.py
Modified: CalendarServer/branches/new-store-no-caldavfile-2/twistedcaldav/sharing.py
===================================================================
--- CalendarServer/branches/new-store-no-caldavfile-2/twistedcaldav/sharing.py 2010-07-26 21:39:35 UTC (rev 5948)
+++ CalendarServer/branches/new-store-no-caldavfile-2/twistedcaldav/sharing.py 2010-07-26 21:39:55 UTC (rev 5949)
@@ -1,3 +1,4 @@
+# -*- test-case-name: twistedcaldav.test.test_sharing -*-
##
# Copyright (c) 2010 Apple Inc. All rights reserved.
#
@@ -809,6 +810,17 @@
"""
self._db()
+
+ @property
+ def dbpath(self):
+ return self.resource.fp.child(InvitesDatabase.db_basename).path
+
+
+ @dbpath.setter
+ def dbpath(self, newpath):
+ pass
+
+
def allRecords(self):
records = self._db_execute("select * from INVITE order by USERID")
@@ -1158,6 +1170,17 @@
db_filename = os.path.join(self.resource.fp.path, SharedCollectionsDatabase.db_basename)
super(SharedCollectionsDatabase, self).__init__(db_filename, True, autocommit=True)
+
+ @property
+ def dbpath(self):
+ return self.resource.fp.child(SharedCollectionsDatabase.db_basename).path
+
+
+ @dbpath.setter
+ def dbpath(self, newpath):
+ pass
+
+
def create(self):
"""
Create the index and initialize it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100726/35090341/attachment.html>
More information about the calendarserver-changes
mailing list