Changeset 15251 for main/waeup.uniben/trunk
- Timestamp:
- 23 Nov 2018, 11:18:45 (6 years ago)
- Location:
- main/waeup.uniben/trunk/src/waeup/uniben
- Files:
-
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/hostels/tests.py
r15249 r15251 37 37 38 38 def test_release_expired_allocations(self): 39 config = grok.getSite()['configuration'] 39 self.app['hostels'].allocation_expiration = 7 40 config = self.app['configuration'] 40 41 config.maintmode_enabled_by = u'any_user' 41 42 self.browser.addHeader('Authorization', 'Basic mgr:mgrpw') … … 69 70 logcontent = open(self.logfile).read() 70 71 self.assertTrue( 71 'hostels.browser. CustomReleaseExpiredAllocationsPage - hostels - '72 'hostels.browser.ReleaseExpiredAllocationsPage - hostels - ' 72 73 'released: hall_block_room_bed (B1000000)' 73 74 in logcontent) -
main/waeup.uniben/trunk/src/waeup/uniben/students/browser.py
r15249 r15251 598 598 'phone', 'adm_code', 'email', 'date_of_birth', 'flash_notice') 599 599 600 def render(self):601 studentview = StudentBasePDFFormPage(self.context.student,602 self.request, self.omit_fields)603 students_utils = getUtility(IStudentsUtils)604 605 note = """606 <br /><br /><br /><br /><br /><font size="14">607 Please endeavour to pay your hostel maintenance charge within <br /><br />608 7 days of being allocated a space or else you are deemed to have <br /><br />609 voluntarily forfeited it and it goes back into circulation to be <br /><br />610 available for booking afresh!</font>611 """612 613 return students_utils.renderPDF(614 self, 'bed_allocation_slip.pdf',615 self.context.student, studentview,616 omit_fields=self.omit_fields,617 note=note)618 619 600 class CustomPaymentsManageFormPage(PaymentsManageFormPage): 620 601 """ Page to manage the student payments. This manage form page is for -
main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_browser.py
r15106 r15251 973 973 974 974 def test_student_accommodation(self): 975 self.app['hostels'].allocation_expiration = 7 975 976 bed = Bed() 976 977 bed.bed_id = u'hall-1_A_101_C'
Note: See TracChangeset for help on using the changeset viewer.