Getting Down to Code Step 6
Step 6: CORBA-enable your server code
import WordLookup__skel, ilu
class WebsterLookup(WordLookup__skel.WebsterLookup):
def lookupWord(self, word):
# Need to get a tmp file name here
os.system('webster ‘ + word + ‘ > /tmp/websterResult')
fd = open('/tmp/websterResult')
# Throw away the first line (reports on contacting Webster server):
os.system('rm /tmp/websterResult')
Modify file WordLookupServer.py (changes in red):