self.isconnected = False
# Create a unique jabber resource
- resource = 'python_'
+ resource = 'python'
if args.has_key('resource'):
resource = args['resource']
resource += '_' + gethostname()+':'+ str(os.getpid()) + '_'+ threading.currentThread().getName().lower()
def osrfConnect(configFile, configContext):
""" Connects to the opensrf network """
+ if osrfGetNetworkHandle():
+ ''' This thread already has a handle '''
+ return
+
# parse the config file
configParser = osrfConfig(configFile, configContext)
configParser.parseConfig()