[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.34, Mon Jul 12 20:38:19 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 )
         b             = BssFactory()  
95    
96          try:          ##
97              Catalog.instance().addDataFactory( seedFactory )          # DO NOT CREATE BssFactory() HERE ANY LONGER
98              Catalog.instance().addDataFactory( b )          # See main progam, ModelEditor
99          except:          ##
             self.parent.error("loadCatalog: error" )  
             wxEndBusyCursor()  
             return  
100    
101          ##          ##
102          # Handle top/root of catalog/tree specially to avoid "two root"          # Handle top/root of catalog/tree specially to avoid "two root"
# Line 149  Line 146 
146          return          return
147    
148      #------------------------------------------------------------------------      #------------------------------------------------------------------------
149      def loadSeedCatalog(self, seedServer ):      def DOOMloadSeedCatalog(self, seedServer ):
150      #------------------------------------------------------------------------      #------------------------------------------------------------------------
151          """          """
152          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 194 
194          theBox.Clear()          theBox.Clear()
195    
196          if ( not catEntry.isTerminal() ):          if ( not catEntry.isTerminal() ):
197              self.parent.catPathValue.SetLabel( catEntry.path() + "/" )  
198                self.parent.catPathValue.SetValue( catEntry.path() + "/" )
199              self.parent.catVersionValueComboBox.SetLabel( "")              self.parent.catVersionValueComboBox.SetLabel( "")
200              self.parent.catHistoryDateValue.SetLabel( "" )              self.parent.catHistoryDateValue.SetLabel( "" )
201              self.parent.catHistoryUserValue.SetLabel( "" )              self.parent.catHistoryUserValue.SetLabel( "" )

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

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3