Ignore:
Timestamp:
3 Jan 2015, 15:28:53 (10 years ago)
Author:
Henrik Bettermann
Message:

Uups, we agreed to attach only one file to each document.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/ikobacustom.skeleton/trunk/src/ikobacustom/skeleton/customers/fileviewlets.py

    r12372 r12382  
    7979    grok.view(PDFDocumentSlipPage)
    8080
    81 
    82 class PDFScanManageUpload(FileUpload):
    83     """Scan upload viewlet for officers.
    84     """
    85     grok.view(DocumentManageFormPage)
    86     grok.context(SkeletonCustomerDocument)
    87     grok.require('waeup.manageCustomer')
    88     label = _(u'PDF File')
    89     title = _(u'PDF File')
    90     mus = 1024 * 200
    91     download_name = u'sample.pdf'
    92     tab_redirect = '#tab2'
    93 
    94 
    95 class PDFScanEditUpload(PDFScanManageUpload):
    96     """Scan upload viewlet for customer.
    97     """
    98     grok.view(DocumentEditFormPage)
    99     grok.require('waeup.handleCustomer')
    100 
    101 
    102 class PDFScanDisplay(FileDisplay):
    103     """Scan display viewlet.
    104     """
    105     grok.order(1)
    106     grok.context(SkeletonCustomerDocument)
    107     grok.require('waeup.viewCustomer')
    108     grok.view(DocumentDisplayFormPage)
    109     label = _(u'PDF Scan')
    110     title = _(u'PDF Scan')
    111     download_name = u'sample.pdf'
    112 
    113 
    114 class PDFScanImage(Image):
    115     """Scan document.
    116     """
    117     grok.name('sample.pdf')
    118     grok.context(SkeletonCustomerDocument)
    119     grok.require('waeup.viewCustomer')
    120     download_name = u'sample.pdf'
    121 
    122 class PDFScanSlip(PDFScanDisplay):
    123     grok.view(PDFDocumentSlipPage)
Note: See TracChangeset for help on using the changeset viewer.