1. 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
  2. 19 Jun, 2017 1 commit
  3. 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
  4. 21 Oct, 2016 1 commit
  5. 13 Apr, 2015 1 commit
  6. 18 Feb, 2016 1 commit
  7. 11 Sep, 2014 1 commit
  8. 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
  9. 16 Jul, 2014 1 commit
  10. 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
  11. 13 Feb, 2015 3 commits
  12. 11 Sep, 2013 1 commit
  13. 01 Aug, 2013 1 commit
  14. 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
  15. 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
  16. 26 Jul, 2013 1 commit
  17. 25 Jul, 2013 1 commit
  18. 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
  19. 26 Apr, 2013 1 commit
  20. 03 Dec, 2014 1 commit
  21. 20 Mar, 2014 1 commit
  22. 25 Apr, 2013 1 commit
  23. 02 Apr, 2013 1 commit
  24. 27 Mar, 2013 2 commits
  25. 14 Feb, 2013 1 commit
  26. 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
  27. 16 Nov, 2012 1 commit
  28. 11 Sep, 2012 1 commit
  29. 17 Sep, 2012 1 commit
  30. 01 Aug, 2012 1 commit
  31. 23 Jul, 2012 1 commit
  32. 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.
      7a861620f64f
  33. 08 Jun, 2012 1 commit
  34. 15 Mar, 2012 2 commits
    • Pierre-Yves David's avatar
      [web] Move request handling logic into cubicweb application. (closes #2200684) · 6c2119509fac
      Pierre-Yves David authored
      We improve http status handling in the process:
      
      ``application.publish`` have been renamed to ``application.handle`` to better
      reflect it's roles.
      
      The request object gain a status_out attribute to convey the HTTP status of the
      response.
      
      WSGI and etwist code have been updated.
      
      Exception gain status attribute
      6c2119509fac
    • Pierre-Yves David's avatar
      [login] split authentication logic from post authentication logic (closes #2200755) · 76a44a0d7f4b
      Pierre-Yves David authored
      * The Session manager is now only in charge of providing a valid session.
      
      * LoginControllers are now used in all case but wrong credential.
      
      * The LoginControllers are in charge of redirecting the user to the page wanted
        to see in the first place, expected to see.
      
      * The login form is now always submitted to the login controller with an extra
        argument pointing to the url we should redirect too after successful
        authentication.
      
      
      The ``"log out first logic"`` logic on login controller is removed because:
      
      1. Other web actor do not do that.
      2. Removed code do not need to be reimplemented.
      3. We can only get it to work again in a single case: use do a GET request on
         http://www.my-cw-stuff.io/login
      4. I do not see it's purpose.
      76a44a0d7f4b
  35. 27 Feb, 2012 1 commit