Subversion Repositories SmartDukaan

Rev

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

Rev 12817 Rev 12818
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
    if not sdObj['woodenPackaging']:
136
    if sdObj['woodenPackaging']:
136
        sdObj['woodenPackagingCost'] = 0.0 
137
        woodenPackaging = sdObj['woodenPackagingCost'] 
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
    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'])
139
                    None, None, None, None, None, None, None,woodenPackaging)
139
    return snapdealInfo
140
    return snapdealInfo
140
 
141
 
141
def filterData(fetchedItems):
142
def filterData(fetchedItems):
142
    filterList = []
143
    filterList = []
143
    for data in fetchedItems:
144
    for data in fetchedItems: