Sidebar
- Trying to figure out how to add a new collection to sidebar and select it and show its detail view:
- At the point in the code (Sharing.py : subscribeToWebDavCollection( ) ) where I want to select the new item, the item hasn't actually been added to the sidebar. Actually it's probably the wrong sidebar item I'm trying to select (the collection instead of the view)
- Sharing.py posts: NewItemCollectionItem? event
- Block.py : onModifyContentsEvent( ) adds the collection to the sidebar
- copies an empty view and sets that view's contents, then adds that view to the sidebar
Reminder:
def onShareCollectionEvent (self, notification):
# @@@ This should be replaced by a general purpose dispatcher
# Think about args (callable object + args)
--
MorgenSagen - 13 Sep 2004