| Line 90... |
Line 90... |
| 90 |
USER_CRM_DEFAULT_RETRY_FACTOR = int(PythonPropertyReader.getConfig('USER_CRM_DEFAULT_RETRY_FACTOR'))
|
90 |
USER_CRM_DEFAULT_RETRY_FACTOR = int(PythonPropertyReader.getConfig('USER_CRM_DEFAULT_RETRY_FACTOR'))
|
| 91 |
USER_CRM_DEFAULT_FRESH_FACTOR = int(PythonPropertyReader.getConfig('USER_CRM_DEFAULT_FRESH_FACTOR'))
|
91 |
USER_CRM_DEFAULT_FRESH_FACTOR = int(PythonPropertyReader.getConfig('USER_CRM_DEFAULT_FRESH_FACTOR'))
|
| 92 |
TOTAL = DEALER_RETRY_FACTOR + DEALER_FRESH_FACTOR
|
92 |
TOTAL = DEALER_RETRY_FACTOR + DEALER_FRESH_FACTOR
|
| 93 |
TOTAL_USER = USER_CRM_DEFAULT_FRESH_FACTOR + USER_CRM_DEFAULT_RETRY_FACTOR
|
93 |
TOTAL_USER = USER_CRM_DEFAULT_FRESH_FACTOR + USER_CRM_DEFAULT_RETRY_FACTOR
|
| 94 |
TRANSACTIONAL_SMS_SEND_URL = "http://103.15.179.45:8085/SMSGateway/sendingSMS?"
|
94 |
TRANSACTIONAL_SMS_SEND_URL = "http://103.15.179.45:8085/SMSGateway/sendingSMS?"
|
| 95 |
smsText = "Dear Customer, Download Profitmandi application only for you my friend"
|
- |
|
| - |
|
95 |
|
| 96 |
class CategoryDiscountInfo(object):
|
96 |
class CategoryDiscountInfo(object):
|
| 97 |
|
97 |
|
| 98 |
def on_get(self, req, resp):
|
98 |
def on_get(self, req, resp):
|
| 99 |
|
99 |
|
| 100 |
result = Mongo.getAllCategoryDiscount()
|
100 |
result = Mongo.getAllCategoryDiscount()
|
| Line 2495... |
Line 2495... |
| 2495 |
retailerLink.agent_id = self.agentId
|
2495 |
retailerLink.agent_id = self.agentId
|
| 2496 |
retailerLink.retailer_id = self.retailerId
|
2496 |
retailerLink.retailer_id = self.retailerId
|
| 2497 |
activationCode=Activation_Codes()
|
2497 |
activationCode=Activation_Codes()
|
| 2498 |
activationCode.code = code
|
2498 |
activationCode.code = code
|
| 2499 |
profitmandiUrl = make_tiny(code)
|
2499 |
profitmandiUrl = make_tiny(code)
|
| 2500 |
smsText = smsText + profitmandiUrl
|
2500 |
smsText = "Dear Customer, Download Profitmandi application only for you my friend " + profitmandiUrl
|
| 2501 |
url_params = { 'ani' : '91'+mobile_number, 'uname' : 'srlsaholic', 'passwd' : 'sr18mar' , 'cli' : 'PROFTM', 'message' : smsText.strip() }
|
2501 |
url_params = { 'ani' : '91'+mobile_number, 'uname' : 'srlsaholic', 'passwd' : 'sr18mar' , 'cli' : 'PROFTM', 'message' : smsText.strip() }
|
| 2502 |
encoded_url_params = urllib.urlencode(url_params)
|
2502 |
encoded_url_params = urllib.urlencode(url_params)
|
| 2503 |
print 'Mobile Number :- '+str(mobile_number) +' Url Params:- '+str(encoded_url_params)
|
2503 |
print 'Mobile Number :- '+str(mobile_number) +' Url Params:- '+str(encoded_url_params)
|
| 2504 |
url = TRANSACTIONAL_SMS_SEND_URL + encoded_url_params
|
2504 |
url = TRANSACTIONAL_SMS_SEND_URL + encoded_url_params
|
| 2505 |
response_str = None
|
2505 |
response_str = None
|