[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.12, Fri Oct 17 20:25:57 2003 UTC revision 1.13, Wed Nov 5 02:28:44 2003 UTC
# Line 26  Line 26 
26      #------------------------------------------------------------------------      #------------------------------------------------------------------------
27          self.parent = parent          self.parent = parent
28          self.seedServer = "http://cyano.cs.uchicago.edu/FIG/"          self.seedServer = "http://cyano.cs.uchicago.edu/FIG/"
29            self.__seedDataFactory = SeedDataFactory( self.seedServer )
30    
31          self.to_re = parent.re          self.to_re = parent.re
32          self.selected = None       #remember last selected catalog entry          self.selected = None       #remember last selected catalog entry
33                                     #..is used when LOAD button is hit.                                     #..is used when LOAD button is hit.
# Line 64  Line 66 
66          self.loadWitCatalog( witItemId )          self.loadWitCatalog( witItemId )
67          self.loadSeedCatalog( seedItemId )          self.loadSeedCatalog( seedItemId )
68    
69    
70          self.parent.catalog_tree.Expand( self.parent.catalogRootId)          self.parent.catalog_tree.Expand( self.parent.catalogRootId)
71          return          return
72    
# Line 99  Line 102 
102          return          return
103    
104      #------------------------------------------------------------------------      #------------------------------------------------------------------------
105      def loadSeedCatalog(self, witItemId):      def loadSeedCatalog(self, seedItemId):
106      #------------------------------------------------------------------------      #------------------------------------------------------------------------
         seed=SeedDataFactory( self.seedServer )  
107    
108          orgItemId=self.parent.catalog_tree.AppendItem(witItemId, "Organisms" )          orgList = self.__seedDataFactory.listOrganisms( )
109            if ( orgList== None ):
110                orgItemId=self.parent.catalog_tree.AppendItem(seedItemId,
111                             "Could not get Org list from "+ self.seedServer )
112                return
113    
114          orgList = seed.listOrganisms( )          orgItemId=self.parent.catalog_tree.AppendItem(seedItemId, "Organisms" )
115          for org in orgList:          for org in orgList:
116              id=self.parent.catalog_tree.AppendItem(orgItemId, org.figOrgName )              id=self.parent.catalog_tree.AppendItem(orgItemId, org.figOrgName )
117              self.parent.catalog_tree.SetPyData(id, (self.seedOrgLoader, org ))              self.parent.catalog_tree.SetPyData(id, (self.seedOrgLoader, org ))
# Line 187  Line 193 
193      def seedOrgLoader(self,  org ):      def seedOrgLoader(self,  org ):
194      #------------------------------------------------------------------------      #------------------------------------------------------------------------
195          wxBeginBusyCursor()          wxBeginBusyCursor()
196          print "seedOrgLoader getting (", org.figOrgId, " , ", org.figOrgName, ")"  
197          seed = SeedDataFactory( self.seedServer )          top=self.__seedDataFactory.getRecoElemByOrg( org )
         top=seed.getRecoElemByOrg( org )  
198          self.to_re.AddRecoElemTree(self.parent.rootId, top)          self.to_re.AddRecoElemTree(self.parent.rootId, top)
199          wxEndBusyCursor()          wxEndBusyCursor()
200          return          return

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3