Ignore:
Timestamp:
30 Nov 2011, 23:13:26 (13 years ago)
Author:
Henrik Bettermann
Message:

Rebuild applicants package (1st part). Applicants now have an applicant_id and a password and can use the regular login page to enter the portal.

Add user_type attribute to SIRPPrincipal objects.

Add some permissions in students package.

Some tests are still missing and will be re-added soon.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/utils/helpers.py

    r7234 r7240  
    481481    return account
    482482
    483 def send_mail(fullname,username,portal,body,email_from,email_to,subject):
     483def send_mail(fullname,username,usertype,portal,body,email_from,email_to,subject):
    484484    """Send an email with data provided by forms.
    485485    """
     
    487487    text = """Fullname: %s
    488488User Id: %s
     489User Type: %s
    489490Portal: %s
    490491
    491492%s
    492493"""
    493     msg = MIMEText(text % (fullname,username,portal,body))
     494    msg = MIMEText(text % (fullname,username,usertype,portal,body))
    494495    msg['From'] = '%s <%s>' % (fullname,email_from)
    495496    msg['To'] = email_to
Note: See TracChangeset for help on using the changeset viewer.