Subversion Repositories SmartDukaan

Rev

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

Rev 21090 Rev 21092
Line 11480... Line 11480...
11480
            return []
11480
            return []
11481
    return query.all()
11481
    return query.all()
11482
 
11482
 
11483
def get_pmsa_user(id, associateEmail):
11483
def get_pmsa_user(id, associateEmail):
11484
    associate = PMSA.get_by(emailId = associateEmail)
11484
    associate = PMSA.get_by(emailId = associateEmail)
-
 
11485
    if id is None:
-
 
11486
        return associate
11485
    pmsa = PMSA.get_by(id=id)
11487
    pmsa = PMSA.get_by(id=id)
11486
    if pmsa.l1_id != associate.id:
11488
    if pmsa.l1_id != associate.id:
11487
        return None 
11489
        return None 
11488
    l2_user_email = ""
11490
    l2_user_email = ""
11489
    if pmsa.l2_id:
11491
    if pmsa.l2_id: