Changeset 11869


Ignore:
Timestamp:
22 Oct 2014, 06:26:31 (10 years ago)
Author:
Henrik Bettermann
Message:

Add application_slip_notice field to ApplicantsContainer?.

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

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/CHANGES.txt

    r11863 r11869  
    441.3dev (unreleased)
    55===================
     6
     7* Add application_slip_notice field to ApplicantsContainer.
    68
    79* Remove 'Size' column from logfiles table.
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/interfaces.py

    r11738 r11869  
    273273        )
    274274
     275    application_slip_notice = schema.Text(
     276        title = _(u'Human readable notice on application slip in HTML format'),
     277        required = False,
     278        )
     279
     280
    275281    hidden= schema.Bool(
    276282        title = _(u'Hide container'),
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/pdf.py

    r10650 r11869  
    4545    grok.implements(IPDF)
    4646    grok.name('application_slip')
    47     note = None
    4847
    4948    form_fields =  grok.AutoFields(IApplicant).omit(
     
    5453        'firstname', 'middlename', 'lastname')
    5554    two_columns_design_fields = []
     55
     56    @property
     57    def note(self):
     58        return getattr(self.context.__parent__, 'application_slip_notice', None)
    5659
    5760    @property
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_export.py

    r11737 r11869  
    7171        self.assertEqual(
    7272            result,
    73             'application_category,application_fee,code,description,'
     73            'application_category,application_fee,application_slip_notice,code,description,'
    7474            'enddate,hidden,mode,prefix,startdate,strict_deadline,title,year\r\n'
    7575
    76             'basic,0.0,dp2012,'
     76            'basic,0.0,,dp2012,'
    7777            '"Some Description\nwith linebreak\n<<de>>man spriht deutsh",'
    7878            '2012-01-31 23:00:00+00:00#,0,,app,2012-01-01 12:00:00+00:00#,1,'
Note: See TracChangeset for help on using the changeset viewer.