Index: main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py
===================================================================
--- main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py	(revision 15606)
+++ main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py	(revision 15609)
@@ -3783,9 +3783,10 @@
             'adm_code,clr_code,date_of_birth,email,employer,'
             'firstname,flash_notice,lastname,matric_number,middlename,nationality,'
-            'officer_comment,perm_address,personal_updated,phone,reg_number,'
+            'officer_comment,parents_email,perm_address,'
+            'personal_updated,phone,reg_number,'
             'sex,student_id,suspended,suspended_comment,'
             'password,state,history,certcode,is_postgrad,'
             'current_level,current_session\r\n'
-            ',,1981-02-04#,aa@aa.ng,,Anna,,Tester,234,,,,,,'
+            ',,1981-02-04#,aa@aa.ng,,Anna,,Tester,234,,,,,,,'
             '1234#,123,m,K1000000,0,,{SSHA}' in self.browser.contents)
         self.browser.open('http://localhost/app/datacenter/@@export')
@@ -3911,9 +3912,10 @@
             'adm_code,clr_code,date_of_birth,email,employer,'
             'firstname,flash_notice,lastname,matric_number,middlename,nationality,'
-            'officer_comment,perm_address,personal_updated,phone,reg_number,'
+            'officer_comment,parents_email,perm_address,'
+            'personal_updated,phone,reg_number,'
             'sex,student_id,suspended,suspended_comment,'
             'password,state,history,certcode,is_postgrad,'
             'current_level,current_session\r\n'
-            ',,1981-02-04#,aa@aa.ng,,Anna,,Tester,234,,,,,,'
+            ',,1981-02-04#,aa@aa.ng,,Anna,,Tester,234,,,,,,,'
             '1234#,123,m,K1000000,0,,{SSHA}' in self.browser.contents)
         self.assertEqual(len(self.app['datacenter'].running_exports), 1)
@@ -4675,6 +4677,22 @@
     # Tests for UI actions when acting as parents.
 
+    def test_request_ppw(self):
+        self.app['students'][self.student_id].parents_email = 'par@yy.zz'
+        self.browser.open('http://localhost/app/requestppw')
+        self.browser.getControl(name="form.lastname").value = 'tESTer'
+        self.browser.getControl(name="form.number").value = '123'
+        self.browser.getControl(name="form.email").value = 'par@yy.zz'
+        self.browser.getControl("Send temporary login credentials").click()
+        self.assertTrue('Your password request was successful.'
+            in self.browser.contents)
+        logfile = os.path.join(
+            self.app['datacenter'].storage, 'logs', 'main.log')
+        logcontent = open(logfile).read()
+        self.assertTrue('zope.anybody - students.browser.RequestParentsPasswordPage - '
+                        '123 (K1000000) - par@yy.zz' in logcontent)
+        return
+
     def test_login_as_parents(self):
-        # Sstudent login still works after all the changes made
+        # Student login still works after all the changes made
         self.browser.open(self.login_path)
         self.browser.getControl(name="form.login").value = self.student_id
Index: main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_export.py
===================================================================
--- main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_export.py	(revision 15606)
+++ main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_export.py	(revision 15609)
@@ -126,5 +126,5 @@
     std_csv_entry = (
         'my adm code,my clr code,1981-02-04#,anna@sample.com,,'
-        'Anna,,Tester,234,M.,NG,,"Studentroad 21\nLagos 123456\n",,'
+        'Anna,,Tester,234,M.,NG,,,"Studentroad 21\nLagos 123456\n",,'
         '+234-123-12345#,123,f,A111111,0,,,created'
         )
@@ -158,10 +158,11 @@
             'adm_code,clr_code,date_of_birth,email,'
             'employer,firstname,flash_notice,lastname,matric_number,middlename,'
-            'nationality,officer_comment,perm_address,personal_updated,'
+            'nationality,officer_comment,parents_email,'
+            'perm_address,personal_updated,'
             'phone,reg_number,sex,student_id,suspended,suspended_comment,'
             'password,state,history,'
             'certcode,is_postgrad,current_level,current_session\r\n'
             'my adm code,my clr code,'
-            '1981-02-04#,anna@sample.com,,Anna,,Tester,234,M.,NG,,'
+            '1981-02-04#,anna@sample.com,,Anna,,Tester,234,M.,NG,,,'
             '"Studentroad 21\nLagos 123456\n",,+234-123-12345#,123,f,'
             'A111111,0,,,created'
@@ -180,10 +181,11 @@
             'adm_code,clr_code,date_of_birth,email,'
             'employer,firstname,flash_notice,lastname,matric_number,middlename,'
-            'nationality,officer_comment,perm_address,personal_updated,'
+            'nationality,officer_comment,parents_email,'
+            'perm_address,personal_updated,'
             'phone,reg_number,sex,student_id,suspended,suspended_comment,'
             'password,state,history,certcode,'
             'is_postgrad,current_level,current_session\r\n'
             'my adm code,my clr code,1981-02-04#,anna@sample.com,,'
-            'Anna,,Tester,234,M.,NG,,"Studentroad 21\nLagos 123456\n"'
+            'Anna,,Tester,234,M.,NG,,,"Studentroad 21\nLagos 123456\n"'
             ',,+234-123-12345#,123,f,A111111,0,,,created'
             in result
@@ -200,10 +202,11 @@
             'adm_code,clr_code,date_of_birth,email,'
             'employer,firstname,flash_notice,lastname,matric_number,middlename,'
-            'nationality,officer_comment,perm_address,personal_updated,'
+            'nationality,officer_comment,parents_email,'
+            'perm_address,personal_updated,'
             'phone,reg_number,sex,student_id,suspended,suspended_comment,'
             'password,state,history,certcode,'
             'is_postgrad,current_level,current_session\r\n'
             'my adm code,my clr code,1981-02-04#,anna@sample.com,,'
-            'Anna,,Tester,234,M.,NG,,"Studentroad 21\nLagos 123456\n"'
+            'Anna,,Tester,234,M.,NG,,,"Studentroad 21\nLagos 123456\n"'
             ',,+234-123-12345#,123,f,A111111,0,,,created'
             in result
