[Bio] / PyGUI / Catalogpanel.py Repository:
ViewVC logotype

Diff of /PyGUI/Catalogpanel.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.14, Wed Nov 5 21:07:55 2003 UTC revision 1.18, Thu Nov 13 19:21:46 2003 UTC
# Line 84  Line 84 
84          self.loadWitCatalog( witItemId )          self.loadWitCatalog( witItemId )
85    
86          localSeedServer        = "http://localhost/FIG/"          localSeedServer        = "http://localhost/FIG/"
87    #        localSeedServer        = "http://float179.mcs.anl-external.org/FIG/"
88          self.loadSeedCatalog( localSeedServer)          self.loadSeedCatalog( localSeedServer)
89    
90          self.parent.catalog_tree.Expand( self.parent.catalogRootId)          self.parent.catalog_tree.Expand( self.parent.catalogRootId)
# Line 139  Line 140 
140    
141          seedFactory   = SeedDataFactory( seedServer )          seedFactory   = SeedDataFactory( seedServer )
142    
143            # add it to the list in the catalog
144            self.parent.factoryMgr.addFactory( seedServer, seedFactory )
145    
146          # make an entry in the tree for it          # make an entry in the tree for it
147          #          #
148          newSeedItemId=self.parent.catalog_tree.AppendItem(self.seedItemId, seedServer )          newSeedItemId=self.parent.catalog_tree.AppendItem(self.seedItemId, seedServer )
# Line 149  Line 153 
153          if ( orgList== None ):          if ( orgList== None ):
154              orgItemId=self.parent.catalog_tree.AppendItem(newSeedItemId,              orgItemId=self.parent.catalog_tree.AppendItem(newSeedItemId,
155                           "Could not get Org list from "+ seedServer )                           "Could not get Org list from "+ seedServer )
156                wxEndBusyCursor()
157              return              return
158    
159            itemName="Spontaneous Reactions"
160            spontaneousRxItemId=self.parent.catalog_tree.AppendItem(newSeedItemId, itemName)
161            self.parent.catalog_tree.SetPyData(spontaneousRxItemId,
162                                               (self.seedRecoElemLoader,
163                                               (seedFactory.getRecoElemSpontaneousRx, None) ))
164    
165    
166          orgItemId=self.parent.catalog_tree.AppendItem(newSeedItemId, "Organisms" )          orgItemId=self.parent.catalog_tree.AppendItem(newSeedItemId, "Organisms" )
167          for org in orgList:          for org in orgList:
168              id=self.parent.catalog_tree.AppendItem(orgItemId, org.figOrgName )              id=self.parent.catalog_tree.AppendItem(orgItemId, org.figOrgName )
169              self.parent.catalog_tree.SetPyData(id, (self.seedOrgLoader,              self.parent.catalog_tree.SetPyData(id, (self.seedRecoElemLoader,
170                                                     (seedFactory.getRecoElemByOrg, org) ))                                                     (seedFactory.getRecoElemByOrg, org) ))
171    
172    
173          wxEndBusyCursor()          wxEndBusyCursor()
174          return          return
175    
# Line 261  Line 274 
274          return          return
275    
276      #------------------------------------------------------------------------      #------------------------------------------------------------------------
277      def seedOrgLoader(self,  argList ):      def seedRecoElemLoader(self,  argList ):
278      #------------------------------------------------------------------------      #------------------------------------------------------------------------
279          wxBeginBusyCursor()          wxBeginBusyCursor()
280    

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.18

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3