[Commits] (pavlov) when there are localChanges, we need to do a put so that the etag changes.

commits at osafoundation.org commits at osafoundation.org
Mon Aug 23 17:47:53 PDT 2004


Commit by: pavlov
Modified files:
chandler/parcels/osaf/framework/webdav/Sync.py 1.15 1.16

Log message:
when there are localChanges, we need to do a put so that the etag changes.


ViewCVS links:
http://cvs.osafoundation.org/index.cgi/chandler/parcels/osaf/framework/webdav/Sync.py.diff?r1=text&tr1=1.15&r2=text&tr2=1.16

Index: chandler/parcels/osaf/framework/webdav/Sync.py
diff -u chandler/parcels/osaf/framework/webdav/Sync.py:1.15 chandler/parcels/osaf/framework/webdav/Sync.py:1.16
--- chandler/parcels/osaf/framework/webdav/Sync.py:1.15	Mon Aug 23 17:23:08 2004
+++ chandler/parcels/osaf/framework/webdav/Sync.py	Mon Aug 23 17:47:51 2004
@@ -36,7 +36,7 @@
         localChanges = True
         serverChanges = False
 
-    print 'Syncing %s'          % (unicode(dav.url))
+    print 'Syncing %s (%s)'     % (unicode(dav.url), item.getItemDisplayName())
     print '-- needsPut      %s' % (needsPut)
     print '-- localChanges  %s' % (localChanges)
     print '-- serverChanges %s' % (serverChanges)
@@ -60,6 +60,11 @@
         # put back merged local changes
         syncToServer(dav, item)
 
+        # because some server suck (moddav) and don't change the etag
+        # when you change properties, lets force this
+        dav.putResource(item.itsKind.itsName, 'text/plain')
+
+
     if serverChanges or localChanges:
         # Make sure we have the latest etag and lastModified
         # Note: some servers *cough*xythos*cough* change the etag when you



More information about the Commits mailing list