Changeset 15251


Ignore:
Timestamp:
23 Nov 2018, 11:18:45 (6 years ago)
Author:
Henrik Bettermann
Message:

Adjust components to changes made in r15250.

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  
    3737
    3838    def test_release_expired_allocations(self):
    39         config = grok.getSite()['configuration']
     39        self.app['hostels'].allocation_expiration = 7
     40        config = self.app['configuration']
    4041        config.maintmode_enabled_by = u'any_user'
    4142        self.browser.addHeader('Authorization', 'Basic mgr:mgrpw')
     
    6970        logcontent = open(self.logfile).read()
    7071        self.assertTrue(
    71             'hostels.browser.CustomReleaseExpiredAllocationsPage - hostels - '
     72            'hostels.browser.ReleaseExpiredAllocationsPage - hostels - '
    7273            'released: hall_block_room_bed (B1000000)'
    7374            in logcontent)
  • main/waeup.uniben/trunk/src/waeup/uniben/students/browser.py

    r15249 r15251  
    598598        'phone', 'adm_code', 'email', 'date_of_birth', 'flash_notice')
    599599
    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 
    619600class CustomPaymentsManageFormPage(PaymentsManageFormPage):
    620601    """ 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  
    973973
    974974    def test_student_accommodation(self):
     975        self.app['hostels'].allocation_expiration = 7
    975976        bed = Bed()
    976977        bed.bed_id = u'hall-1_A_101_C'
Note: See TracChangeset for help on using the changeset viewer.