[Commits] (morgen) Sharing invitations now get sent out to addresses typed into the collection-

commits at osafoundation.org commits at osafoundation.org
Wed Aug 25 13:30:55 PDT 2004


Commit by: morgen
Modified files:
chandler/application/dialogs/PublishCollection.py 1.1 1.2

Log message:
Sharing invitations now get sent out to addresses typed into the collection-
sharing dialog.


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

Index: chandler/application/dialogs/PublishCollection.py
diff -u chandler/application/dialogs/PublishCollection.py:1.1 chandler/application/dialogs/PublishCollection.py:1.2
--- chandler/application/dialogs/PublishCollection.py:1.1	Wed Aug 25 12:16:06 2004
+++ chandler/application/dialogs/PublishCollection.py	Wed Aug 25 13:30:54 2004
@@ -5,6 +5,7 @@
 from application.Globals import repository as repo
 from application.Globals import parcelManager as pm
 import osaf.mail.message
+import osaf.mail.sharing
 import application.dialogs.Util
 
 DEFAULT_URL = "http://code-bear.com/dav"
@@ -44,19 +45,15 @@
             for invitee in invitees:
                 if not osaf.mail.message.isValidEmailAddress(invitee):
                     self.waitLabel.SetLabel("Invalid address: %s" % invitee)
-                    # application.dialogs.Util.showAlert(self.parent,
-                    #  "Invalid email address:\n%s" % invitee)
                     return
 
         url = self.urlText.GetValue()
-        self.OkButton.Enable(False)
-        self.CancelButton.Enable(False)
         self.waitLabel.SetLabel("Publishing, Please Wait...")
+
         osaf.framework.webdav.Dav.DAV(url).put(self.collection)
 
-        # send invites
-        for invitee in invitees:
-            print "I would be inviting", invitee
+        if invitees:
+            osaf.mail.sharing.sendInvitation(url, invitees)
 
         self.EndModal(True)
 



More information about the Commits mailing list