[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.23, Thu Mar 25 00:49:56 2004 UTC revision 1.24, Fri Mar 26 17:12:46 2004 UTC
# Line 5  Line 5 
5  from FaST.SeedDataFactory import SeedOrganism  from FaST.SeedDataFactory import SeedOrganism
6  from FaST.RecoElem import RecoElem  from FaST.RecoElem import RecoElem
7  from RecoElempanel import RecoElempanel  from RecoElempanel import RecoElempanel
8    from CatalogServices.Catalog import Catalog
9    
10    
11  class Catalogpanel:  class Catalogpanel:
# Line 100  Line 100 
100      def loadBssCatalog(self, bssItemId):      def loadBssCatalog(self, bssItemId):
101      #------------------------------------------------------------------------      #------------------------------------------------------------------------
102          b=BssFactory()          b=BssFactory()
103            Catalog.instance().addDataFactory( b )
104          for catEntryTuple in b.getLsCat():          for catEntryTuple in b.getLsCat():
105              id=self.parent.catalog_tree.AppendItem(bssItemId, catEntryTuple[0])              id=self.parent.catalog_tree.AppendItem(bssItemId, catEntryTuple[0])
106              self.parent.catalog_tree.SetPyData(id, (self.bssLoader, catEntryTuple) )              self.parent.catalog_tree.SetPyData(id, (self.bssLoader, catEntryTuple) )
# Line 110  Line 111 
111      def loadWitCatalog(self, witItemId):      def loadWitCatalog(self, witItemId):
112      #------------------------------------------------------------------------      #------------------------------------------------------------------------
113          w=WitFactory()          w=WitFactory()
114            Catalog.instance().addDataFactory( w )
115          pwyItemId=self.parent.catalog_tree.AppendItem(witItemId, "Pathways" )          pwyItemId=self.parent.catalog_tree.AppendItem(witItemId, "Pathways" )
116    
117          pwyList = w.listPathways( )          pwyList = w.listPathways( )
# Line 139  Line 140 
140    
141          # add it to the list in the catalog          # add it to the list in the catalog
142          try:          try:
143              Catalog.instance().addFactory( seedFactory )              Catalog.instance().addDataFactory( seedFactory )
144          except:          except:
145              self.parent.error("loadSeedCatalog: %s already in foundry list." % seedServer)              self.parent.error("loadSeedCatalog: %s already in foundry list." % seedServer)
146              wxEndBusyCursor()              wxEndBusyCursor()

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3