[CalendarServer-changes] [7613] CalendarServer/branches/users/glyph/quota/txdav/caldav/datastore/ file.py
source_changes at macosforge.org
source_changes at macosforge.org
Mon Jun 20 11:43:30 PDT 2011
Revision: 7613
http://trac.macosforge.org/projects/calendarserver/changeset/7613
Author: glyph at apple.com
Date: 2011-06-20 11:43:29 -0700 (Mon, 20 Jun 2011)
Log Message:
-----------
consistent naming (old_size -> oldSize)
Modified Paths:
--------------
CalendarServer/branches/users/glyph/quota/txdav/caldav/datastore/file.py
Modified: CalendarServer/branches/users/glyph/quota/txdav/caldav/datastore/file.py
===================================================================
--- CalendarServer/branches/users/glyph/quota/txdav/caldav/datastore/file.py 2011-06-20 18:43:19 UTC (rev 7612)
+++ CalendarServer/branches/users/glyph/quota/txdav/caldav/datastore/file.py 2011-06-20 18:43:29 UTC (rev 7613)
@@ -496,14 +496,14 @@
# FIXME: rollback, tests for rollback
attachment = (yield self.attachmentWithName(name))
- old_size = attachment.size()
+ oldSize = attachment.size()
(yield self._dropboxPath()).child(name).remove()
if name in self._attachments:
del self._attachments[name]
# Adjust quota
- self._calendar._home.adjustQuotaUsedBytes(-old_size)
+ self._calendar._home.adjustQuotaUsedBytes(-oldSize)
@inlineCallbacks
@@ -603,7 +603,7 @@
def loseConnection(self):
- old_size = self._attachment.size()
+ oldSize = self._attachment.size()
# FIXME: do anything
self._file.close()
@@ -617,7 +617,7 @@
# Adjust quota
self._attachment._calendarObject._calendar._home.adjustQuotaUsedBytes(
- self._attachment.size() - old_size
+ self._attachment.size() - oldSize
)
props.flush()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20110620/2bcb7360/attachment.html>
More information about the calendarserver-changes
mailing list