def __init__(self, nameServiceArgs): """ Attach to the Naming Service at the supplied host and port number. An exception is thrown if this cannot be accomplished (probably the naming service is not running). """ self.__nsroot = nameService() return
def __init__(self, corba_object, nameServerName=''): # get reference to name service ns_obj = nameService() if (ns_obj is None): print "name service bad resolve" return self.top = ns_obj._narrow(CosNaming.NamingContext) self.path = [('',self.top)] # keep track of where we are self.pathcopy = []