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/documents
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • 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.