-----BEGIN PGP SIGNED MESSAGE-----
Chris Withers wrote:
> Julien Anguenot wrote:
>> If you want a flush, following what I think I understood you mean ;), we
>> use the transaction.commit() in the tests when needed.
> Okay, but then how do you undo the changes made by that commit?
You can't with this.
Can you gimme a use case, within a test, where the interface we define
in CPS would not be enough for you ? In our CPSTestCase we set all
subscribers to 'async' and then all works as if no txn subscribers
exists during the tests.
> Also, how would you go about overriding this late-indexing behaviour if
> you really wanted to for some specific objects?
Define reindexObject() and reindexObjectSecurity() on the given content
type for instance. But clearly, we could think about a more complex
Transaction Manager that may deal with more complex use cases such as
this one. We didn't express this need yet.
Julien Anguenot | Nuxeo R&D (Paris, France)
CPS Platform : http://www.cps-project.org
Zope3 / ECM : http://www.z3lab.org
mail: anguenot at nuxeo.com; tel: +33 (0) 6 72 57 57 66
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
Zope-CMF maillist - Zope-CMF@lists.zope.org
See http://collector.zope.org/CMF for bug reports and feature requests