Subversion Repositories SmartDukaan

Rev

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

Rev 15322 Rev 15323
Line 998... Line 998...
998
    if retailer.contact1 is not None and retailer.contact1 not in otherContacts:
998
    if retailer.contact1 is not None and retailer.contact1 not in otherContacts:
999
        otherContacts.append(retailer.contact1)
999
        otherContacts.append(retailer.contact1)
1000
    if retailer.contact2 is not None and retailer.contact2 not in otherContacts:
1000
    if retailer.contact2 is not None and retailer.contact2 not in otherContacts:
1001
        otherContacts.append(retailer.contact2)
1001
        otherContacts.append(retailer.contact2)
1002
    obj.address = retailer.address_new if retailer.address_new is not None else retailer.address
1002
    obj.address = retailer.address_new if retailer.address_new is not None else retailer.address
1003
    obj.contact1 = None if len(otherContacts)==1 else otherContacts[0]
1003
    obj.contact1 = None if len(otherContacts)==0 else otherContacts[0]
1004
    obj.contact2 = None if len(otherContacts)==2 else otherContacts[1]
1004
    obj.contact2 = None if len(otherContacts)==1 else otherContacts[1]
1005
    obj.scheduled = (retailer.call_priority is not None)
1005
    obj.scheduled = (retailer.call_priority is not None)
1006
    obj.status = retailer.status
1006
    obj.status = retailer.status
1007
    return obj
1007
    return obj
1008
 
1008
 
1009
def make_tiny(code):
1009
def make_tiny(code):