Subversion Repositories SmartDukaan

Rev

Rev 12560 | Rev 13025 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 12560 Rev 12977
Line 27... Line 27...
27
import email.encoders
27
import email.encoders
28
import mechanize
28
import mechanize
29
import cookielib
29
import cookielib
30
from urllib2 import Request
30
from urllib2 import Request
31
 
31
 
32
 
-
 
33
config_client = ConfigClient()
32
config_client = ConfigClient()
34
host = config_client.get_property('staging_hostname')
33
host = config_client.get_property('staging_hostname')
35
syncPrice=config_client.get_property('sync_price_on_marketplace')
34
syncPrice=config_client.get_property('sync_price_on_marketplace')
36
 
35
 
37
 
36
 
Line 410... Line 409...
410
            rank = iterator +1
409
            rank = iterator +1
411
        else:
410
        else:
412
            if rank==0:
411
            if rank==0:
413
                otherInventory = otherInventory +vendor['buyableInventory']
412
                otherInventory = otherInventory +vendor['buyableInventory']
414
        iterator+=1
413
        iterator+=1
415
    snapdealDetails = __SnapdealDetails(ourSp,ourInventory,otherInventory,rank,lowestSellerName, lowestSellerCode,lowestSp,secondLowestSellerName,secondLowestSellerCode,secondLowestSellerSp,secondLowestSellerInventory,lowestOfferPrice,secondLowestSellerOfferPrice,ourOfferPrice,len(vendorInfo))
414
    snapdealDetails = __SnapdealDetails(ourSp,ourInventory,otherInventory,rank,str(lowestSellerName), lowestSellerCode,lowestSp,str(secondLowestSellerName),secondLowestSellerCode,secondLowestSellerSp,secondLowestSellerInventory,lowestOfferPrice,secondLowestSellerOfferPrice,ourOfferPrice,len(vendorInfo))
416
    return snapdealDetails        
415
    return snapdealDetails        
417
        
416
        
418
 
417
 
419
def populateStuff(runType,time):
418
def populateStuff(runType,time):
420
    itemInfo = []
419
    itemInfo = []