Ignore:
Timestamp:
12 Aug 2010, 16:57:26 (14 years ago)
Author:
Henrik Bettermann
Message:

Merge with trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/branches/henrik-contactforms/src/waeup/sirp/browser/pages.py

    r5426 r5428  
    142142        return
    143143
     144    @grok.action('Update plugins', validator=NullValidator)
     145    def updatePlugins(self, **data):
     146        self.context.updatePlugins()
     147        self.flash('Plugins were updated. See log file for details.')
     148        self.redirect(self.url(self.context))
     149        return
     150
    144151class AdministrationPage(WAeUPPage):
    145152    """ The administration overview page.
     
    340347        msg = MIMEText(text % (fullname,regno,descr))
    341348        msg['From'] = '%s <%s>' % (fullname,email)
    342         msg['To'] = 'henrik@waeup.org'
     349       
     350        # These parameters should be part of the portal configuration.
     351        msg['To'] = 'contact@waeup.org'
    343352        msg['Subject'] = 'WAeUP Contact'
    344         server = smtplib.SMTP('smtp.scientific-african.org')
    345         server.login('henrik@scientific-african.org','kwamekofi')
    346         server.sendmail(email,'henrik@waeup.org',msg.as_string())
     353        #server = smtplib.SMTP('smtp_server')
     354        #server.login('user_name','secret_password')
     355        server = smtplib.SMTP('localhost')
     356        server.sendmail(email,'contact@waeup.org',msg.as_string())
     357       
    347358        server.quit()
    348359        self.flash('Your message has been sent.')
Note: See TracChangeset for help on using the changeset viewer.