Subversion Repositories SmartDukaan

Rev

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

Rev 12818 Rev 12819
Line 130... Line 130...
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 not (sdObj['catalogLive']):
134
        raise
134
        raise
135
    woodenPackaging = 0.0
135
    woodenPackagingCost = 0.0
136
    if sdObj['woodenPackaging']:
136
    if sdObj['woodenPackaging']:
137
        woodenPackaging = sdObj['woodenPackagingCost'] 
137
        woodenPackagingCost = sdObj['woodenPackagingCost'] 
138
    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
    snapdealInfo = __SnapdealInfo(None,None,None,None,None,None,sdObj['sellingPrice'],sdObj['netSellerPayable'],sdObj['fixedMarginAmount'],sdObj['fixedMarginPercent'],sdObj['collectionCharges'],sdObj['logisticCost'],sdObj['deadWeight'],supc,None, \
139
                    None, None, None, None, None, None, None,woodenPackaging)
139
                    None, None, None, None, None, None, None,woodenPackagingCost)
140
    return snapdealInfo
140
    return snapdealInfo
141
 
141
 
142
def filterData(fetchedItems):
142
def filterData(fetchedItems):
143
    filterList = []
143
    filterList = []
144
    for data in fetchedItems:
144
    for data in fetchedItems: