hey read the below code . this is code to for some app that checks authorization.
more detail can be give only if we meet personally for now if following lines makes sense to you you are man for job
I am from mumbai if u from mumbai pm me
does below lines means anything to you ? coz u need to make front end to that code
if it means anything to you you are my man for job
try:
auth = yield self.__productAuthorizer.getProductAuth(productId, userId, forDirectUse=True, overrideCache=overrideCache)
logger.info('PRODUCT AUTH = 1 : %s', productId)
except Exception as e:
logger.info('PRODUCT AUTH = EXCEPTION : %s', productId)
ivcu.product.raiseProductLoadError(e, True)
if trialAuth and not auth['usableDirect']:
logger.info('PRODUCT AUTH = 2 : %s', productId)
auth = auth.copy()
auth['usableDirect'] = auth['usableTrial']
if forceAuth and not auth['usableDirect']:
logger.info('PRODUCT AUTH = 3 : %s', productId)
auth = auth.copy()
auth['usableDirect'] = 1
if not auth['usableDirect']:
logger.info('PRODUCT AUTH = 4 : %s', productId)
query_args = {'pid': productId}
encoded_args = urllib.urlencode(query_args)
url = 'http://www.dummysite.com/community/check/auth/pid.php?' + encoded_args
data = urllib2.urlopen(url).read()
logger.info('SERVER RESPONSE = %s', data)
if data == 'True ':
logger.info('SERVER RESPONSE WAS TRUE')
auth = auth.copy()
auth['usableDirect'] = 1
else:
error = ivmu.product.ProductAuthorizationError('userId: %r productId: %r, info: %r' % (userId, productId, auth.get('info', '')), False)
ivmu.product.raiseProductLoadError(error, True)
pd = yield self.getProductDescription(productId, userId)
yield Return(pd)
@task
more detail can be give only if we meet personally for now if following lines makes sense to you you are man for job
I am from mumbai if u from mumbai pm me
does below lines means anything to you ? coz u need to make front end to that code
if it means anything to you you are my man for job
try:
auth = yield self.__productAuthorizer.getProductAuth(productId, userId, forDirectUse=True, overrideCache=overrideCache)
logger.info('PRODUCT AUTH = 1 : %s', productId)
except Exception as e:
logger.info('PRODUCT AUTH = EXCEPTION : %s', productId)
ivcu.product.raiseProductLoadError(e, True)
if trialAuth and not auth['usableDirect']:
logger.info('PRODUCT AUTH = 2 : %s', productId)
auth = auth.copy()
auth['usableDirect'] = auth['usableTrial']
if forceAuth and not auth['usableDirect']:
logger.info('PRODUCT AUTH = 3 : %s', productId)
auth = auth.copy()
auth['usableDirect'] = 1
if not auth['usableDirect']:
logger.info('PRODUCT AUTH = 4 : %s', productId)
query_args = {'pid': productId}
encoded_args = urllib.urlencode(query_args)
url = 'http://www.dummysite.com/community/check/auth/pid.php?' + encoded_args
data = urllib2.urlopen(url).read()
logger.info('SERVER RESPONSE = %s', data)
if data == 'True ':
logger.info('SERVER RESPONSE WAS TRUE')
auth = auth.copy()
auth['usableDirect'] = 1
else:
error = ivmu.product.ProductAuthorizationError('userId: %r productId: %r, info: %r' % (userId, productId, auth.get('info', '')), False)
ivmu.product.raiseProductLoadError(error, True)
pd = yield self.getProductDescription(productId, userId)
yield Return(pd)
@task