Subversion Repositories SmartDukaan

Rev

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

Rev 15279 Rev 15280
Line 981... Line 981...
981
        return obj
981
        return obj
982
    
982
    
983
def getRetailerObj(retailer, otherContacts=[]):
983
def getRetailerObj(retailer, otherContacts=[]):
984
    obj = Mock()
984
    obj = Mock()
985
    obj.title = retailer.title
985
    obj.title = retailer.title
-
 
986
    obj.id = retailer.id
986
    if retailer.contact1 is not None and retailer.contact1 not in otherContacts:
987
    if retailer.contact1 is not None and retailer.contact1 not in otherContacts:
987
        otherContacts.append(retailer.contact1)
988
        otherContacts.append(retailer.contact1)
988
    if retailer.contact2 is not None and retailer.contact2 not in otherContacts:
989
    if retailer.contact2 is not None and retailer.contact2 not in otherContacts:
989
        otherContacts.append(retailer.contact2)
990
        otherContacts.append(retailer.contact2)
990
    obj.address = retailer.address_new if retailer.address_new is not None else retailer.address
991
    obj.address = retailer.address_new if retailer.address_new is not None else retailer.address