Ignore:
Timestamp:
14 Oct 2015, 10:07:06 (9 years ago)
Author:
Henrik Bettermann
Message:

Add current level on bed allocation slip.

Location:
main/waeup.uniben/trunk/src/waeup/uniben/students
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.uniben/trunk/src/waeup/uniben/students/browser.py

    r13309 r13317  
    504504    """
    505505
     506    omit_fields = ('password', 'suspended', 'suspended_comment',
     507        'phone', 'adm_code', 'email', 'date_of_birth')
    506508
    507509    def render(self):
  • main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_browser.py

    r13309 r13317  
    10101010        self.assertEqual(self.browser.headers['Status'], '200 Ok')
    10111011        self.assertEqual(self.browser.headers['Content-Type'], 'application/pdf')
     1012        path = os.path.join(samples_dir(), 'bed_allocation_slip.pdf')
     1013        open(path, 'wb').write(self.browser.contents)
     1014        print "Sample PDF bed_allocation_slip.pdf written to %s" % path
    10121015        # Students can't relocate themselves.
    10131016        self.assertFalse('Relocate' in self.browser.contents)
Note: See TracChangeset for help on using the changeset viewer.