[CalendarServer-changes] [8628] CalendarServer/trunk

source_changes at macosforge.org source_changes at macosforge.org
Fri Feb 3 16:41:30 PST 2012


Revision: 8628
          http://trac.macosforge.org/projects/calendarserver/changeset/8628
Author:   glyph at apple.com
Date:     2012-02-03 16:41:29 -0800 (Fri, 03 Feb 2012)
Log Message:
-----------
homeType is another loop variable, so it needs to be captured along with fileUID

Modified Paths:
--------------
    CalendarServer/trunk/txdav/common/datastore/upgrade/migrate.py

Property Changed:
----------------
    CalendarServer/trunk/

Modified: CalendarServer/trunk/txdav/common/datastore/upgrade/migrate.py
===================================================================
--- CalendarServer/trunk/txdav/common/datastore/upgrade/migrate.py	2012-02-04 00:22:29 UTC (rev 8627)
+++ CalendarServer/trunk/txdav/common/datastore/upgrade/migrate.py	2012-02-04 00:41:29 UTC (rev 8628)
@@ -386,7 +386,7 @@
                     # before asking the subprocess to handle it.
                     yield fileTxn.commit()
                     @inlineCallbacks
-                    def doOneUpgrade(driver, fileUID=uid):
+                    def doOneUpgrade(driver, fileUID=uid, homeType=homeType):
                         yield driver.oneUpgrade(fileUID, homeType)
                         self.log_warn("Completed migration of %s uid %r" %
                                       (homeType, fileUID))
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20120203/d16fec39/attachment.html>


More information about the calendarserver-changes mailing list