Changeset 12557 for main/ikobacustom.pcn/trunk/src/ikobacustom
- Timestamp:
- 3 Feb 2015, 17:38:21 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/customers/fileviewlets.py
r12534 r12557 81 81 download_filename = u'birth_certificate.pdf' 82 82 83 class CertificatesDisplay(FileDisplay): 84 """Certificates display viewlet. 85 """ 86 grok.order(2) 87 grok.context(ICustomer) 88 grok.view(CustomerBaseDisplayFormPage) 89 grok.require('waeup.viewCustomer') 90 label = _(u'Certificates/Credentials') 91 download_name = u'certificates.pdf' 92 download_filename = u'certificates.pdf' 93 94 95 class CertificatesManageUpload(FileUpload): 96 """Certificates upload viewlet for officers. 97 """ 98 grok.order(2) 99 grok.context(ICustomer) 100 grok.view(CustomerBaseManageFormPage) 101 grok.require('waeup.manageCustomer') 102 label = _(u'Certificates/Credentials (pdf only)') 103 mus = 1024 * 200 104 download_name = u'certificates.pdf' 105 download_filename = u'certificates.pdf' 106 tab_redirect = '#tab2' 107 108 109 class CertificatesEditUpload(CertificatesManageUpload): 110 """Certificates upload viewlet for customers. 111 """ 112 grok.view(CustomerFilesUploadPage) 113 grok.require('waeup.handleCustomer') 114 115 116 class Certificates(Image): 117 """Renders pdf. 118 """ 119 grok.name('certificates.pdf') 120 download_name = u'certificates.pdf' 121 grok.context(ICustomer) 122 grok.require('waeup.viewCustomer') 123 download_filename = u'certificates.pdf' 124 83 125 # File viewlets for customer documents 84 126
Note: See TracChangeset for help on using the changeset viewer.