1. 18 Jul, 2018 3 commits
  2. 28 Jun, 2018 11 commits
  3. 18 Jun, 2018 2 commits
  4. 15 Jun, 2018 1 commit
    • Philippe Pepiot's avatar
      [py3] ensure AjaxController return bytes · 39208d9256a2
      Philippe Pepiot authored
      publish() must return bytes, when the @ajaxfunc decorated method return None, this raised:
      
      TypeError: You cannot set Response.body to a text object (use Response.text)
      
      --HG--
      branch : 3.26
      39208d9256a2
  5. 13 Jun, 2018 1 commit
    • Denis Laxalde's avatar
      [py3] Let InstanceCommand.run_arg() always return an int · 562b09ec963a
      Denis Laxalde authored
      The caller of this method (which is method "run_args") does `max(status,
      self.run_arg(appid))` and run_arg might return None if the underlying
      <cmdname>_instance method returns None. On python3 max(1, None) breaks
      with "TypeError: unorderable types: int() > NoneType()". So we enforce
      run_arg() method to return an integer even if the underlying method
      returns None.
      
      This fixes call of "cubicweb-ctl i18ninstance" with Python3.
      
      --HG--
      branch : 3.26
      562b09ec963a
  6. 18 Jun, 2018 1 commit
    • Denis Laxalde's avatar
      [test] Use cubicweb-file < 2.0.0 · cd211bb9aa8e
      Denis Laxalde authored
      From version 2.0.0, cubicweb-file moved to new-style layout (Python
      package) but we still expect it to be an old-style cube in CubicWeb's
      tests (WebconfigTC in web/test/unittest_webconfig.py).
      
      --HG--
      branch : 3.26
      cd211bb9aa8e
  7. 06 Jun, 2018 1 commit
    • Denis Laxalde's avatar
      [py3] Decode subprocess stdout in toolsutils.show_diffs() · e116275bf1ac
      Denis Laxalde authored
      On Python 3, subprocess' pipes are bytes stream so we must decode them
      before printing. Without this change, diff of configuration files (e.g.
      all-in-one.conf as displayed upon instance upgrade) will rendered as a
      single line on Python 3.
      
      --HG--
      branch : 3.26
      e116275bf1ac
  8. 03 May, 2018 2 commits
    • Adrien Di Mascio's avatar
      [python3] make sure staticcontroller returns a bytes instance · d46753a9a2a5
      Adrien Di Mascio authored
      The ``publish()`` method of controller is supposed to return a
      bytes intsance. Returning a text_type instance will crash later
      on in the Pyramid response handler when assigning content to
      ``response.body`` (at least in Python3)::
      
         >>> from pyramid.response import Response
         >>> r = Response()
         >>> r.body = ''
         Traceback (most recent call last):
           File "<stdin>", line 1, in <module>
           File "/home/adim/.virtualenvs/…/response.py", line 562, in _body__set
             raise TypeError(msg)
          TypeError: You cannot set Response.body to a text object (use Response.text)
      
      --HG--
      branch : 3.26
      d46753a9a2a5
    • Adrien Di Mascio's avatar
      [python3] use inspect.getfullargspec instead of inspect.getargspec · 3ee1db91fb00
      Adrien Di Mascio authored
      The latter is now deprecated
      
      --HG--
      branch : 3.26
      3ee1db91fb00
  9. 12 Oct, 2017 1 commit
  10. 23 Apr, 2018 2 commits
  11. 16 Oct, 2017 1 commit
  12. 13 Dec, 2017 1 commit
  13. 19 Apr, 2018 4 commits
  14. 22 Mar, 2018 5 commits
  15. 15 Feb, 2018 2 commits
  16. 05 Mar, 2018 1 commit
    • Denis Laxalde's avatar
      [pyramid] Recreate CWSession entity when eid no longer exists · 77a543e7878a
      Denis Laxalde authored
      As noted in comment, it might occur that we receive a "sessioneid" from
      a valid cookie while respective CWSession got dropped (typical case is
      db being recreated while users got preserved). In such case, we just
      recreate the CWSession entity as if it did not exist.
      
      --HG--
      branch : 3.26
      77a543e7878a
  17. 22 Feb, 2018 1 commit