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 |
|
|
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 |
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': |
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 |
|
|