dabo Commit
Revision 4996
Date: 2009-01-30 05:02:15 -0800 (Fri, 30 Jan 2009)
Author: Ed
Trac: http://trac.dabodev.com/changeset/4996

Changed:
U   trunk/dabo/dApp.py

Log:
Added code to handle the situation where a modified file is returned by Web 
Update. Thanks to John Hampton for reporting this issue.



Diff:
Modified: trunk/dabo/dApp.py
===================================================================
--- trunk/dabo/dApp.py  2009-01-30 12:45:37 UTC (rev 4995)
+++ trunk/dabo/dApp.py  2009-01-30 13:02:15 UTC (rev 4996)
@@ -628,6 +628,10 @@
                                else:
                                        if not os.path.isdir(localPath):
                                                os.makedirs(localPath)
+                                       if (mtype == "M") and 
os.path.isdir(localFile):
+                                               # The folder was modified, such 
as by a permission change. 
+                                               # We should ignore this.
+                                               continue
                                        # Permission exceptions should be 
caught by the calling method.
                                        resp = urllib2.urlopen(url % (webdir, 
fpth))
                                        file(localFile, "w").write(resp.read())



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to