[Commits] (donn) Allow editing of sharees after sharing a collection

commits at osafoundation.org commits at osafoundation.org
Thu Sep 16 16:09:02 PDT 2004


Commit by: donn
Modified files:
chandler/parcels/osaf/framework/blocks/detail/Detail.py 1.31 1.32

Log message:
Allow editing of sharees after sharing a collection
------------------------------------------------------------------
* We had disabled the sharees once a collection had been shared.
* When you renotify, it sends notifications to every sharee

ViewCVS links:
http://cvs.osafoundation.org/index.cgi/chandler/parcels/osaf/framework/blocks/detail/Detail.py.diff?r1=text&tr1=1.31&r2=text&tr2=1.32

Index: chandler/parcels/osaf/framework/blocks/detail/Detail.py
diff -u chandler/parcels/osaf/framework/blocks/detail/Detail.py:1.31 chandler/parcels/osaf/framework/blocks/detail/Detail.py:1.32
--- chandler/parcels/osaf/framework/blocks/detail/Detail.py:1.31	Thu Sep 16 12:23:13 2004
+++ chandler/parcels/osaf/framework/blocks/detail/Detail.py	Thu Sep 16 16:09:01 2004
@@ -1,5 +1,5 @@
-__version__ = "$Revision: 1.31 $"
-__date__ = "$Date: 2004/09/16 19:23:13 $"
+__version__ = "$Revision: 1.32 $"
+__date__ = "$Date: 2004/09/16 23:09:01 $"
 __copyright__ = "Copyright (c) 2004 Open Source Applications Foundation"
 __license__ = "http://osafoundation.org/Chandler_0.1_license_terms.htm"
 
@@ -215,12 +215,6 @@
         # define the attribute to be used
         return self.parentBlock.selectedItemsAttribute
 
-    def nonEditableIfSharedCollection (self, item):
-        # make editable/noneditable based on shared collection status
-        if isinstance (item, ItemCollection.ItemCollection):
-            shouldAllowEdits = not Sharing.isShared (item)
-            self.widget.SetEditable (shouldAllowEdits)
-
     def parseEmailAddresses(self, item, addressesString):
         """
           Parse the email addresses in addressesString and return
@@ -547,9 +541,6 @@
         whoString = item.ItemWhoString ()
         widget.SetValue (whoString)
 
-        # also update editability based on shared collection status
-        self.nonEditableIfSharedCollection (item)
-
     def shouldShow (self, item):
         contactKind = Contacts.ContactsParcel.getContactKind ()
         if item is None or item.isItemOf (contactKind):



More information about the Commits mailing list