/[papo]/gnue/appserver/src/_featuretest/atest.py
ViewVC logotype

Diff of /gnue/appserver/src/_featuretest/atest.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by charlie, Tue Aug 27 18:15:51 2002 UTC revision 1.4 by styxman, Fri Nov 8 16:38:42 2002 UTC
# Line 27  from gnue.common import GLoginHandler Line 27  from gnue.common import GLoginHandler
27  import geasObjectServer  import geasObjectServer
28  import GEDI  import GEDI
29  import geasConnectionPool  import geasConnectionPool
30    import geasTools
31    import geasOQLParser
32    
33  import sys, string, os  import sys, string, os
34    
# Line 103  class testApp (GClientApp.GClientApp): Line 105  class testApp (GClientApp.GClientApp):
105      instance=self.sess.Address.newInstance()      instance=self.sess.Address.newInstance()
106      instance.showNamespace()      instance.showNamespace()
107      print "-"*30      print "-"*30
108    
109      def loadClassDefFromODLfile(self):
110        print "-"*30
111        print "Load an class definitions out of an ODL file"
112        print "-"*30
113        print "loading from thekitchensink.godl"
114        odlimport=geasTools.geasGODLimport(22222,22222);
115        godlFile=__file__[:string.rfind(__file__,'/')]+"/thekitchensink.godl"
116        odlimport.importGODL(godlFile)
117        print "-"*30    
118            
119    def execMenu(self,menu,default):    def execMenu(self,menu,default):
120      print      print
# Line 117  class testApp (GClientApp.GClientApp): Line 129  class testApp (GClientApp.GClientApp):
129      while res!='9':      while res!='9':
130        menu = {'0':'Show all classes','1':'show object server cache',        menu = {'0':'Show all classes','1':'show object server cache',
131                '2':'basic test run','3':'Show Namespace of a method',                '2':'basic test run','3':'Show Namespace of a method',
132                  '4':'import an ODL file','5':'open OQL console',
133                '9':'end'}                '9':'end'}
134        res=self.execMenu(menu,'2')        res=self.execMenu(menu,'2')
135        if res=='0':        if res=='0':
# Line 156  class testApp (GClientApp.GClientApp): Line 169  class testApp (GClientApp.GClientApp):
169          self.basictest()          self.basictest()
170        elif res=='3':        elif res=='3':
171          self.showMethodNamespace()          self.showMethodNamespace()
172          elif res=='4':
173            self.loadClassDefFromODLfile()
174          elif res=='5':
175             x = geasOQLParser.geasOQLParser(231,452)
176             x.commandLine()
177                
178                
179            

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26