1. 22 Mar, 2019 4 commits
  2. 27 Mar, 2019 4 commits
  3. 21 Mar, 2019 5 commits
    • Denis Laxalde's avatar
      Flake8 cubicweb/devtools/httptest.py · 2b9e815d20dc
      Denis Laxalde authored
      2b9e815d20dc
    • Denis Laxalde's avatar
      Remove Twisted web server · 9d88e1177c35
      Denis Laxalde authored
      Twisted web server is not used anymore and has been superseded by
      pyramid many years ago. Furthermore, our usage is not compatible with
      Python 3. So we drop the "etwist" sub-package.
      
      As a consequence, "all-in-one" configuration type gets dropped as it was
      Twisted-specific. We resurrect it in cubicweb/pyramid/config.py by only
      keeping options used by the "pyramid". Similarly, we introduce a
      AllInOneCreateHandler in cubicweb/pyramid/pyramidctl.py that is
      basically the one that lived in cubicweb/etwist/twctl.py and is used to
      create the "all-in-one" instance. Added a TODO here about "pyramid.ini"
      that could be generated at the end of bootstrap() method.
      
      In cubicweb/devtools/httptest.py, CubicWebServerTC is now equivalent to
      CubicWebWsgiTC and the latter is dropped.
      9d88e1177c35
    • Denis Laxalde's avatar
      Separate twisted-specific configuration from WebConfigurationBase class · 7276f1c89ddd
      Denis Laxalde authored
      This is in preparation of dropping the Twisted web server backend.
      
      We thus draw a clearer line between what's specific to twisted from
      what's generic by moving WebConfigurationBase class into
      cubicweb/web/webconfig.py and only keeping twisted-related in
      AllInOneConfiguration (still living in cubicweb/etwist/twconfig.py).
      7276f1c89ddd
    • Denis Laxalde's avatar
      Flake8 cubicweb/web/webconfig.py · f9b46b63393e
      Denis Laxalde authored
      f9b46b63393e
    • Denis Laxalde's avatar
      Flake8 cubicweb/etwist/twconfig.py · bcb895aa2684
      Denis Laxalde authored
      bcb895aa2684
  4. 14 Mar, 2019 3 commits
  5. 15 Mar, 2019 1 commit
    • Denis Laxalde's avatar
      Skip tests for ldapsource with python >= 3.7 · 4d68d20427de
      Denis Laxalde authored
      Until someone works on fixing these, this should make our CI green
      again.
      
      I tried to use setupModule() to check for python version, but
      pre_setup_database() is apparently called even when a SkipTest exception
      is raised there. So handle this in that method.
      4d68d20427de
  6. 27 Mar, 2019 2 commits
  7. 21 Mar, 2019 1 commit
  8. 19 Mar, 2019 1 commit
    • Philippe Pepiot's avatar
      [web/test] drop dependency on third party cubes · aff5d3498f68
      Philippe Pepiot authored
      Drop dependency on cubicweb-file, cubicweb-blog and cubicweb-tag for cubicweb/web/test
      Copy required parts of cubes (schema, entities, views and hooks) into
      cubicweb/web/test/data/cubicweb-<cube> that make tests pass.
      aff5d3498f68
  9. 15 Mar, 2019 3 commits
    • Philippe Pepiot's avatar
      [test] drop dependency on third party cubes · 12e8b65146d9
      Philippe Pepiot authored
      Drop dependency on cubicweb-file, cubicweb-localperms, cubicweb-tag and
      cubicweb-comment for cubicweb.test and cubicweb.sobjects.test
      
      Move cubicweb/test/data/libpython/cubicweb_* to cubicweb/test/data, so it's
      included in PYTHONPATH.
      Add missing parts of schema, entities, views, hooks that make tests pass.
      12e8b65146d9
    • Philippe Pepiot's avatar
      [test] drop CubicWebConfigurationWithLegacyCubesTC · 34c4157b1071
      Philippe Pepiot authored
      This is used to test legacy cube import which is planned for removal
      in cubicweb 3.27, so drop the code.
      34c4157b1071
    • Philippe Pepiot's avatar
      [test] drop unittest_cubes.py · ec089debcd45
      Philippe Pepiot authored
      This is used to test legacy cube import which is planned for removal in
      cubicweb 3.27, so drop the code.
      ec089debcd45
  10. 19 Mar, 2019 1 commit
    • Philippe Pepiot's avatar
      [server/test] do not depend on third party cubes · 2d43c8b30ef0
      Philippe Pepiot authored
      Drop requirement of basket, card, comment, file, localperms and tag cubes for
      cubicweb.server tests.
      Copy needed part of schema, entities, views, hooks into the
      cubicweb/server/test/data directory (which is included in PYTHONPATH for
      CubicWebTC tests).
      For migration tests which use different "datapath", use symlinks to have dependent cubes importables.
      2d43c8b30ef0
  11. 15 Mar, 2019 1 commit
  12. 13 Mar, 2019 1 commit
  13. 11 Mar, 2019 1 commit
    • Philippe Pepiot's avatar
      [schema] drop monkeypatch "name_for" on BaseConstraint · 661dd0436c01
      Philippe Pepiot authored
      BaseConstraint doesn't have "name_for" method, this is just an addition for
      cubicweb needs.
      
      Implement this as a function instead of a monkeypatch to avoid having
      "name_for" not defined because cubicweb.schema hasn't been imported.
      
      In particular this fix running cubicweb/server/test/unittest_schema2sql.py::SQLSchemaTC::test_known_values alone.
      661dd0436c01
  14. 13 Mar, 2019 1 commit
  15. 14 Mar, 2019 6 commits
    • 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
    • Denis Laxalde's avatar
      Drop deprecated code in cubicweb.hooks · 211472ab15c8
      Denis Laxalde authored
      Changelog entry will come in a later changeset.
      211472ab15c8
    • Denis Laxalde's avatar
      Drop deprecated code in cubicweb.entities · d97f9b8df92a
      Denis Laxalde authored
      Also dropped an unused import along the way.
      
      Changelog entry will come in a later changeset.
      d97f9b8df92a
    • Denis Laxalde's avatar
      Drop deprecated code in cubicweb.devtools · 55014a79b2a5
      Denis Laxalde authored
      Changelog entry will come in a later changeset.
      55014a79b2a5
    • Denis Laxalde's avatar
      Drop deprecated code in cubicweb.dataimport · 362fdb399ff5
      Denis Laxalde authored
      We actually drop *most* of deprecated code in this subpackage. What's
      left is the MetaGenerator class in (cubicweb/dataimport/stores.py) which
      is tricky to remove as it's still internally used by cubicweb.
      
      Changelog entry will come in a later changeset.
      362fdb399ff5
    • Denis Laxalde's avatar
      Drop most deprecated code in cubicweb.web · b01dd0ef43aa
      Denis Laxalde authored
      This includes both Python and JavaScript code. Most code has been
      deprecated since a very long time (versions 3.1x mostly, more than 5
      years ago, and a few things until 3.24).
      
      There are still a few deprecated things, most of which are actually used
      within cubicweb (or in cubes we depend on for tests). I don't know what
      to do with these...
      
      Removed a couple of unused imports along the way.
      
      Changelog entry will come in a later changeset.
      b01dd0ef43aa
  16. 13 Mar, 2019 2 commits
  17. 14 Mar, 2019 2 commits
    • Denis Laxalde's avatar
      [test] Remove upper bound for cubicweb-localperms · ef2168f389f6
      Denis Laxalde authored
      Version 0.4.0 does not use a deprecated API that we are planning to drop
      in forthcoming changesets.
      
      This requires changing expected values in unittest_cwconfig.py where we
      scan install cubes.
      
      *   In CubicWebConfigurationTC.test_available_cubes(), localperms
          disappears from the list of expected cubes because this test method
          will look for new style cubes in located in cubicweb/test/data/libpython/
          (we patch pkg_resources.iter_entry_points()) as well as old style
          cubes installed in $PREFIX/share/cubicweb/cubes; since the new
          cubicweb-localperms version is new-style, it won't be catched by this
          method.
      
      *   In CubicWebConfigurationWithLegacyCubesTC.test_available_cubes(),
          localperms is still listed, but now with the package name, because
          this method will simply look at installed cubes whether old or new
          style.
      ef2168f389f6
    • Denis Laxalde's avatar
      [test] Make the expected value explicit in... · 2699e0f3f54a
      Denis Laxalde authored
      [test] Make the expected value explicit in CubicWebConfigurationWithLegacyCubesTC.test_available_cubes()
      
      This will help with the next changeset, and avoiding computation in
      tests is a good thing in general.
      2699e0f3f54a
  18. 13 Mar, 2019 1 commit