Ignore:
Timestamp:
14 Dec 2014, 09:45:35 (10 years ago)
Author:
Henrik Bettermann
Message:

Add file viewlets to documents.

Location:
main/waeup.ikoba/trunk/src/waeup/ikoba
Files:
1 added
5 edited

Legend:

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

    r12221 r12225  
    642642class CustomerFilesUploadPage(IkobaPage):
    643643    """ View to upload files by customer
     644
     645    We use this page only to upload a passport picture (portrait).
    644646    """
    645647    grok.context(ICustomer)
     
    647649    grok.require('waeup.uploadCustomerFile')
    648650    grok.template('filesuploadpage')
    649     label = _('Upload files')
     651    label = _('Change portrait')
    650652    pnav = 4
    651653
  • main/waeup.ikoba/trunk/src/waeup/ikoba/documents/browser.py

    r12222 r12225  
    179179    tabtwoactions2 = [_('Add local role')]
    180180
     181    deletion_warning = _('Are you sure?')
     182
    181183    @property
    182184    def form_fields(self):
  • main/waeup.ikoba/trunk/src/waeup/ikoba/documents/browser_templates/documentmanagepage.pt

    r12206 r12225  
    77    </li>
    88    <li>
    9       <a href="#tab2" data-toggle="tab" i18n:translate="">Local Roles</a>
     9      <a href="#tab2" data-toggle="tab" i18n:translate="">Files</a>
     10    </li>
     11    <li>
     12      <a href="#tab3" data-toggle="tab" i18n:translate="">Local Roles</a>
    1013    </li>
    1114  </ul>
     
    2730    </div>
    2831    <div id="tab2" class="tab-pane">
     32      <br />
     33      <table class="form-table">
     34        <tbody>
     35          <tal:files content="structure provider:files" />
     36        </tbody>
     37      </table>
     38    </div>
     39    <div id="tab3" class="tab-pane">
    2940      <br />
    3041      <table class="ikoba-data-table dataTableManage">
  • main/waeup.ikoba/trunk/src/waeup/ikoba/documents/document.py

    r12222 r12225  
    127127            return
    128128
     129    def writeLogMessage(self, view, message):
     130        ob_class = view.__implemented__.__name__.replace('waeup.ikoba.','')
     131        self.__parent__.__parent__.logger.info(
     132            '%s - %s - %s' % (ob_class, self.__name__, message))
     133        return
     134
    129135
    130136class PDFDocument(PublicDocumentBase):
  • main/waeup.ikoba/trunk/src/waeup/ikoba/documents/interfaces.py

    r12214 r12225  
    6565    """
    6666
     67    def writeLogMessage(view, message):
     68        """Write a view specific log message into main.log.
     69
     70        """
     71
     72
    6773
    6874class IPDFDocument(IPublicDocument):
Note: See TracChangeset for help on using the changeset viewer.