Subversion Repositories SmartDukaan

Rev

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

Rev 15307 Rev 15308
Line 980... Line 980...
980
        return data
980
        return data
981
    else:
981
    else:
982
        return obj
982
        return obj
983
    
983
    
984
def getRetailerObj(retailer, otherContacts1=[]):
984
def getRetailerObj(retailer, otherContacts1=[]):
-
 
985
    print "before otherContacts1",otherContacts1
985
    otherContacts1 = [] if otherContacts1 is None else otherContacts1
986
    otherContacts1 = [] if otherContacts1 is None else otherContacts1
986
    print "otherContacts1",otherContacts1
987
    print "after otherContacts1",otherContacts1
987
    obj = Mock()
988
    obj = Mock()
988
    obj.title = retailer.title
989
    obj.title = retailer.title
989
    obj.id = retailer.id
990
    obj.id = retailer.id
990
    if retailer.contact1 is not None and retailer.contact1 not in otherContacts1:
991
    if retailer.contact1 is not None and retailer.contact1 not in otherContacts1:
991
        otherContacts1.append(retailer.contact1)
992
        otherContacts1.append(retailer.contact1)