1. 20 Mar, 2020 1 commit
    • Laurent Wouters's avatar
      [rql] Store selected variables for RQL select queries in ResultSet (#17218476) · 6eae252361e5
      Laurent Wouters authored
      By storing the name of the selected variables for RQL select queries in the
      ResultSet (within the "variables" attribute), the information can be passed
      down to specific protocols, e.g. rqlio that may wish to pass is down further
      to clients.
      In turn, clients can then choose to present the results of RQL select queries
      as symbolic bindings using the names used in the query's projection, instead of
      ordinal arrays.
      6eae252361e5
  2. 13 Mar, 2019 1 commit
  3. 19 Feb, 2020 1 commit
  4. 13 Mar, 2019 3 commits
  5. 12 Mar, 2019 2 commits
  6. 18 Dec, 2019 1 commit
  7. 24 Oct, 2019 1 commit
  8. 06 Nov, 2019 1 commit
  9. 01 Aug, 2019 1 commit
  10. 21 Aug, 2019 1 commit
  11. 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
  12. 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
  13. 12 Mar, 2019 2 commits
  14. 30 Nov, 2017 2 commits
    • Denis Laxalde's avatar
      [ssplanner] Prevent execution of write queries involving computed relations · 68ca7fe0ca29
      Denis Laxalde authored
      Previously, setting a computed relation upon entity creation or
      modification (using the ORM or an RQL query) would usually fail with an
      operational error in the backend ("no such table"). However, under some
      mysterious circumstances (like passing a string as value in cw_set for a
      computed relation), the RQL to SQL transformation would simply drop the
      clause.
      
      To prevent this to happen, we add a check for computed relation before
      adding a relation to an execution plan. This check raises a QueryError.
      It happens in several places:
      
      * in querier.InsertPlan.add_relation_def() (called from several places
        in ssplanner steps) for INSERT queries,
      * in ssplanner.UpdateStep.execute() for SET queries and,
      * in ssplanner.SSplanner.build_delete_plan() for DELETE queries.
      
      Tests added to unittest_querier.py because unittest_sslplanner.py looked
      inappropriate (it has only unit tests) and the former already had a
      NonRegressionTC class.
      68ca7fe0ca29
    • Denis Laxalde's avatar
      [querier] Expand 'rdef' argument in InsertPlan.add_relation_def() · 06deb43c23c3
      Denis Laxalde authored
      Expand the 'rdef' tuple to improve readability. The 'rtype' value is not
      used at the moment, but will in the next changeset.
      06deb43c23c3
  15. 20 Apr, 2017 1 commit
  16. 17 Mar, 2017 1 commit
  17. 03 Mar, 2017 2 commits
  18. 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
  19. 01 Oct, 2016 1 commit
  20. 29 Apr, 2016 1 commit
  21. 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
  22. 11 Jun, 2014 1 commit
    • Aurelien Campeas's avatar
      [connection] remove the `mode` attribute · 38c7598b5c61
      Aurelien Campeas authored
      It is now unused.
      While removing mode, we also drop some sqlserver-specific reconnection logic snippets.
      These had several downsides:
      * untested
      * partial coverage
      * done at the wrong level
      
      Related to #2919309.
      38c7598b5c61
  23. 13 Feb, 2015 1 commit
  24. 02 Sep, 2014 1 commit
  25. 30 Aug, 2013 1 commit
  26. 29 Jan, 2014 1 commit
  27. 23 Jan, 2014 1 commit
    • Sylvain Thénault's avatar
      [multi-sources-removal] Drop entities.source column · 032825bbacab
      Sylvain Thénault authored
      Since we remove federated multi-sources support, the same value ('system')
      is always stored in this column and so could be removed. Also, cleanup
      repository caches and a few api where the very same useless information could
      be removed.
      
      Closes #2919300, at last
      
      [jcr: restore sanity check of etype against schema in checkintegrity.has_eid]
      032825bbacab
  28. 10 Oct, 2013 1 commit
  29. 15 Jul, 2013 1 commit
  30. 01 Jul, 2013 1 commit
  31. 22 Jan, 2014 1 commit
  32. 02 Jul, 2013 1 commit
    • Sylvain Thénault's avatar
      [config] cleanup/refactor server sources file values handling · a2a0bc984863
      Sylvain Thénault authored
      * kill former `sources` method, misnamed since we've only the system source
        configuration in the sources file (and some default admin account information)
      
      * introduce new system_source_config and default_admin_config properties to
        access to the two information in this file
      
      Then use one or the other when appropriate
      a2a0bc984863
  33. 21 Jan, 2014 1 commit
  34. 03 Apr, 2013 1 commit