1. 01 Apr, 2022 1 commit
  2. 31 Mar, 2022 3 commits
  3. 30 Mar, 2022 1 commit
  4. 28 Mar, 2022 2 commits
  5. 25 Mar, 2022 1 commit
  6. 24 Mar, 2022 2 commits
    • Julien Muchembled's avatar
      ERP55Form: drop a broken proxy field cache · 25ad9ece
      Julien Muchembled authored
      When rendering a proxy field, 3 different fields can come in play:
      1. the field to be rendered
      3. the template field (i.e. not a proxy field) that knows how to render
      2. possibly an intermediate proxy field that contains the value to render
      
      What's difficult when rendering a proxy field is to take the above 3 fields
      into account and this commit does it by creating a temporary field:
      1. 'field' variable in TALES
      2. the value
      3. the code
      
      Before this commit, 1 could be wrong.
      25ad9ece
    • Jérome Perrin's avatar
      *: stop using deprecated getWorkflowById · cc60f03a
      Jérome Perrin authored
      This was deprectated because we don't have get*ById for other modules
      and tools, we just use OFS API. This should also be slightly faster
      because one less method call (and one less call to warning)
      cc60f03a
  7. 23 Mar, 2022 5 commits
  8. 22 Mar, 2022 4 commits
  9. 21 Mar, 2022 5 commits
    • Arnaud Fontaine's avatar
      WIP: Products.DCWorkflow removal. · e78ac944
      Arnaud Fontaine authored
      e78ac944
    • Arnaud Fontaine's avatar
    • Arnaud Fontaine's avatar
      zope4py3: Unauthorized() was always raised preventing access to ZMI. · b61103a5
      Arnaud Fontaine authored
      Error `Using import with a level specification isn't supported by AccessControl: AccessControl`:
          eggs/Zope-4.5.3+slapospatched002-py3.7.egg/Products/PageTemplates/Expressions.py(188)_eval()
        -> ob = self._subexprs[-1](econtext)
          eggs/zope.tales-5.1-py3.7.egg/zope/tales/expressions.py(153)_eval()
        -> ob = self._traverser(ob, element, econtext)
          eggs/Zope-4.5.3+slapospatched002-py3.7.egg/Products/PageTemplates/Expressions.py(84)boboAwareZopeTraverse()
        -> request=request)
          eggs/zope.traversing-4.4.1-py3.7.egg/zope/traversing/adapters.py(156)traversePathElement()
        -> return traversable.traverse(nm, further_path)
          eggs/zope.traversing-4.4.1-py3.7.egg/zope/traversing/adapters.py(58)traverse()
        -> return subject[name]
          eggs/Zope-4.5.3+slapospatched002-py3.7.egg/Products/PageTemplates/ZRPythonExpr.py(56)__getitem__()
        -> mod = safe_builtins['__import__'](module)
          parts/erp5/product/ERP5Type/patches/Restricted.py(451)guarded_import()
        -> return orig_guarded_import(mname, globals, locals, fromlist, level)
          eggs/AccessControl-4.2-py3.7-linux-x86_64.egg/AccessControl/ZopeGuards.py(410)guarded_import()
        -> "supported by AccessControl: %s" % mname)
      b61103a5
    • Romain Courteaud's avatar
      erp5_maileva_connector: do not manage permission · 0da9294b
      Romain Courteaud authored
      Permissions are managed by the document_publication_worflow
      0da9294b
    • Xiaowu Zhang's avatar
      1ae9b291
  10. 19 Mar, 2022 6 commits
  11. 18 Mar, 2022 3 commits
    • Jérome Perrin's avatar
    • Jérome Perrin's avatar
      web_renderjs_ui,officejs: don't use zope's favicon.ico · 03674992
      Jérome Perrin authored
      Most service worker precache scripts reference a favicon.ico, but this
      is using the default favicon.ico from Zope and even though it was included
      in all ERP5JS and OfficeJS web sites, this was mostly not used, only
      web_renderjs_ui web pages reference favicon.ico.
      
      There's a favicon.ico in erp5_xhtml_style skin folder, but the skin
      folder is not in ERP5JS skin selection.
      
      On Zope2, this caused ERP5JS and OfficeJS application use the default
      Zope favicon. On Zope4, the service worker can not fill its cache
      because of 404 errors, because since Zope commit 4f0770941 (Retired
      icons from the `Zope Management Interface` and various smaller cleanups
      of ZMI screens., 2011-07-02) there's no default favicon.ico anymore.
      
      To solve this, provide a favicon.ico in ERP5JS skin selection, by
      copying the one from erp5_xhtml_style. We also reference it explicitly in
      web site layout properties so that it remain in the cache.
      
      OfficeJS applications do not use favicon.ico explicitly. They use icons
      in their web application manifest, but this does not seem to be use as
      favicon unless the PWA is installed. This part is not addressed by this
      commit.
      03674992
    • Arnaud Fontaine's avatar
      WIP · 714b1bf4
      Arnaud Fontaine authored
      714b1bf4
  12. 16 Mar, 2022 1 commit
  13. 14 Mar, 2022 5 commits
  14. 11 Mar, 2022 1 commit