Index: main/waeup.sirp/branches/workshop2010-playground/src/waeup/sirp/browser/browser.txt
===================================================================
--- main/waeup.sirp/trunk/src/waeup/sirp/browser/browser.txt	(revision 5503)
+++ main/waeup.sirp/branches/workshop2010-playground/src/waeup/sirp/browser/browser.txt	(revision 5555)
@@ -94,6 +94,8 @@
   ...
 
-Now we fill the form properly::
-
+Now we fill the form properly (this will send a real message to
+contact@waeup.org):
+
+  >>> browser.open('http://localhost/myuniversity/contactadmin')
   >>> browser.getControl(name='email').value = "xx@yy.zz"
   >>> browser.getControl(name='descr').value = "test message"
@@ -104,4 +106,6 @@
   ...
 
+If this test fails, chances are, that the local machine has no SMTP
+server installed.
 
 Faculties
Index: main/waeup.sirp/branches/workshop2010-playground/src/waeup/sirp/browser/pages.py
===================================================================
--- main/waeup.sirp/trunk/src/waeup/sirp/browser/pages.py	(revision 5503)
+++ main/waeup.sirp/branches/workshop2010-playground/src/waeup/sirp/browser/pages.py	(revision 5555)
@@ -116,5 +116,6 @@
     grok.name('index')
     grok.context(IUniversity)
-    title = u'Welcome to SIRP'
+    grok.template('universitypage')
+    title = u'Welcome to wonderful SIRP'
     pnav = 0
 
@@ -341,5 +342,6 @@
             self.flash('Error: All fields must be filled!')
             return        
-        if not re.match("^[a-zA-Z0-9._%-]+@[a-zA-Z0-9._%-]+.[a-zA-Z]{2,6}$", email):
+        if not re.match("^[a-zA-Z0-9._%-]+@[a-zA-Z0-9._%-]+.[a-zA-Z]{2,6}$",
+                        email):
             self.flash('Error: %s is not a valid email address!' % email)
             return
@@ -357,5 +359,7 @@
         msg['Subject'] = 'WAeUP Contact'
         #server = smtplib.SMTP('smtp_server')
-        #server.login('user_name','secret_password')
+        # Also connection details (username, passwords, host, port,
+        # etc.) should be settable somewhere.
+        # server.login('user_name','secret_password')
         server = smtplib.SMTP('localhost')
         server.sendmail(email,'contact@waeup.org',msg.as_string())
