1. 25 Feb, 2015 1 commit
  2. 13 Feb, 2014 2 commits
  3. 11 Jun, 2014 9 commits
  4. 10 Jun, 2014 3 commits
  5. 13 Jun, 2014 2 commits
  6. 10 Jun, 2014 1 commit
    • Aurelien Campeas's avatar
      [repoapi] fold ClientConnection into Connection · 635cfac73d28
      Aurelien Campeas authored
      Connection replaces ClientConnection everywhere.
      
      Some notes:
      
      * testlib: .client_cnx and .repo_cnx become aliases of .cnx (we might
        not want to tell people to update their tests again for just no real
        benefit, so we'll live with these aliases for a while)
      
      * entity.as_rset must not be cached because we risk caching result
        sets having a Connection object as .req (helps unittest_breadcrumbs)
      
      * entity._cw_dont_cache_attributes loses its repo/request special
        paths and only keeps its storage/bfss user (this helps
        unittest_wfobjs)
      
      * moreover, entity.cw_instantiate and .cw_set stop overriding the
        attributes cache *after* the before_*_entity hooks have run, because
        there is no need to (it is now actually harmful to do it and
        unittest_hooks.test_html_tidy* tests remain green because of this)
      
      * rset._build_entity sticks its .req onto the entity just fetched from
        the cache, because otherwise it might carry a _cw that is a
        Connection object where a Request is expected (helps
        unittest_views_actions)
      
      * we get overall better cache usages (entity caches were split over
        Request + ClientConnection and Connection), hence the changes
        unittest_entity and unittest_wfobjs
      
      * void the ecache when providing the cnx to a request object
      
        Having the entity cache pre-filled when we bind it to the request
        object hurts because these entities are bound to Connection objects,
        that lack e.g. `.form` or `.add_js` and crash the views subsystem.
      
        Thus, the unittest_testlib.test_error_raised test will are kept
        green.
      
      
      Closes #3837233
      635cfac73d28
  7. 13 Jun, 2014 2 commits
  8. 01 Jul, 2014 1 commit
    • Aurelien Campeas's avatar
      [connection] replace .running_dbapi_query with .hooks_in_progress · 91e63306e277
      Aurelien Campeas authored
      The thing was badly named.
      
      It tries to help distinguish between queries issued
      directly by the programmer (e.g in the views: cnx.execute(...))
      from queries issued from the hooks, operations ... or even
      the repository or the native source objects.
      
      It worked heuristically being associated with
      the security being disabled.
      
      We provide a better name and an implementation distinct from
      the security management methods.
      
      Related to #3933480.
      91e63306e277
  9. 05 May, 2015 1 commit
  10. 07 Nov, 2014 1 commit
  11. 01 Jul, 2014 1 commit
  12. 06 Jun, 2014 1 commit
    • Aurelien Campeas's avatar
      [repoapi,session] remove all session-as-cnx backward compat · b926ff4ef4a8
      Aurelien Campeas authored
      The `dbapi` being gone, we now can drop the session object
      bw-compatibility layer. This will allow further simplifications, such
      as folding ClientConnection and Connection (without too much pain),
      and then having persistent sessions.
      
      Related to #3933480.
      b926ff4ef4a8
  13. 22 Apr, 2015 2 commits
  14. 17 Mar, 2015 5 commits
  15. 04 Jun, 2014 1 commit
  16. 05 Jun, 2014 1 commit
  17. 13 Mar, 2015 2 commits
  18. 03 Jun, 2014 1 commit
    • Aurelien Campeas's avatar
      [dbapi] remove the dbapi module and its immediate remaining users · 6f25c7e4f19b
      Aurelien Campeas authored
      We suppress toolsutils.config_connect, which has currently
      only one known user (the email cube), which is being patched.
      
      It can be replaced with utils.admincnx function for a local
      access.
      
      Next will come a series to:
      
      * remove the session backward compatibility
      * fold ClientConnection into Connection
      
      Closes #3933480.
      6f25c7e4f19b
  19. 13 Mar, 2015 1 commit
  20. 02 Apr, 2015 1 commit
  21. 22 Apr, 2015 1 commit