An error occurred fetching the project authors.
  1. 21 Oct, 2009 1 commit
  2. 12 Mar, 2009 1 commit
  3. 13 Nov, 2008 1 commit
    • Vincent Pelletier's avatar
      Do not call _beginAndHook if we are already registered to transaction manager. · 81a35e3d
      Vincent Pelletier authored
      This fixes a bug introduced by recent possibility to call interaction workflow methods in beforeCommitHooks.
        Example scenario of this bug:
          - create an activity
          - trigger an interaction workflow action set to happen before commit, and which creates an activity
          - commit transaction
        In beforeCommitHooks:
         - activity will get pushed to its queue
         - interaction will trigger, creating an activity, causing ActivityBuffer to register itself again.
         - both activities will get pushed to their queue (both the already-pushed one and the new one, since ActivityBuffer does its cleanup only at transaction commit).
        So we get 3 activities, where 2 were expected, and those numbers get worse very quickly (!n behaviour, n being the number of registered interactions).
      
      
      git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24579 20353a03-c40f-0410-a6d1-a30d3c3de9de
      81a35e3d
  4. 08 Feb, 2008 2 commits
  5. 22 Oct, 2007 1 commit
    • Vincent Pelletier's avatar
      Remove usage from volatile parameters to access the ActivityBuffer on ActivityTool. · fa610065
      Vincent Pelletier authored
       - implies removing the global dict used in ActivityBuffer to avoid duplicated activity insertion.
       - implies that ActivityBuffer is boud to a thread (because of get_ident) and not to a connection any more (because volatile is bound to a connection), so persistent objects must not be held outside transaction scope (the maximum scope at which a connection is bound to a thread)
         - implies modifying hook registration so that portal_activities is passed as a parameter to tpc_prepare
           - implies overloading partially TM._register method to take activity_tool as a parameter
      
      
      git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17102 20353a03-c40f-0410-a6d1-a30d3c3de9de
      fa610065
  6. 29 Sep, 2007 1 commit
  7. 22 Mar, 2007 1 commit
  8. 02 Mar, 2007 3 commits
  9. 23 Jun, 2006 1 commit
  10. 16 May, 2006 1 commit
  11. 25 Mar, 2006 1 commit
  12. 21 Mar, 2006 1 commit
  13. 14 Oct, 2005 1 commit
  14. 10 Aug, 2005 1 commit
  15. 06 Apr, 2005 1 commit
  16. 14 May, 2004 1 commit
  17. 19 Apr, 2004 1 commit
  18. 16 Apr, 2004 1 commit
  19. 11 Apr, 2004 2 commits
  20. 10 Apr, 2004 1 commit