Example #1
0
    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()
Example #2
0
    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()
Example #3
0
 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()
Example #4
0
 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()