Changeset 11001 for main/waeup.kofa
- Timestamp:
- 29 Jan 2014, 13:35:16 (11 years ago)
- Location:
- main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/browser/browser.txt
r11000 r11001 355 355 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"... 356 356 ...<h1 class="kofa-content-label">Academic Section</h1> 357 ...<td> <a href=" TF"> <span>TF</span></a></td>357 ...<td> <a href="http://localhost/myuniversity/faculties/TF"> <span>TF</span></a></td> 358 358 ...<td>Faculty of My renamed faculty (TF)</td> 359 359 ... … … 481 481 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"... 482 482 ...<h1 class="kofa-content-label">Departments</h1> 483 ...<td> <a href=" TD"> <span>TD</span></a></td>483 ...<td> <a href="http://localhost/myuniversity/faculties/TF/TD"> <span>TD</span></a></td> 484 484 ...<td>Department of TestDept (TD)</td> 485 485 ... … … 514 514 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 515 515 ...<h1 class="kofa-content-label">Departments</h1> 516 ...<td> <a href=" TD"> <span>TD</span></a></td>516 ...<td> <a href="http://localhost/myuniversity/faculties/TF/TD"> <span>TD</span></a></td> 517 517 ...<td>Department of My renamed dept (TD)</td> 518 518 ... -
main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/browser/pages.py
r10995 r11001 316 316 now < temp_password_dict.get('timestamp', now) + delta: 317 317 self.flash( 318 _('Your account has been temporarily deactivated.')) 318 _('Your account has been temporarily deactivated.'), 319 type='warning') 319 320 return 320 321 # Now we know that the student is suspended. 321 322 comment = self._comment(student) 322 323 if comment: 323 self.flash(comment )324 self.flash(comment, type='warning') 324 325 else: 325 self.flash(_('Your account has been deactivated.')) 326 self.flash(_('Your account has been deactivated.'), 327 type='warning') 326 328 return 327 329 self.flash(_('You entered invalid credentials.')) -
main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/students/tests/test_browser.py
r10704 r11001 2198 2198 self.browser.getControl("Login").click() 2199 2199 self.assertMatches( 2200 '...<div class="alert -messagewarning">'2200 '...<div class="alert alert-warning">' 2201 2201 'Your account has been deactivated.</div>...', self.browser.contents) 2202 2202 # If suspended_comment is set this message will be flashed instead … … 2206 2206 self.browser.getControl("Login").click() 2207 2207 self.assertMatches( 2208 '...<div class="alert -messagewarning">Aetsch baetsch!</div>...',2208 '...<div class="alert alert-warning">Aetsch baetsch!</div>...', 2209 2209 self.browser.contents) 2210 2210 self.student.suspended = False
Note: See TracChangeset for help on using the changeset viewer.