r2 - 13 Sep 2004 - 13:38:51 - MorgenSagenYou are here: OSAF >  Journal Web  >  ContributorNotes > MorgenSagenNotes > MorgenSagen20040910

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)

  1. Sharing.py posts: NewItemCollectionItem? event
  2. 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

Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r2 < r1 | More topic actions
 
Open Source Applications Foundation
Except where otherwise noted, this site and its content are licensed by OSAF under an Creative Commons License, Attribution Only 3.0.
See list of page contributors for attributions.