1. 16 Jun, 2021 1 commit
  2. 04 Jun, 2021 1 commit
  3. 26 May, 2021 1 commit
  4. 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.
  5. 14 Mar, 2019 1 commit
    • 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.
  6. 19 Jun, 2017 1 commit
  7. 14 Mar, 2017 1 commit
    • Sylvain Thénault's avatar
      Stop using Session on the repository side · b8d2e6b9f548
      Sylvain Thénault authored
      Only expect session on web request, and let the web session/authentication
      managers provide them.
      Access to cnx.data, which used to return session data, is deprecated: there is
      no more access to session data from the repository side, and they should be
      access from req.session.data from the web side.
  8. 21 Oct, 2016 1 commit
  9. 13 Apr, 2015 1 commit
  10. 18 Feb, 2016 1 commit
  11. 11 Sep, 2014 1 commit
  12. 09 Mar, 2016 1 commit
    • Julien Cristau's avatar
      [web/httpcache] fix Last-Modified generation · a2091fa8cb2c
      Julien Cristau authored
      time.mktime takes a time tuple in *local* time.  We have an UTC datetime coming
      from the last_modified method, which we were interpreting as local time,
      leading to hilarity.  Use calendar.timegm instead.
      Add tests for Last-Modified generation of the 'download' and 'manage'
  13. 16 Jul, 2014 1 commit
  14. 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
  15. 13 Feb, 2015 3 commits
  16. 11 Sep, 2013 1 commit
  17. 01 Aug, 2013 1 commit
  18. 08 Apr, 2014 2 commits
    • Julien Cristau's avatar
      [test] use assertNotIn where appropriate · 8aabfefc8a81
      Julien Cristau authored
      Automatically generated with:
        find -name unittest_*.py -o -name test_*.py | xargs sed -i -e 's/assertFalse(\([^,]*\) in \([^,]*\))/assertNotIn(\1, \2)/'
      plus revert of a couple false matches.
    • Julien Cristau's avatar
      [test] use assertIn where appropriate · 96549de9dd70
      Julien Cristau authored
      Automatically generated with:
        find -name unittest_*.py -o -name test_*.py | xargs sed -i -e 's/assertTrue(\([^,]*\) in \([^,]*\))/assertIn(\1, \2)/'
  19. 01 Aug, 2013 1 commit
    • Sylvain Thénault's avatar
      [inlined form field] fix regression introduced in 3.16.4/570208f74a84. Closes #3064653 · 312062f53981
      Sylvain Thénault authored
      In the above changeset, we changed ordered entities to be edited according to
      mandatory inlined constraints, though this leads to unpredictable order in
      cases where there are no constraint. This leads to case where inlined relation
      field may think there is no value related to a mandatory relation, while this
      is simply because there is a value specified but to an entity that will be
      created later (together with the relation).
      To fix this, we've to use the fact that the RelationField.process_form_value
      return None in cases where there is some entity to be created, while an empty
      set when there are no linked entity. The new no_value() method allows to
      differentiate between those different notion of 'no-value'.
      branch : stable
  20. 26 Jul, 2013 1 commit
  21. 25 Jul, 2013 1 commit
  22. 24 Jul, 2013 1 commit
    • Sylvain Thénault's avatar
      [editcontrollers] Ensure entities are created in an order satisfying schema... · 570208f74a84
      Sylvain Thénault authored
      [editcontrollers] Ensure entities are created in an order satisfying schema constraints. Closes #3031719
      changes below are also necessary to make the whole thing works:
      * stop considering InlinedFormFile as eidparam field since they don't
        hold any value
      * rework 'pendingfields' handling to have separate processing of inlined fields
        whose subject entity is created during the edition
      branch : stable
  23. 26 Apr, 2013 1 commit
  24. 03 Dec, 2014 1 commit
  25. 20 Mar, 2014 1 commit
  26. 25 Apr, 2013 1 commit
  27. 02 Apr, 2013 1 commit
  28. 27 Mar, 2013 2 commits
  29. 14 Feb, 2013 1 commit
  30. 13 Jun, 2013 1 commit
    • Pierre-Yves David's avatar
      rename server.session.transaction into server.session.connection · cb87e831c183
      Pierre-Yves David authored
      The ongoing rework of the API to access the database include the splitting of
      Session in two objects:
      The ``Session`` object will only hold credential (user) and global session data.
      A new object will publicly emerge to handle a database access. This object is
      named ``Connection`` since that the way database accessors with the same property
      are named in other system. So we renamed the ``Transaction`` object into
      ``Connection``. The ``Transaction`` object have already grown in the direction
      of something directly usable by generic code, but the name ``Transaction`` is
      ill suited as such object can be used for multiple database transaction in a
      Related to #2503918
  31. 16 Nov, 2012 1 commit
  32. 11 Sep, 2012 1 commit
  33. 17 Sep, 2012 1 commit
  34. 01 Aug, 2012 1 commit
  35. 23 Jul, 2012 1 commit
  36. 14 Jun, 2012 1 commit
    • Pierre-Yves David's avatar
      [login] redirect to real instance root if no postlogin_path is provided · 7a861620f64f
      Pierre-Yves David authored
      When not postlogin_path is provided, the login form issue a redirect to "/".
      The instance root may not be at "/" on the server. Then issuing a redirect to
      "/" send the user to the wrong location.
      We now redirect to "." which works fine because the "login" controller a direct
      children of instance root (http://babar.com/instance/login).
      All other redirection of the login controller use relative path too and then
      rely on this relative path from the login controleur to the instance root. This
      mechanism may be considered fragile and may deserve a proper fix. but this is to
      be discussed and implemented in another changeset.