Ignore:
Timestamp:
19 Nov 2014, 07:36:31 (10 years ago)
Author:
Henrik Bettermann
Message:

We need the file viewlet baseclasses for customer documents too.

Location:
main/waeup.ikoba/trunk/src/waeup/ikoba/customers
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ikoba/trunk/src/waeup/ikoba/customers/files.py

    r11985 r11987  
    3838grok.context(IIkobaObject)  # Make IIkobaObject the default context
    3939grok.templatedir('browser_templates')
     40
     41ALLOWED_FILE_EXTENSIONS = ('jpg', 'png', 'pdf', 'tif', 'fpm')
    4042
    4143
     
    109111    """
    110112    grok.baseclass()
    111     grok.context(ICustomer)
    112113    grok.viewletmanager(FileManager)
    113     grok.view(CustomerBaseDisplayFormPage)
    114114    template = default_filedisplay_template
    115115    grok.order(1)
    116     grok.require('waeup.viewCustomer')
    117116    label = _(u'File')
    118117    title = _(u'Scan')
     
    133132    """
    134133    grok.baseclass()
    135     grok.context(ICustomer)
    136134    grok.viewletmanager(FileManager)
    137     grok.view(CustomerBaseManageFormPage)
    138135    template = default_fileupload_template
    139     grok.require('waeup.uploadCustomerFile')
    140136    tab_redirect = '#tab2-top'
    141137    mus = 1024 * 150
     
    190186    grok.order(1)
    191187    grok.context(ICustomer)
     188    grok.view(CustomerBaseDisplayFormPage)
    192189    grok.require('waeup.viewCustomer')
    193190    grok.template('imagedisplay')
     
    201198    grok.order(1)
    202199    grok.context(ICustomer)
     200    grok.view(CustomerBaseManageFormPage)
    203201    grok.require('waeup.manageCustomer')
    204202    grok.template('imageupload')
  • main/waeup.ikoba/trunk/src/waeup/ikoba/customers/viewlets.py

    r11986 r11987  
    2424from waeup.ikoba.browser.viewlets import (
    2525    PrimaryNavTab, ManageActionButton, AddActionButton)
    26 from waeup.ikoba.browser.layout import (
    27     default_primary_nav_template, default_filedisplay_template,
    28     default_fileupload_template)
     26from waeup.ikoba.browser.layout import default_primary_nav_template
    2927from waeup.ikoba.customers.interfaces import (
    3028    ICustomer, ICustomersContainer)
Note: See TracChangeset for help on using the changeset viewer.