Subversion Repositories SmartDukaan

Rev

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

Rev 15308 Rev 15309
Line 979... Line 979...
979
            data[classkey] = obj.__class__.__name__
979
            data[classkey] = obj.__class__.__name__
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=None):
985
    print "before otherContacts1",otherContacts1
985
    print "before otherContacts1",otherContacts1
986
    otherContacts1 = [] if otherContacts1 is None else otherContacts1
986
    otherContacts1 = [] if otherContacts1 is None else otherContacts1
987
    print "after otherContacts1",otherContacts1
987
    print "afotherContacts1",otherContacts1
988
    obj = Mock()
988
    obj = Mock()
989
    obj.title = retailer.title
989
    obj.title = retailer.title
990
    obj.id = retailer.id
990
    obj.id = retailer.id
991
    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:
992
        otherContacts1.append(retailer.contact1)
992
        otherContacts1.append(retailer.contact1)