1. 25 Sep, 2020 2 commits
  2. 18 Sep, 2020 1 commit
  3. 05 Mar, 2020 5 commits
  4. 25 Feb, 2020 4 commits
    • Julien Tayon's avatar
      [ldapfeed] add option to enable starttls on ldap servers · 2ad148f22c2f
      Julien Tayon authored
      Modern ldap servers connection often use, or even require starttls.
      
      --HG--
      branch : 3.26
      2ad148f22c2f
    • Philippe Pepiot's avatar
      [ldapfeed] re-enable ldap tests for python 3.7 · 4ebfdf607b49
      Philippe Pepiot authored
      This was disabled because ldap3<2 wasn't compatible with python 3.7
      While I'm here, drop unseless newline.
      
      --HG--
      branch : 3.26
      4ebfdf607b49
    • Julien Tayon's avatar
      [ldapfeed] make code compatible with ldap3>=2 · 5c35b94debfc
      Julien Tayon authored
      
      
      * Some constants have been renamed.
      * Directly bind when data-cnx-dn/data-cnx-password are provided, some servers,
        including ours require this.
      * Use raise_exceptions=True to avoid ignored ldap errors
      * raise in case of failed anonymous bind
      * do not search for "dn" attribute because this raise an "invalid attribute"
        with new ldap3 versions
      * Password is now returned as bytes, so no longer need to encode them before crypt.
      * modification_date is now returned as a datetime object
      Co-Authored-By: Philippe Pepiot's avatarPhilippe Pepiot <philippe.pepiot@logilab.fr>
      
      Closes #16073071
      
      --HG--
      branch : 3.26
      5c35b94debfc
    • Philippe Pepiot's avatar
      [ldapfeed] use LDAP_SCOPES to find user-scope · 1206b6fa1173
      Philippe Pepiot authored
      We already have LDAP_SCOPES dict defining possible scopes, this avoid possible code injection from config...
      Thus we can drop global variables already defined in LDAP_SCOPES since they are not used directly anymore.
      
      --HG--
      branch : 3.26
      1206b6fa1173
  5. 13 Feb, 2020 2 commits
  6. 12 Feb, 2020 1 commit
  7. 10 Feb, 2020 1 commit
  8. 27 Aug, 2019 1 commit
  9. 26 Jun, 2019 1 commit
  10. 20 Jun, 2019 1 commit
  11. 11 Sep, 2019 3 commits
    • Laurent Peuch's avatar
      [fix] reference to underclared and unused variable kwargs · 1853c5e13154
      Laurent Peuch authored
      --HG--
      branch : 3.26
      1853c5e13154
    • Philippe Pepiot's avatar
      Avoid to update inlined relation column to NULL when deleting entities · 1a2c7d6397ec
      Philippe Pepiot authored
      When deleting entities, cubicweb run a rql DELETE on all relations to trigger hooks.
      For an inlined relation this also mean set the column to NULL. This operation
      may fail if there's additional constraints on the column.
      
      Also this is a weird and useless behavior since deleting the entity row will by
      definition delete the relation.
      
      We still doesn't handle the case where both subject and object are going to be
      deleted because rows need to be deleted in a particular order that cubicweb
      doesn't handle.
      
      Add a test checking UPDATE does not occur but hooks are correctly called.
      
      Closes #17236690
      
      --HG--
      branch : 3.26
      1a2c7d6397ec
    • Philippe Pepiot's avatar
      Drop useless ConstraintInsertionTC · 0481ece35cb2
      Philippe Pepiot authored
      This test does nothing and is here from the begining of repo history.
      
      Now it raise an error "TypeError: Skipped expected string as 'msg' parameter, got 'SkipTest' instead. Perhaps you meant to use a mark?"
      
      Just drop it.
      
      --HG--
      branch : 3.26
      0481ece35cb2
  12. 06 Aug, 2019 3 commits
    • Denis Laxalde's avatar
      Added tag debian/3.26.14-1, 3.26.14 for changeset 172f683a84f6 · 1b4e32301f14
      Denis Laxalde authored
      --HG--
      branch : 3.26
      1b4e32301f14
    • Denis Laxalde's avatar
      [pkg] version 3.26.14 · 172f683a84f6
      Denis Laxalde authored
      --HG--
      branch : 3.26
      172f683a84f6
    • Denis Laxalde's avatar
      [py3] Pass bytes as "msg" to smtplib.SMTP.sendmail() · 9fb4a71f119d
      Denis Laxalde authored
      When passing a unicode string to smtplib.SMTP.sendmail() as "msg"
      argument, there is an implicit bytes encoding using "ascii" encoding in
      python3. Of course this does not work if the string contains non-ASCII
      characters. In fact, config's sendmails method intent to pass bytes to
      smtplib.SMTP.sendmail() as it uses msg.as_string() method.
      Unfortunately, in python3, this method returns a unicode string whereas
      it returns a bytes string in python2; we thus fix this by calling
      as_bytes() method on python3.
      
      As there is no "as_bytes" method in python2, we need to handle python2
      compatibility by hand and either call as_string() or as_bytes().
      
      In testlib, where we mock smtplib.SMTP, we need to keep the "msg"
      argument of Email class (defined in testlib as well) a unicode string.
      Otherwise, it fails to be parsed by email.message_from_string() (from
      stdlib) if it is bytes on python3.
      
      --HG--
      branch : 3.26
      9fb4a71f119d
  13. 24 Jul, 2019 3 commits
  14. 23 Jul, 2019 1 commit
  15. 10 Jun, 2019 3 commits
  16. 13 Jun, 2019 1 commit
    • Jérémy Bobbio (Lunar)'s avatar
      [pkg] Tidy substvars usage in control file · d8c491c1e580
      Jérémy Bobbio (Lunar) authored
      The documentation package was missing a Built-Using field to record
      the provenance of the templates.
      
      Empty packages or meta packages do not require Depends on a specific
      Python version, so we can remove the relevant substvars.
      
      --HG--
      branch : 3.26
      d8c491c1e580
  17. 10 Jun, 2019 1 commit
  18. 05 Jun, 2019 1 commit
    • Jérémy Bobbio (Lunar)'s avatar
      [pkg] Switch to Debian source format 3.0 (quilt) · 46f6db5167e7
      Jérémy Bobbio (Lunar) authored
      This forces us to base the Debian package on the source of the Python
      package (as produced by running `python3 setup.py sdist`). While
      it might seem cumbersome, this greatly reduces likelyhood of mismatch
      between an installation via `pip` and one using the Debian package.
      
      `dpkg-source` will also document for us what is currently in the
      source repository but not in the Python package. Currently the missing
      file are:
      
      PKG-INFO
      cubicweb/sobjects/test/data/cubicweb_comment/schema.py
      cubicweb/sobjects/test/data/cubicweb_comment/__init__.py
      cubicweb/sobjects/test/data/cubicweb_comment/__pkginfo__.py
      cubicweb/sobjects/test/data/cubicweb_card/schema.py
      cubicweb/sobjects/test/data/cubicweb_card/entities.py
      cubicweb/sobjects/test/data/cubicweb_card/__init__.py
      cubicweb/sobjects/test/data/cubicweb_card/__pkginfo__.py
      cubicweb/server/test/data-migractions/cubicweb_comment/schema.py
      cubicweb/server/test/data-migractions/cubicweb_comment/__init__.py
      cubicweb/server/test/data-migractions/cubicweb_comment/__pkginfo__.py
      cubicweb/server/test/data-migractions/cubicweb_localperms/schema.py
      cubicweb/server/test/data-migractions/cubicweb_localperms/__init__.py
      cubicweb/server/test/data-migractions/cubicweb_localperms/__pkginfo__.py
      cubicweb/server/test/data-migractions/cubicweb_basket/schema.py
      cubicweb/server/test/data-migractions/cubicweb_basket/__init__.py
      cubicweb/server/test/data-migractions/cubicweb_basket/__pkginfo__.py
      cubicweb/server/test/data-migractions/migratedapp/cubicweb_comment/schema.py
      cubicweb/server/test/data-migractions/migratedapp/cubicweb_comment/__init__.py
      cubicweb/server/test/data-migractions/migratedapp/cubicweb_comment/__pkginfo__.py
      cubicweb/server/test/data-migractions/migratedapp/cubicweb_localperms/schema.py
      cubicweb/server/test/data-migractions/migratedapp/cubicweb_localperms/__init__.py
      cubicweb/server/test/data-migractions/migratedapp/cubicweb_localperms/__pkginfo__.py
      cubicweb/server/test/data-migractions/migratedapp/cubicweb_basket/schema.py
      cubicweb/server/test/data-migractions/migratedapp/cubicweb_basket/__init__.py
      cubicweb/server/test/data-migractions/migratedapp/cubicweb_basket/__pkginfo__.py
      cubicweb/server/test/data-migractions/migratedapp/cubicweb_tag/schema.py
      cubicweb/server/test/data-migractions/migratedapp/cubicweb_tag/__init__.py
      cubicweb/server/test/data-migractions/migratedapp/cubicweb_tag/__pkginfo__.py
      cubicweb/server/test/data-migractions/migratedapp/cubicweb_card/schema.py
      cubicweb/server/test/data-migractions/migratedapp/cubicweb_card/__init__.py
      cubicweb/server/test/data-migractions/migratedapp/cubicweb_card/__pkginfo__.py
      cubicweb/server/test/data-migractions/migratedapp/cubicweb_file/schema.py
      cubicweb/server/test/data-migractions/migratedapp/cubicweb_file/__init__.py
      cubicweb/server/test/data-migractions/migratedapp/cubicweb_file/__pkginfo__.py
      cubicweb/server/test/data-migractions/cubicweb_tag/schema.py
      cubicweb/server/test/data-migractions/cubicweb_tag/__init__.py
      cubicweb/server/test/data-migractions/cubicweb_tag/__pkginfo__.py
      cubicweb/server/test/data-migractions/cubicweb_card/schema.py
      cubicweb/server/test/data-migractions/cubicweb_card/__init__.py
      cubicweb/server/test/data-migractions/cubicweb_card/__pkginfo__.py
      cubicweb/server/test/data-migractions/cubicweb_file/schema.py
      cubicweb/server/test/data-migractions/cubicweb_file/__init__.py
      cubicweb/server/test/data-migractions/cubicweb_file/__pkginfo__.py
      cubicweb/test/data-rewrite/cubicweb_localperms/schema.py
      cubicweb/test/data-rewrite/cubicweb_localperms/__init__.py
      cubicweb/test/data-rewrite/cubicweb_localperms/__pkginfo__.py
      cubicweb/test/data-rewrite/cubicweb_card/schema.py
      cubicweb/test/data-rewrite/cubicweb_card/entities.py
      cubicweb/test/data-rewrite/cubicweb_card/__init__.py
      cubicweb/test/data-rewrite/cubicweb_card/__pkginfo__.py
      
      The current manifest will duplicate several files that are stored as
      symlinks in the Mercurial repository, hence the long list of ignored
      files in `extend-diff-ignore`.
      
      --HG--
      branch : 3.26
      46f6db5167e7
  19. 12 Jul, 2019 2 commits
    • Denis Laxalde's avatar
      [debian] Update description of cubicweb-ctl* packages · d0cedb5fb790
      Denis Laxalde authored
      init scripts are no longer shipped.
      Avoid mentionning "start" and "stop" command which should not be used in
      production environments.
      
      --HG--
      branch : 3.26
      d0cedb5fb790
    • Denis Laxalde's avatar
      [debian] Introduce a cubicweb-ctl3 binary package · 3b48af0ec776
      Denis Laxalde authored
      This packages conflicts with cubicweb-ctl binary which uses the python2
      library. It is meant to ease upgrade of existing installation during the
      migration from python2 to python3: in particular, by installing
      cubicweb-ctl3, scripts calling "cubicweb-ctl" command should still work
      as before.
      
      --HG--
      branch : 3.26
      3b48af0ec776
  20. 10 Jul, 2019 2 commits
    • Jérémy Bobbio (Lunar)'s avatar
      [pkg] Add new autopkgtest for skeleton packaging · d1b5fd6129bd
      Jérémy Bobbio (Lunar) authored
      When running `cubicweb-ctl newcube`, the generated template provides
      debian packaging. So let's add automated tests for that using
      autopkgtest.
      
      The new test will generated a new cube, build a source tarball,
      build the package, try to install it, see if the Python 2 and 3
      modules are available and even run autopkgtest against the newly
      created packages.
      
      Along the way it will also print information about the generated
      package: buildinfo, package content, and lintian report.
      
      --HG--
      branch : 3.26
      d1b5fd6129bd
    • Jérémy Bobbio (Lunar)'s avatar
      [skeleton] Update Debian packaging template · 376168d1b14a
      Jérémy Bobbio (Lunar) authored
      Here are multiple updates to the Debian packaging template provided when
      running `cubicweb-ctl newcube`:
      
       * Switch to source format 3.0 (quilt).
       * Switch to debhelper 9.
       * Switch to dh-python.
       * Add Python 3 packages.
       * Name the binary packages `python-cubicweb-CUBENAME` and
         `python3-cubicweb-CUBENAME` instead of just `cubicweb-CUBENAME` (which is
         still the source package).
       * Populate Depends using dh_python{2,3} support for Python requirements.
       * Run test suite at build time using pytest.
       * Add autopkgtest to run test suite against the installed package.
       * Bump Standards-Version to 4.3.0.
      
      --HG--
      branch : 3.26
      376168d1b14a
  21. 26 Jun, 2019 1 commit