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. 14 Mar, 2019 1 commit
    • Denis Laxalde's avatar
      Drop most of deprecated code · a8c1ea390400
      Denis Laxalde authored
      As in previous changesets, most code has been deprecated since a very
      long time. This changeset concerns "core" cubicweb modules
      (e.g. "server", "appobjects") for which it's not easy to handle change
      atomically.
      
      In cubicweb/server/querier.py, we adjust empty_rset() function as a
      result of "rqlst" argument of ResultSet being dropped. (There was no use
      of the keyword argument anyways.)
      a8c1ea390400
  4. 03 Mar, 2016 1 commit
  5. 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
  6. 07 Apr, 2014 1 commit
  7. 03 Apr, 2014 1 commit
  8. 24 Mar, 2014 1 commit
  9. 15 Jul, 2013 1 commit
  10. 04 Feb, 2013 1 commit
  11. 14 Feb, 2013 1 commit
  12. 13 Feb, 2012 1 commit
  13. 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
  14. 21 Oct, 2011 1 commit
  15. 14 Oct, 2011 1 commit
  16. 14 Sep, 2011 1 commit
  17. 05 Jul, 2011 1 commit
  18. 11 May, 2011 1 commit
  19. 09 May, 2011 1 commit
  20. 28 Apr, 2011 1 commit
    • Alexandre Fayolle's avatar
      [hooks selection optimization] prune hooks when multiple entities are... · d240cff2d8ba
      Alexandre Fayolle authored
      [hooks selection optimization] prune hooks when multiple entities are concerned by a hm.call_hooks() (closes: #1672022)
      
      the idea is to make a first pass over all the hooks in the registry and to mark
      put some of them in a disabled list. The disabled hooks are the one which:
      
      * are disabled at the session level
      
      * have a match_rtype or an is_instance selector which does not
      match the rtype / etype of the relations / entities for
      which we are calling the hooks. This works because the
      repository calls the hooks grouped by rtype or by etype when
      using the entities or eids_to_from keyword arguments
      
      Only hooks with a simple selector or an AndSelector of simple
      selectors (is_instance and match_rtype) are considered for disabling.
      d240cff2d8ba
  21. 02 May, 2011 1 commit
  22. 22 Apr, 2011 1 commit
  23. 11 Feb, 2011 1 commit
  24. 28 Jan, 2011 1 commit
    • Julien Jehannet's avatar
      [selectors] modify workflow selectors: is_in_state, on_transition · 8fd6921f3e7c
      Julien Jehannet authored
      - factorize `is_on_state` selector
      - add new `on_transition` selector
        Especially useful to match pending transitions to enable notifications when
        your workflow allows several transition to the same states.
        Note that if workflow `change_state` adapter method is used, this selector
        will not be triggered.
      
      In debug mode:
        These both selectors will check against the entity current workflow if expected
        values given in selector argument are valid.
      
        ValueError exception will be raised for unmatching state/transition
        names against the current workflow (generic etype workflow).
        (check against custom workflow is not implemented)
      
      --HG--
      branch : stable
      8fd6921f3e7c
  25. 27 Jan, 2011 1 commit
  26. 25 Jan, 2011 1 commit
  27. 21 Jan, 2011 1 commit
  28. 20 Jan, 2011 1 commit
  29. 24 Sep, 2010 2 commits
  30. 30 Jul, 2010 1 commit
  31. 05 Jul, 2010 1 commit
  32. 21 May, 2010 1 commit
  33. 28 Apr, 2010 2 commits
  34. 22 Apr, 2010 1 commit
  35. 08 Feb, 2010 1 commit
  36. 07 Jan, 2010 1 commit
  37. 23 Sep, 2009 1 commit
  38. 11 Aug, 2009 1 commit