[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.16, Wed Nov 12 22:56:33 2003 UTC revision 1.19, Thu Nov 13 21:41:08 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/"  #        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 141  Line 141 
141          seedFactory   = SeedDataFactory( seedServer )          seedFactory   = SeedDataFactory( seedServer )
142    
143          # add it to the list in the catalog          # add it to the list in the catalog
144            try:
145          self.parent.factoryMgr.addFactory( seedServer, seedFactory )          self.parent.factoryMgr.addFactory( seedServer, seedFactory )
146            except:
147                self.parent.error("loadSeedCatalog: %s already in foundry list." % seedServer)
148                wxEndBusyCursor()
149                return
150    
151          # make an entry in the tree for it          # make an entry in the tree for it
152          #          #
# Line 156  Line 161 
161              wxEndBusyCursor()              wxEndBusyCursor()
162              return              return
163    
164            itemName="Spontaneous Reactions"
165            spontaneousRxItemId=self.parent.catalog_tree.AppendItem(newSeedItemId, itemName)
166            self.parent.catalog_tree.SetPyData(spontaneousRxItemId,
167                                               (self.seedRecoElemLoader,
168                                               (seedFactory.getRecoElemSpontaneousRx, None) ))
169    
170    
171          orgItemId=self.parent.catalog_tree.AppendItem(newSeedItemId, "Organisms" )          orgItemId=self.parent.catalog_tree.AppendItem(newSeedItemId, "Organisms" )
172          for org in orgList:          for org in orgList:
173              id=self.parent.catalog_tree.AppendItem(orgItemId, org.figOrgName )              id=self.parent.catalog_tree.AppendItem(orgItemId, org.figOrgName )
174              self.parent.catalog_tree.SetPyData(id, (self.seedOrgLoader,              self.parent.catalog_tree.SetPyData(id, (self.seedRecoElemLoader,
175                                                     (seedFactory.getRecoElemByOrg, org) ))                                                     (seedFactory.getRecoElemByOrg, org) ))
176    
177    
# Line 267  Line 279 
279          return          return
280    
281      #------------------------------------------------------------------------      #------------------------------------------------------------------------
282      def seedOrgLoader(self,  argList ):      def seedRecoElemLoader(self,  argList ):
283      #------------------------------------------------------------------------      #------------------------------------------------------------------------
284          wxBeginBusyCursor()          wxBeginBusyCursor()
285    

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.19

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3