Commit by: john
Modified files:
chandler/parcels/osaf/framework/sharing/ShareTool.py 1.5 1.6

Log message:
Added a possible fix for Morgen's share tool which adds an item collection to 
the sidebar -- but couldn't figure out how to use the share tool and test the 
code.

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

Index: chandler/parcels/osaf/framework/sharing/ShareTool.py
diff -u chandler/parcels/osaf/framework/sharing/ShareTool.py:1.5 
chandler/parcels/osaf/framework/sharing/ShareTool.py:1.6
--- chandler/parcels/osaf/framework/sharing/ShareTool.py:1.5    Wed Jan 19 
15:52:33 2005
+++ chandler/parcels/osaf/framework/sharing/ShareTool.py        Sat Jan 22 
12:47:47 2005
@@ -109,6 +109,16 @@
             self.view.commit()
             # ...and selecting that view in the sidebar
             Globals.mainView.selectView(args['view'], 
showInDetailView=share.contents)
+
+            # Here's my best guess about how it should work, although I 
couldn't figure out
+            # how to test it -- DJA
+            collection = share.contents
+            mainView = Globals.view[0]
+            mainView.postEventByName ("AddToSidebar", {'items':[collection]})
+            self.view.commit()
+            # ...and selecting that view in the sidebar
+            mainView.postEventByName('RequestSelectSidebarItem', 
{'item':collection})
+            mainView.postEventByName ('SelectItemBroadcastInsideActiveView', 
{'item':collection})
             """
         self._populateSharesList()
 

_______________________________________________
Commits mailing list
Commits@osafoundation.org
http://lists.osafoundation.org/mailman/listinfo/commits

Reply via email to