1. 09 Jun, 2021 1 commit
  2. 16 Jun, 2021 1 commit
  3. 04 Jun, 2021 1 commit
  4. 26 May, 2021 1 commit
  5. 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.
      26744ad37953
  6. 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.
      b01dd0ef43aa
  7. 19 Jun, 2017 1 commit
  8. 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.
      b8d2e6b9f548
  9. 21 Oct, 2016 1 commit
  10. 13 Apr, 2015 1 commit
  11. 18 Feb, 2016 1 commit
  12. 11 Sep, 2014 1 commit
  13. 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'
      views.
      a2091fa8cb2c
  14. 16 Jul, 2014 1 commit
  15. 16 Jan, 2016 1 commit
    • Denis Laxalde's avatar
      Reorganize source tree to have a "cubicweb" top-level package · 0b59724cb3f2
      Denis Laxalde authored
      Basically:
      
      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
        doc/Makefile
      0b59724cb3f2
  16. 13 Feb, 2015 3 commits
  17. 11 Sep, 2013 1 commit
  18. 01 Aug, 2013 1 commit
  19. 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.
      8aabfefc8a81
    • 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)/'
      96549de9dd70
  20. 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'.
      
      --HG--
      branch : stable
      312062f53981
  21. 26 Jul, 2013 1 commit
  22. 25 Jul, 2013 1 commit
  23. 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
      
      --HG--
      branch : stable
      570208f74a84
  24. 26 Apr, 2013 1 commit
  25. 03 Dec, 2014 1 commit
  26. 20 Mar, 2014 1 commit
  27. 25 Apr, 2013 1 commit
  28. 02 Apr, 2013 1 commit
  29. 27 Mar, 2013 2 commits
  30. 14 Feb, 2013 1 commit
  31. 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
      row.
      
      Related to #2503918
      cb87e831c183
  32. 16 Nov, 2012 1 commit
  33. 11 Sep, 2012 1 commit
  34. 17 Sep, 2012 1 commit
  35. 01 Aug, 2012 1 commit
  36. 23 Jul, 2012 1 commit