Ignore:
Timestamp:
24 Feb 2013, 08:29:24 (12 years ago)
Author:
Henrik Bettermann
Message:

FCEOkene wants to hide the bed coordinates if maintenance fee is not yet paid. Thus we need additional property attributes which return the p_item (payment tickets) and the bed_coordinates attributes (bed tickets) by default and can be easily customized to hide this information in certain cases. bed_coordinates and p_item must be omitted on forms. The new display_ attributes are displayed instead.

All packages must now be adjusted.

The 'cost-benefit ratio' of these kinds of customizations is quite bad and we should think about declining such customization requests. However, I started customization and these are the changed made in the base package.

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

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py

    r9900 r9984  
    651651    grok.name('index')
    652652    grok.require('waeup.viewApplication')
    653     form_fields = grok.AutoFields(IApplicantOnlinePayment)
     653    form_fields = grok.AutoFields(IApplicantOnlinePayment).omit('p_item')
    654654    form_fields[
    655655        'creation_date'].custom_widget = FriendlyDatetimeDisplayWidget('le')
     
    696696    grok.name('payment_slip.pdf')
    697697    grok.require('waeup.viewApplication')
    698     form_fields = grok.AutoFields(IApplicantOnlinePayment)
     698    form_fields = grok.AutoFields(IApplicantOnlinePayment).omit('p_item')
    699699    form_fields['creation_date'].custom_widget = FriendlyDatetimeDisplayWidget('le')
    700700    form_fields['payment_date'].custom_widget = FriendlyDatetimeDisplayWidget('le')
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser_templates/applicantdisplaypage.pt

    r9075 r9984  
    5959      <td tal:content="python: layout.formatDatetime(value.payment_date)">PAYMENT DATE</td>
    6060      <td tal:content ="value/category">CATEGORY</td>
    61       <td tal:content ="value/p_item">ITEM</td>
     61      <td tal:content ="value/display_item">ITEM</td>
    6262      <td tal:content ="value/state">STATE</td>
    6363    </tr>
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser_templates/applicanteditpage.pt

    r8983 r9984  
    109109        <td tal:content="python: layout.formatDatetime(cl.payment_date)">PAYMENT DATE</td>
    110110      <td tal:content ="cl/category">CATEGORY</td>
    111       <td tal:content ="cl/p_item">ITEM</td>
     111      <td tal:content ="cl/display_item">ITEM</td>
    112112      <td tal:content ="cl/state">STATE</td>
    113113      </tr>
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/payment.py

    r9733 r9984  
    7575        return self.doAfterApplicantPaymentApproval()
    7676
    77 ApplicantOnlinePayment = attrs_to_fields(ApplicantOnlinePayment)
     77ApplicantOnlinePayment = attrs_to_fields(
     78    ApplicantOnlinePayment, omit=['display_item'])
    7879
    7980class PaymentWebservice(grok.Adapter):
Note: See TracChangeset for help on using the changeset viewer.