1. 08 Feb, 2020 1 commit
  2. 05 Apr, 2019 1 commit
    • Denis Laxalde's avatar
      Drop python2 support · 26744ad37953
      Denis Laxalde authored
      This mostly consists in removing the dependency on "six" and updating
      the code to use only Python3 idioms.
      
      Notice that we previously used TemporaryDirectory from
      cubicweb.devtools.testlib for compatibility with Python2. We now
      directly import it from tempfile.
      26744ad37953
  3. 29 Oct, 2018 2 commits
    • Philippe Pepiot's avatar
      Fix flake8 issues since release 3.6.0 · 2fcb53ee5178
      Philippe Pepiot authored
      Flake8 had a new release which raise new issues, namely:
      
      W504: line break after binary operator
      F841: local variable 'ex' is assigned to but never used
      W605: invalid escape sequence
      F821: undefined name 'buffer' (noqa seems the only way to avoid this false positive)
      
      Also pin flake8>=3.6 in our tests and make explicit that we use python3 to run
      flake8 tests.
      
      --HG--
      branch : 3.26
      2fcb53ee5178
    • Philippe Pepiot's avatar
      Fix flake8 issues since release 3.6.0 · c703dc95c82e
      Philippe Pepiot authored
      Flake8 had a new release which raise new issues, namely:
      
      W504: line break after binary operator
      F841: local variable 'ex' is assigned to but never used
      W605: invalid escape sequence
      F821: undefined name 'buffer' (noqa seems the only way to avoid this false positive)
      
      Also pin flake8>=3.6 in our tests and make explicit that we use python3 to run
      flake8 tests.
      c703dc95c82e
  4. 30 Sep, 2016 1 commit
    • Sylvain Thénault's avatar
      flake8 and all · 432f87a63057
      Sylvain Thénault authored
      * update some copyright
      * drop most __docformat__ declaration
      * fix some flake8 warnings / errors
      432f87a63057
  5. 16 Aug, 2016 1 commit
    • Denis Laxalde's avatar
      [web] Clear "pending_others" session key after all relations got processed · 8f264d98d6fd
      Denis Laxalde authored
      The RelationField appends data to "pending_others" key while processing its
      posted information, but this key may already have been removed by the edit
      controller. So remove the key from session data only when all "others"
      relations have been processed using a while loop.
      
      A test case would be nice, but I could not build one easily unfortunately.
      
      Closes #4354551.
      8f264d98d6fd
  6. 21 Jul, 2016 1 commit
  7. 18 Feb, 2016 1 commit
  8. 24 Nov, 2016 1 commit
  9. 16 Jan, 2016 1 commit
    • Denis Laxalde's avatar
      Reorganize source tree to have a "cubicweb" top-level package · 0b59724cb3f2
      Denis Laxalde authored
      Basically:
      
      mkdir cubicweb
      hg mv *.py -X setup.py cubicweb
      hg mv dataimport devtools entities etwist ext hooks i18n misc schemas server skeleton sobjects test web wsgi cubicweb
      
      Other changes:
      
      * adjust path to cubicweb-ctl in devtools tests
      * update setup.py to avoid importing __pkginfo__ (exec it instead),
        replace os.path.walk by os.walk and prepend `modname` here and there
      * update tox.ini to account for new test locations
      * update doc/conf.py so that it still finds __pkginfo__.py and CWDIR in
        doc/Makefile
      0b59724cb3f2
  10. 02 May, 2014 1 commit
    • Aurelien Campeas's avatar
      deprecate get/set_shared_data API · b7b71be569cf
      Aurelien Campeas authored
      Session or transaction data must be used instead.
      
      We must forward .transaction_data to web/request from
      which it was missing (this is indeed a _cw object API).
      
      Closes #3799036.
      b7b71be569cf
  11. 26 Feb, 2014 1 commit
    • Denis Laxalde's avatar
      Make EditController edit_entity method always return an eid · 048d6de92b63
      Denis Laxalde authored
      In cases the entity was to be created or copied, eid was None hence the method
      returned None despite the dosctring says the method should always return an
      eid. Now if the eid variable is None, it is assigned to the newly created
      entity eid.
      
      Closes #3593029.
      
      --HG--
      branch : stable
      048d6de92b63
  12. 11 Sep, 2013 1 commit
  13. 03 Feb, 2014 1 commit
  14. 26 Aug, 2013 1 commit
    • Aurelien Campeas's avatar
      remove 3.9 bw compat · 697a8181ba30
      Aurelien Campeas authored
      In cw 3.9, interfaces are deprecated and replaced with adapters,
      yielding a lot of bw compat in many places -- most if this patch is
      concerned with the interface bw compat
      
      - cwvreg: interface cleanup
      
      - doc/adapters.rst: interface cleanup
      
      - entities/adapters.py, wfobjs.py: interfaces bw compat
      
      - entity.py: interfaces bw compat, also get_value, delete,
        attr_metadata, has_perm, set_related_cache, clear_related_cache,
        clear_related_cache, related_rql
      
      - predicates.py: score_interfaces & implements
      
      - interfaces.py & mixins.py: 100% gone
      
      - view.py: implement_adapter_compat, unwrap_adapter_compat
      
      - calendar.py, editcontroller.py, ibreadcrumbs.py, navigation.py, xmlrss.py:
        interface bw compat
      
      - treeview.py: salvage one function from mixins.py
      
      
      Related to #2782004.
      697a8181ba30
  15. 26 Jul, 2013 1 commit
  16. 24 Jul, 2013 1 commit
    • Sylvain Thénault's avatar
      [editcontrollers] Ensure entities are created in an order satisfying schema... · 570208f74a84
      Sylvain Thénault authored
      [editcontrollers] Ensure entities are created in an order satisfying schema constraints. Closes #3031719
      
      changes below are also necessary to make the whole thing works:
      
      * stop considering InlinedFormFile as eidparam field since they don't
        hold any value
      
      * rework 'pendingfields' handling to have separate processing of inlined fields
        whose subject entity is created during the edition
      
      --HG--
      branch : stable
      570208f74a84
  17. 22 Jul, 2013 2 commits
  18. 25 Apr, 2013 1 commit
  19. 28 Mar, 2013 1 commit
  20. 12 Mar, 2013 1 commit
  21. 14 Feb, 2013 2 commits
  22. 17 Sep, 2012 1 commit
  23. 23 Jan, 2012 1 commit
    • Sylvain Thénault's avatar
      [vreg] move base registry implementation to logilab.common. Closes #1916014 · 2a3c1b787688
      Sylvain Thénault authored
      A new logilab.common.registry module has been created with content from
      
      * cw.vreg (the whole things that was in there)
      * cw.appobject (base selectors and all).
      
      In the process, we've done some renaming:
      
      * former selector functions are now known as "predicate", though you still
        use predicates to build an object'selector
      
      * hence `objectify_selector` decorator is now `objectify_predicate`
      
      * the top level registry is now `RegistryStore` (was `VRegistry`)
      
      Also there is no more need for the @lltrace decorator.
      
      On the CubicWeb side, the `selectors` module has been renamed to `predicates`.
      
      There should be full backward compat with proper deprecation warnings.
      2a3c1b787688
  24. 16 Dec, 2011 1 commit
  25. 02 Nov, 2011 1 commit
  26. 28 Oct, 2011 1 commit
  27. 21 Oct, 2011 1 commit
  28. 13 Oct, 2011 1 commit
  29. 29 Jun, 2011 1 commit
  30. 31 Mar, 2011 1 commit
  31. 21 Jan, 2011 1 commit
  32. 06 Oct, 2010 1 commit
  33. 01 Oct, 2010 1 commit
  34. 28 Jul, 2010 1 commit
  35. 27 Jul, 2010 1 commit
  36. 05 Jul, 2010 1 commit
  37. 07 Jun, 2010 1 commit