[Commits] (morgen) If a collection has previously been shared, use its sharedURL inside the

commits at osafoundation.org commits at osafoundation.org
Wed Aug 25 17:30:23 PDT 2004


Commit by: morgen
Modified files:
chandler/application/dialogs/PublishCollection.py 1.4 1.5

Log message:
If a collection has previously been shared, use its sharedURL inside the
"Share collection" dialog.


ViewCVS links:
http://cvs.osafoundation.org/index.cgi/chandler/application/dialogs/PublishCollection.py.diff?r1=text&tr1=1.4&r2=text&tr2=1.5

Index: chandler/application/dialogs/PublishCollection.py
diff -u chandler/application/dialogs/PublishCollection.py:1.4 chandler/application/dialogs/PublishCollection.py:1.5
--- chandler/application/dialogs/PublishCollection.py:1.4	Wed Aug 25 16:03:27 2004
+++ chandler/application/dialogs/PublishCollection.py	Wed Aug 25 17:30:22 2004
@@ -7,6 +7,7 @@
 import osaf.mail.message
 import osaf.mail.sharing
 import application.dialogs.Util
+import osaf.framework.sharing.Sharing
 
 DEFAULT_URL = "http://code-bear.com/dav"
 
@@ -24,7 +25,10 @@
          collection.displayName)
 
         self.urlText = wx.xrc.XRCCTRL(self, "ID_URL")
-        self.urlText.SetValue("%s/%s" % (DEFAULT_URL, collection.itsUUID))
+        if osaf.framework.sharing.Sharing.isShared(collection):
+            self.urlText.SetValue("%s" % collection.sharedURL)
+        else:
+            self.urlText.SetValue("%s/%s" % (DEFAULT_URL, collection.itsUUID))
 
         self.inviteesText = wx.xrc.XRCCTRL(self, "ID_INVITEES")
 



More information about the Commits mailing list