[CalendarServer-changes] [6018] CalendarServer/trunk/twistedcaldav/sharing.py

source_changes at macosforge.org source_changes at macosforge.org
Mon Aug 9 13:49:09 PDT 2010


Revision: 6018
          http://trac.macosforge.org/projects/calendarserver/changeset/6018
Author:   glyph at apple.com
Date:     2010-08-09 13:49:09 -0700 (Mon, 09 Aug 2010)
Log Message:
-----------
@property.setter is >=2.6 only

Modified Paths:
--------------
    CalendarServer/trunk/twistedcaldav/sharing.py

Modified: CalendarServer/trunk/twistedcaldav/sharing.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/sharing.py	2010-08-09 20:19:40 UTC (rev 6017)
+++ CalendarServer/trunk/twistedcaldav/sharing.py	2010-08-09 20:49:09 UTC (rev 6018)
@@ -811,15 +811,14 @@
         self._db()
 
 
-    @property
-    def dbpath(self):
+    def get_dbpath(self):
         return self.resource.fp.child(InvitesDatabase.db_basename).path
 
 
-    @dbpath.setter
-    def dbpath(self, newpath):
+    def set_dbpath(self, newpath):
         pass
 
+    dbpath = property(get_dbpath, set_dbpath)
 
     def allRecords(self):
         
@@ -1185,16 +1184,17 @@
         super(SharedCollectionsDatabase, self).__init__(db_filename, True, autocommit=True)
 
 
-    @property
-    def dbpath(self):
+    def get_dbpath(self):
         return self.resource.fp.child(SharedCollectionsDatabase.db_basename).path
 
 
-    @dbpath.setter
-    def dbpath(self, newpath):
+    def set_dbpath(self, newpath):
         pass
 
 
+    dbpath = property(get_dbpath, set_dbpath)
+
+
     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/20100809/4cefcbf8/attachment.html>


More information about the calendarserver-changes mailing list