Changeset 16135


Ignore:
Timestamp:
28 Jun 2020, 18:11:16 (4 years ago)
Author:
Henrik Bettermann
Message:

Customize isPictureEditable.

Location:
main/waeup.aaue/trunk/src/waeup/aaue/applicants
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/applicants/browser_templates/applicanteditpage.pt

    r15991 r16135  
    2222    <tbody>
    2323      <tal:widgets content="structure provider:widgets" />
    24       <tr tal:condition="python: context.__parent__.with_picture">
     24      <tr tal:condition="python: context.__parent__.picture_editable">
    2525        <td class="fieldname" i18n:translate="">
    2626          Passport Photo:
  • main/waeup.aaue/trunk/src/waeup/aaue/applicants/utils.py

    r15991 r16135  
    104104                (applicant.no_copies-1) * GATEWAY_AMT
    105105        return
     106
     107    def isPictureEditable(self, container):
     108        """False if applicants are not allowed to edit uploaded pictures.
     109        """
     110        return container.with_picture and \
     111            not container.prefix.startswith('utme') and \
     112            not container.prefix.startswith('ude')
Note: See TracChangeset for help on using the changeset viewer.