Subversion Repositories SmartDukaan

Rev

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

Rev 12816 Rev 12817
Line 128... Line 128...
128
    response = br.open(url)
128
    response = br.open(url)
129
    #dataform = str(response.read()).strip("'<>() ").replace('\'', '\"')
129
    #dataform = str(response.read()).strip("'<>() ").replace('\'', '\"')
130
    struct = json.loads(response.read())
130
    struct = json.loads(response.read())
131
    sdObj = struct['rows'][0]
131
    sdObj = struct['rows'][0]
132
    print sdObj
132
    print sdObj
133
    if type(sdObj['catalogLive']) is None or (sdObj['catalogLive']=='false'):
133
    if type(sdObj['catalogLive']) is None or not (sdObj['catalogLive']):
134
        raise
134
        raise
135
    if sdObj['woodenPackaging']=='false':
135
    if not sdObj['woodenPackaging']:
136
        sdObj['woodenPackagingCost'] = 0.0 
136
        sdObj['woodenPackagingCost'] = 0.0 
137
    snapdealInfo = __SnapdealInfo(None,None,None,None,None,None,sdObj['sellingPrice'],sdObj['netSellerPayable'],sdObj['fixedMarginAmount'],sdObj['fixedMarginPercent'],sdObj['collectionCharges'],sdObj['logisticCost'],sdObj['deadWeight'],supc,None, \
137
    snapdealInfo = __SnapdealInfo(None,None,None,None,None,None,sdObj['sellingPrice'],sdObj['netSellerPayable'],sdObj['fixedMarginAmount'],sdObj['fixedMarginPercent'],sdObj['collectionCharges'],sdObj['logisticCost'],sdObj['deadWeight'],supc,None, \
138
                    None, None, None, None, None, None, None,sdObj['woodenPackagingCost'])
138
                    None, None, None, None, None, None, None,sdObj['woodenPackagingCost'])
139
    return snapdealInfo
139
    return snapdealInfo
140
 
140