Changeset 12360


Ignore:
Timestamp:
1 Jan 2015, 21:55:26 (10 years ago)
Author:
Henrik Bettermann
Message:

We do not need html_dict in export files.

Location:
main/waeup.ikoba/trunk/src/waeup/ikoba/documents
Files:
3 edited

Legend:

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

    r12246 r12360  
    175175    def form_fields(self):
    176176        return grok.AutoFields(self.context.form_fields_interface).omit(
    177             'html_dict', 'html_multilingual')
     177            'html_multilingual')
    178178
    179179    @property
  • main/waeup.ikoba/trunk/src/waeup/ikoba/documents/export.py

    r12287 r12360  
    4444                  'formatted_transition_date',
    4545                  'translated_class_name',
     46                  'html_dict',
    4647                  'connected_files',   # Could be used to export file URLs
    4748                  ]
  • main/waeup.ikoba/trunk/src/waeup/ikoba/documents/tests/test_export.py

    r12288 r12360  
    114114        result = open(self.outfile, 'rb').read()
    115115        self.assertMatches(
    116             'class_name,description,document_id,history,html_dict,'
     116            'class_name,description,document_id,history,'
    117117            'html_multilingual,state,title,users_with_local_roles\r\n'
    118118            'HTMLDocument,,DOC2,'
    119119            '[u\'2014-12-21 16:50:28 UTC - Document created by system\'],'
    120             '{},,created,,"[{\'user_name\': u\'john\', \'local_role\': u\'johnsrole\'}]"',
     120            ',created,,"[{\'user_name\': u\'john\', \'local_role\': u\'johnsrole\'}]"',
    121121            result
    122122            )
     
    129129        result = open(self.outfile, 'rb').read()
    130130        self.assertMatches(
    131             'class_name,description,document_id,history,html_dict,'
     131            'class_name,description,document_id,history,'
    132132            'html_multilingual,state,title,users_with_local_roles\r\n'
    133133            'HTMLDocument,,DOC2,'
    134134            '[u\'2014-12-21 16:50:28 UTC - Document created by system\'],'
    135             '{},,created,,"[{\'user_name\': u\'john\', \'local_role\': u\'johnsrole\'}]"',
     135            ',created,,"[{\'user_name\': u\'john\', \'local_role\': u\'johnsrole\'}]"',
    136136            result
    137137            )
Note: See TracChangeset for help on using the changeset viewer.