Subversion Repositories SmartDukaan

Rev

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

Rev 15323 Rev 15324
Line 986... Line 986...
986
            data[classkey] = obj.__class__.__name__
986
            data[classkey] = obj.__class__.__name__
987
        return data
987
        return data
988
    else:
988
    else:
989
        return obj
989
        return obj
990
    
990
    
991
def getRetailerObj(retailer, otherContacts=None):
991
def getRetailerObj(retailer, otherContacts1=None):
992
    print "before otherContacts1",otherContacts
992
    print "before otherContacts1",otherContacts1
993
    otherContacts = [] if otherContacts is None else otherContacts
993
    otherContacts = [] if otherContacts1 is None else otherContacts1
994
    print "afotherContacts1",otherContacts
994
    print "afotherContacts1",otherContacts
995
    obj = Mock()
995
    obj = Mock()
996
    obj.title = retailer.title
996
    obj.title = retailer.title
997
    obj.id = retailer.id
997
    obj.id = retailer.id
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: