Subversion Repositories SmartDukaan

Rev

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

Rev 15324 Rev 15325
Line 999... Line 999...
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)==0 else otherContacts[0]
1003
    obj.contact1 = None if len(otherContacts)==0 else otherContacts[0]
-
 
1004
    if obj.contact1 is not None:
1004
    obj.contact2 = None if len(otherContacts)==1 else otherContacts[1]
1005
        obj.contact2 = None if len(otherContacts)==1 else otherContacts[1]
1005
    obj.scheduled = (retailer.call_priority is not None)
1006
    obj.scheduled = (retailer.call_priority is not None)
1006
    obj.status = retailer.status
1007
    obj.status = retailer.status
1007
    return obj
1008
    return obj
1008
 
1009
 
1009
def make_tiny(code):
1010
def make_tiny(code):