1. 11 Apr, 2019 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.
  3. 22 Mar, 2019 1 commit
    • Denis Laxalde's avatar
      Drop more deprecated code · 85194bd49119
      Denis Laxalde authored
      This follows up on changeset a8c1ea390400, in which code deprecated
      using logilab.common.deprecation got dropped. Now we also drop code
      deprecated using stdlib's warn(<msg>, DeprecationWarning).
      Notice that, as a consequence of dropping old/new etypes aliases in
      cubicweb/schema.py, we drop the import ETYPE_NAME_MAP (no longer
      needed); but since other modules imported that name from
      cubicweb.schema, we need to update the import statement to use
      "cubicweb" directly.
  4. 14 Mar, 2019 1 commit
    • 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.
  5. 10 Mar, 2017 1 commit
    • Sylvain Thénault's avatar
      [repo] Drop _get_session method · cc8135ecfbb8
      Sylvain Thénault authored
      it's not actually necessary but holds underlying _sessions dict handling.
      Drop backward compat relying on it (which IMO should not be a problem).
      Drop import of unused QueryError along the way.
  6. 09 Nov, 2016 1 commit
    • Sylvain Thénault's avatar
      Fix broken flake8 configuration · f09efeead7f9
      Sylvain Thénault authored
      and flake8 errors which were hidden by this breakage.
      flake8 --filename options doesn't work as expected:
      * it's expected to be a shell pattern, using stdlib's fnmatch.fnmatch function
        internally. This funciton thinks that 'cubicweb/x.py' doesn't match 'cubicweb/x.py'
        (there must be a reason but that's not the point), hence no file was actually
        checked ;
      * as this is a list of pattern, each encountered file is checked against each
        pattern, leading to run time explosion.
      So maintain list of files to check in a separated file and give this list to
      flake8 using unix's xarg command.
      branch : 3.24
  7. 28 Sep, 2016 1 commit
    • Sylvain Thénault's avatar
      [massive store] Follow configuration of the metadata generator · 307d96c0ab5a
      Sylvain Thénault authored
      Don't drop constraints and indexes for tables that are ignored by the metadata
      generator given to the store. One may now easily disable insertion of e.g.
      created_by / owned_by by removing them from the MetadataGenerator.META_RELATIONS
      set, in which case indexes for associated table won't be removed by the massive
  8. 17 Oct, 2016 1 commit
  9. 05 Oct, 2016 1 commit
    • Sylvain Thénault's avatar
      [repository] Drop the entities.extid column and associated cache · 51c160677afe
      Sylvain Thénault authored
      This was not necessary anymore with promoted usage of the new data import API.
      Turn repository's _type_extid_cache to _type_cache with only the entity's type
      as key.
      This introduces an backward incompatible change: entity_metas dict doesn't
      contains anymore the extid key, but it doesn't seem used at all anywhere, so
      this sounds acceptable.
      Closes #15538317
  10. 30 Sep, 2016 1 commit
    • Sylvain Thénault's avatar
      [dataimport] Add a new NullStore · ae9789d77ea0
      Sylvain Thénault authored
      This is useful to do some import tests where you only want to test steps prior
      to the database insertion, as well as "dry-run" commands.
      Use it as a documenting base class.
  11. 01 Feb, 2016 1 commit
  12. 21 Jun, 2016 1 commit
  13. 29 Jan, 2016 1 commit
  14. 27 Jan, 2016 3 commits
  15. 29 Jan, 2016 1 commit
  16. 16 Jan, 2016 1 commit
    • Denis Laxalde's avatar
      Reorganize source tree to have a "cubicweb" top-level package · 0b59724cb3f2
      Denis Laxalde authored
      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