[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.27, Wed Jun 23 19:02:51 2004 UTC revision 1.32, Fri Jul 9 15:29:36 2004 UTC
# Line 1  Line 1 
1  from wxPython.wx             import *  from wxPython.wx             import *
2  from FaST.BssFactory         import BssFactory  from FaST.BssFactory         import BssFactory
3    from FaST.BssFactoryProxy    import BssFactoryProxy
4  from FaST.WitFactory         import WitFactory  from FaST.WitFactory         import WitFactory
5  from FaST.SeedDataFactory    import SeedDataFactory  from FaST.SeedDataFactory    import SeedDataFactory
6  from FaST.SeedDataFactory    import SeedOrganism  from FaST.SeedDataFactory    import SeedOrganism
7  from FaST.RecoElem           import RecoElem  from KahOM.RecoElem           import RecoElem
8  from RecoElempanel           import RecoElempanel  from PyGUI.RecoElempanel           import RecoElempanel
9  from CatalogServices.Catalog import Catalog  from CatalogServices.Catalog import Catalog
10    
11    
# Line 89  Line 90 
90      #------------------------------------------------------------------------      #------------------------------------------------------------------------
91          wxBeginBusyCursor()          wxBeginBusyCursor()
92    
93          localSeedServer        = "http://localhost/FIG"          #localSeedServer        = "http://localhost/FIG"
94          seedFactory   = SeedDataFactory( localSeedServer )          #seedFactory   = SeedDataFactory( localSeedServer )
95          b             = BssFactory()          b             = BssFactory()
96            #theConnectionInfo = ["terra.mcs.anl.gov", 3000]
97            #b             = BssFactoryProxy(theConnectionInfo)
98    
99          try:          try:
             Catalog.instance().addDataFactory( seedFactory )  
100              Catalog.instance().addDataFactory( b )              Catalog.instance().addDataFactory( b )
101          except:          except:
102              self.parent.error("loadCatalog: error" )              self.parent.error("LoadCatalog: no local Bss database." )
103              wxEndBusyCursor()              wxEndBusyCursor()
104              return              return
105    
# Line 149  Line 151 
151          return          return
152    
153      #------------------------------------------------------------------------      #------------------------------------------------------------------------
154      def loadSeedCatalog(self, seedServer ):      def DOOMloadSeedCatalog(self, seedServer ):
155      #------------------------------------------------------------------------      #------------------------------------------------------------------------
156          """          """
157          This adds a Seed instance to the catalog.  It is called from the          This adds a Seed instance to the catalog.  It is called from the
# Line 197  Line 199 
199          theBox.Clear()          theBox.Clear()
200    
201          if ( not catEntry.isTerminal() ):          if ( not catEntry.isTerminal() ):
202              self.parent.catPathValue.SetLabel( catEntry.path() + "/" )  
203                self.parent.catPathValue.SetValue( catEntry.path() + "/" )
204              self.parent.catVersionValueComboBox.SetLabel( "")              self.parent.catVersionValueComboBox.SetLabel( "")
205              self.parent.catHistoryDateValue.SetLabel( "" )              self.parent.catHistoryDateValue.SetLabel( "" )
206              self.parent.catHistoryUserValue.SetLabel( "" )              self.parent.catHistoryUserValue.SetLabel( "" )

Legend:
Removed from v.1.27  
changed lines
  Added in v.1.32

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3