1. 26 Apr, 2013 1 commit
  2. 25 Apr, 2013 2 commits
  3. 24 Apr, 2013 2 commits
  4. 23 Apr, 2013 1 commit
  5. 22 Apr, 2013 6 commits
    • Julien Muchembled's avatar
      CMFActivity: move message serialization code to Message class · ee2edadb
      Julien Muchembled authored
      Later, we might want to do more processing after loading, or before dumping,
      accessing private Message data.
      ee2edadb
    • Julien Muchembled's avatar
      CMFActivity: remove non-executable message state (-3) · e47f2923
      Julien Muchembled authored
      When an object is deleted, higher level code used to flush its messages (without
      invoking them). However, a concurrent and very long transaction may be about to
      activate such an object, without conflict. We already experienced false -3
      errors that could prevent other messages to be validated.
      
      Because there is no efficient and reliable way to flush absolutely all messages,
      messages on deleted objects are now ignored and deleted without any email
      notification. There's only a WARNING in logs. But for performance reasons,
      there's still a flush on object deletion.
      
      To simplify code, messages that went to -3 for other reasons, like a
      non-existing method, now go to -2. In fact, this was already the case for
      grouped messages.
      
      In case that a path is recycled, it may still be possible for a message to be
      executed on a wrong object (the new one), instead of being ignored (because the
      activated object was deleted). So in such scenario, developer should make sure
      not to delete an object that may be activated in a concurrent transaction.
      If the original object has an OID at the moment it is activated, an assertion
      will make sure the message is not executed on another object.
      e47f2923
    • Julien Muchembled's avatar
      testCMFActivity: clean up · fcce7b97
      Julien Muchembled authored
      fcce7b97
    • Jérome Perrin's avatar
      Merge erp5_accounting_alternate_catalog in erp5_accounting · 70a8e561
      Jérome Perrin authored
      Also add support for own section title and count method.
      Update configurator accordingly
      70a8e561
    • Jérome Perrin's avatar
      f1b7b62c
    • Jérome Perrin's avatar
  6. 19 Apr, 2013 2 commits
  7. 18 Apr, 2013 1 commit
  8. 17 Apr, 2013 3 commits
  9. 16 Apr, 2013 2 commits
  10. 15 Apr, 2013 15 commits
  11. 12 Apr, 2013 5 commits
    • Cédric Le Ninivin's avatar
    • Julien Muchembled's avatar
      Fix useless expand after delivery building · faee5904
      Julien Muchembled authored
      This fixes a performance regression introduced in
      commit 0a8fbb36
      ("Simulation: index 'delivery' categories in ZODB")
      
      Built delivery lines are modified by newContent(), before
      SimulatedDeliveryBuilder._setDeliveryMovementProperties() has a chance to set
      the delivery link on the related simulation movement.
      So isGeneratedBySimulation() always returned False.
      
      One solution was to revert all changes in
        product/ERP5/Document/Movement.py
        product/ERP5/Document/SimulatedDeliveryBuilder.py
      from the aforementioned commit, but it's much simpler to move the interaction
      at the end of the transaction, even if in some rare cases, 2 '_updateSimulation'
      activities are created, causing a slight overhead on activity tool.
      Signed-off-by: Kazuhiko Shiozaki's avatarKazuhiko Shiozaki <kazuhiko@nexedi.com>
      faee5904
    • Jérome Perrin's avatar
      CatalogTool: support sorting on a related key · 331fed02
      Jérome Perrin authored
      This approach consists in treating each keys from the default group (the
      one for sort on and select dict) as a left join if the key supports it, at
      column mapping level.
      
      Also update testERP5Catalog, the specification changed a bit.
      Before, using a related key in select_dict had the side effect of not selecting
      documents without related documents unless the key is explicitly passed in
      select_dict. Now all documents are always returned.
      331fed02
    • Jérome Perrin's avatar
      Define getListItemUrl on MovementHistoryListBrain · 267d9f81
      Jérome Perrin authored
      MovementHistoryListBrain links must be pointing to the explanation of the
      movement.
      267d9f81
    • Jérome Perrin's avatar
      simplify code · f15bc6b4
      Jérome Perrin authored
      f15bc6b4