[CalendarServer-changes] [6544] CalendarServer/branches/users/glyph/sharedpool/txdav/common/ datastore/sql.py

source_changes at macosforge.org source_changes at macosforge.org
Mon Nov 1 14:30:16 PDT 2010


Revision: 6544
          http://trac.macosforge.org/projects/calendarserver/changeset/6544
Author:   glyph at apple.com
Date:     2010-11-01 14:30:12 -0700 (Mon, 01 Nov 2010)
Log Message:
-----------
whitespace

Modified Paths:
--------------
    CalendarServer/branches/users/glyph/sharedpool/txdav/common/datastore/sql.py

Modified: CalendarServer/branches/users/glyph/sharedpool/txdav/common/datastore/sql.py
===================================================================
--- CalendarServer/branches/users/glyph/sharedpool/txdav/common/datastore/sql.py	2010-11-01 21:29:47 UTC (rev 6543)
+++ CalendarServer/branches/users/glyph/sharedpool/txdav/common/datastore/sql.py	2010-11-01 21:30:12 UTC (rev 6544)
@@ -748,6 +748,7 @@
             [self._ownerUID]
         ))[0][0])
 
+
     @inlineCallbacks
     def adjustQuotaUsedBytes(self, delta):
         """
@@ -755,7 +756,6 @@
         is done atomically. It is import to do the 'select ... for update' because a race also
         exists in the 'update ... x = x + 1' case as seen via unit tests.
         """
-        
         yield self._txn.execSQL("""
             select * from %(name)s
             where %(column_RESOURCE_ID)s = %%s
@@ -772,7 +772,6 @@
             """ % self._homeTable,
             [delta, self._resourceID]
         ))[0][0]
-        
         # Double check integrity
         if quotaUsedBytes < 0:
             log.error("Fixing quota adjusted below zero to %s by change amount %s" % (quotaUsedBytes, delta,))
@@ -783,8 +782,8 @@
                 """ % self._homeTable,
                 [self._resourceID]
             )
-            
 
+
     def notifierID(self, label="default"):
         if self._notifier:
             return self._notifier.getID(label)
@@ -1004,7 +1003,7 @@
 
     @inlineCallbacks
     def removeObjectResourceWithName(self, name):
-        
+
         uid, old_size = (yield self._txn.execSQL(
             "delete from %(name)s "
             "where %(column_RESOURCE_NAME)s = %%s and %(column_PARENT_RESOURCE_ID)s = %%s "
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20101101/a78b5fa8/attachment.html>


More information about the calendarserver-changes mailing list