Ignore:
Timestamp:
23 Sep 2010, 09:37:27 (14 years ago)
Author:
uli
Message:
  • Fix line-length
  • Add a TODO comment.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/pages.py

    r5498 r5524  
    341341            self.flash('Error: All fields must be filled!')
    342342            return       
    343         if not re.match("^[a-zA-Z0-9._%-]+@[a-zA-Z0-9._%-]+.[a-zA-Z]{2,6}$", email):
     343        if not re.match("^[a-zA-Z0-9._%-]+@[a-zA-Z0-9._%-]+.[a-zA-Z]{2,6}$",
     344                        email):
    344345            self.flash('Error: %s is not a valid email address!' % email)
    345346            return
     
    357358        msg['Subject'] = 'WAeUP Contact'
    358359        #server = smtplib.SMTP('smtp_server')
    359         #server.login('user_name','secret_password')
     360        # Also connection details (username, passwords, host, port,
     361        # etc.) should be settable somewhere.
     362        # server.login('user_name','secret_password')
    360363        server = smtplib.SMTP('localhost')
    361364        server.sendmail(email,'contact@waeup.org',msg.as_string())
Note: See TracChangeset for help on using the changeset viewer.