• Jérome Perrin's avatar
    ERP5OOo: don't fail exporting documents with control character · e4e12259
    Jérome Perrin authored
    if for some reason an ERP5 document has some control characters in title of
    description and is exported in ODS/ODT, the export will fail with an etree
    error like this:
    
        Exception:
          Module Products.CMFActivity.ActivityTool, line 356, in __call__
              result = method(*self.args, **self.kw)
          Module Products.ERP5Type.patches.PythonScript, line 179, in __call__
              return self._orig_bindAndExec(args, kw, None)
          Module Shared.DC.Scripts.Bindings, line 359, in _bindAndExec
              return self._exec(bound_data, args, kw)
          Module Products.PythonScripts.PythonScript, line 344, in _exec
              result = f(*args, **kw)
          Module script, line 15, in Base_renderSimpleView
          - <PythonScript at /erp5/Base_renderSimpleView used for /erp5/sale_packing_list_module>
          - Line 15
              report_data = getattr(context, deferred_style_dialog_method)(**params)
          Module AccessControl.ZopeGuards, line 369, in guard...
    e4e12259
testOOoStyle.py 22 KB