def loadURL(self): bHasUUID = AISUtil.hasUUID(self.__settings) if False == bHasUUID: # ask the identity service to generate a UUID and return it to the plugin (POST) uuidCreateReq = APUUIDCreateRequest.APUUIDCreateRequest(self.__settings) uuidDict = uuidCreateReq.loadURL(True) return uuidDict else: # open a session and continue normally self.openSession() self.prepareQueryURL() return super(APAccountLoader, self).loadURL()
def loadURL(self): bHasUUID = AISUtil.hasUUID(self.__settings) if False == bHasUUID: # ask the identity service to generate a UUID and return it to the plugin (POST) print "asking for UUID" uuidCreateReq = APUUIDCreateRequest.APUUIDCreateRequest(self.__settings) uuidDict = uuidCreateReq.loadURL(True) for key, val in uuidDict.items(): print "key " + key + ", value: " + val return uuidDict else: # open a session and continue normally print "opening session" self.openSession() self.prepareQueryURL() return super(APAccountLoader, self).loadURL()
def loadURL(self): bHasUUID = AISUtil.hasUUID(self.__settings) if False == bHasUUID: # ask the identity service to generate a UUID and return it to the plugin (POST) print 'asking for UUID' uuidCreateReq = APUUIDCreateRequest.APUUIDCreateRequest( self.__settings) uuidDict = uuidCreateReq.loadURL(True) for key, val in uuidDict.items(): print 'key ' + key + ', value: ' + val return uuidDict else: # open a session and continue normally print 'opening session' self.openSession() self.prepareQueryURL() return super(APAccountLoader, self).loadURL()