Ignore:
Timestamp:
13 Sep 2012, 20:34:35 (12 years ago)
Author:
Henrik Bettermann
Message:

Change button title.

Let students view their application slip.

Fix pagetemplate.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/students
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/browser_templates/basepage.pt

    r7811 r9178  
    1818          <tal:password replace="view/hasPassword" />
    1919      </td>
    20     <tr>
     20    </tr>
    2121    <tal:files content="structure provider:files" />
    2222  </tbody>
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py

    r9161 r9178  
    19541954        self.browser.getControl(name="form.identifier").value = '123'
    19551955        self.browser.getControl(name="form.email").value = 'aa@aa.ng'
    1956         self.browser.getControl("Get login credentials").click()
     1956        self.browser.getControl("Send login credentials").click()
    19571957        self.assertTrue('An email with' in self.browser.contents)
    19581958
  • main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py

    r9151 r9178  
    328328                    amount = getattr(certificate, 'school_fee_2', 0.0)
    329329        elif category == 'clearance':
    330             p_item = student['studycourse'].certificate.code
     330            try:
     331                p_item = student['studycourse'].certificate.code
     332            except (AttributeError, TypeError):
     333                return _('Study course data are incomplete.'), None
    331334            amount = academic_session.clearance_fee
    332335        elif category == 'bed_allocation':
  • main/waeup.kofa/trunk/src/waeup/kofa/students/viewlets.py

    r9145 r9178  
    626626        student_url = self.view.application_url() + (
    627627            '/students/%s' % self.request.principal.id)
    628         #app_slip = getUtility(IExtFileStore).getFileByContext(
    629         #    self.context.student, 'application_slip')
     628        app_slip = getUtility(IExtFileStore).getFileByContext(
     629            self.context.student, 'application_slip')
    630630        targets = []
    631         #if app_slip:
    632         #    targets = [{'url':student_url + '/application_slip', 'title':'Application Slip'},]
     631        if app_slip:
     632            targets = [{'url':student_url + '/application_slip', 'title':'Application Slip'},]
    633633        targets += [
    634634            {'url':student_url, 'title':'Base Data'},
Note: See TracChangeset for help on using the changeset viewer.