Subversion Repositories SmartDukaan

Rev

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

Rev 12161 Rev 12816
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 not (sdObj['catalogLive']):
133
    if type(sdObj['catalogLive']) is None or (sdObj['catalogLive']=='false'):
134
        raise
134
        raise
-
 
135
    if sdObj['woodenPackaging']=='false':
-
 
136
        sdObj['woodenPackagingCost'] = 0.0 
135
    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, \
136
                    None, None, None, None, None, None, None,sdObj['woodenPackagingCost'])
138
                    None, None, None, None, None, None, None,sdObj['woodenPackagingCost'])
137
    return snapdealInfo
139
    return snapdealInfo
138
 
140
 
139
def filterData(fetchedItems):
141
def filterData(fetchedItems):