1. 01 Aug, 2019 1 commit
  2. 31 Jul, 2019 1 commit
  3. 24 Oct, 2019 1 commit
  4. 06 Nov, 2019 1 commit
  5. 24 Oct, 2019 1 commit
  6. 01 Aug, 2019 2 commits
  7. 06 Nov, 2019 1 commit
  8. 05 Nov, 2019 1 commit
  9. 22 May, 2019 1 commit
  10. 29 May, 2019 1 commit
    • Laurent Peuch's avatar
      [pyramid/ctl] add a new option to activate the debugtoolbar (-t) · 30b205676182
      Laurent Peuch authored
      While this toolbar isn't yet very integrated with CW, it integrates an inline
      debugging shell like werkzeug for flask or django_extensions which greatly
      helps debugging on exception.
      
      It can already be manually activated by writting "pyramid.includes =
      pyramid_debugtoolbar" but it's hidden somewhere in the documentation and not
      very accessible and annoying to do.
      
      Closes #17219765
      30b205676182
  11. 27 Aug, 2019 1 commit
  12. 26 Jun, 2019 1 commit
  13. 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
  14. 06 Aug, 2019 2 commits
    • 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
  15. 24 Jul, 2019 2 commits
  16. 10 Jul, 2019 1 commit
    • 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
  17. 26 Jun, 2019 1 commit
  18. 17 Jun, 2019 1 commit
  19. 02 Jul, 2019 1 commit
  20. 27 Jun, 2019 3 commits
    • Denis Laxalde's avatar
      [autoform] Fix display_fields handling · 9f03df82f8de
      Denis Laxalde authored
      This follows-up on changeset b2ceb483e056 (present in 3.25 as well), in
      which AutomaticEntityForm.editable_attributes() was turned into a
      generator. In this method, in case display_fields is not None, we
      previously returned a list of (rtype, role); this was changed into a
      yield, but the change was missing a return after the loop in order not
      to go through the remainder of the function.
      
      Add tests for editable_attributes() method.
      
      --HG--
      branch : 3.26
      9f03df82f8de
    • Denis Laxalde's avatar
      Flake8 cubicweb/web/views/autoform.py · c96aa316d06b
      Denis Laxalde authored
      Fixes:
      
        cubicweb/web/views/autoform.py:703: [E122] continuation line missing indentation or outdented
        cubicweb/web/views/autoform.py:704: [E122] continuation line missing indentation or outdented
        cubicweb/web/views/autoform.py:819: [W504] line break after binary operator
        cubicweb/web/views/autoform.py:820: [E125] continuation line with same indent as next logical line
        cubicweb/web/views/autoform.py:961: [W504] line break after binary operator
        cubicweb/web/views/autoform.py:962: [E126] continuation line over-indented for hanging indent
      
      --HG--
      branch : 3.26
      c96aa316d06b
    • Denis Laxalde's avatar
      [py3] unicode() -> six.text_type in autoform · ea89ca9017c4
      Denis Laxalde authored
      --HG--
      branch : 3.26
      ea89ca9017c4
  21. 13 Jun, 2019 1 commit
  22. 07 Jun, 2019 1 commit
  23. 22 May, 2019 4 commits
  24. 16 Oct, 2019 1 commit
  25. 12 Jun, 2019 1 commit
    • Laurent Peuch's avatar
      [pyramid/debug] on every request display request path and selected controller · 90348f847b4b
      Laurent Peuch authored
      This will display lines like:
      
      2019-06-12 16:26:57 - (cubicweb.pyramid.bwcompat) INFO: REQUEST [view] '/wiki/334037' selected controller <cubicweb.web.views.basecontrollers.ViewController object at 0x7f133802ae90> at /root/.virtualenvs/abreton/local/lib/python2.7/site-packages/cubicweb/web/views/basecontrollers.py:120
      
      2019-06-12 16:26:59 - (cubicweb.pyramid.bwcompat) INFO: REQUEST [data] '/data/ea5eb3b6f89fba0ff4b671093c88d3dd/images/cartouche-mur.jpg' selected controller <cubicweb.web.views.staticcontrollers.DataController object at 0x7f1332a84d50> at /root/.virtualenvs/abreton/local/lib/python2.7/site-packages/cubicweb/web/views/staticcontrollers.py:179
      
      The make debugging easier as this isn't done already. Most other web frameworks
      do something similar for the developper to be able to understand what is
      happening right now.
      
      Closes #17219741
      90348f847b4b
  26. 21 Aug, 2019 2 commits
  27. 20 Aug, 2019 1 commit
    • Laurent Peuch's avatar
      [logging] send logs by default to stdout · a54037a68b14
      Laurent Peuch authored
      Following the move to have commands only working on foreground sending logs to
      a file by default doesn't make much more sens anymore so send them to stdout by
      default and add a new option to send them to a file if needed
      a54037a68b14
  28. 21 May, 2019 2 commits