[Commits] (morgen) Adding a Sync Collection menu item

commits at osafoundation.org commits at osafoundation.org
Mon Aug 23 16:27:42 PDT 2004


Commit by: morgen
Modified files:
chandler/parcels/osaf/framework/sharing/Sharing.py 1.3 1.4

Log message:
Adding a Sync Collection menu item



ViewCVS links:
http://cvs.osafoundation.org/index.cgi/chandler/parcels/osaf/framework/sharing/Sharing.py.diff?r1=text&tr1=1.3&r2=text&tr2=1.4

Index: chandler/parcels/osaf/framework/sharing/Sharing.py
diff -u chandler/parcels/osaf/framework/sharing/Sharing.py:1.3 chandler/parcels/osaf/framework/sharing/Sharing.py:1.4
--- chandler/parcels/osaf/framework/sharing/Sharing.py:1.3	Mon Aug 23 13:35:47 2004
+++ chandler/parcels/osaf/framework/sharing/Sharing.py	Mon Aug 23 16:27:41 2004
@@ -1,5 +1,5 @@
-__version__ = "$Revision: 1.3 $"
-__date__ = "$Date: 2004/08/23 20:35:47 $"
+__version__ = "$Revision: 1.4 $"
+__date__ = "$Date: 2004/08/23 23:27:41 $"
 __copyright__ = "Copyright (c) 2004 Open Source Applications Foundation"
 __license__ = "http://osafoundation.org/Chandler_0.1_license_terms.htm"
 
@@ -77,3 +77,9 @@
             addresses = addresses.split(",")
             sendInvites(addresses, url)
 
+def syncCollection(collection):
+    if collection.getAttributeValue('sharedURL', None):
+        print "Synchronizing", collection.sharedURL
+        osaf.framework.webdav.Dav.DAV(collection.sharedURL).get()
+    else:
+        print "Collection hasn't been shared yet"



More information about the Commits mailing list