[Zope-CMF] Re: reindexing optimizations

Julien Anguenot ja at nuxeo.com
Mon Nov 21 10:14:38 EST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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.

Cheers,
	
	J.

- --
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

iD8DBQFDgeReGhoG8MxZ/pIRAo1iAJ0c++bO9ZVLyuPalEBIM6rtxzB73ACfX2la
NuKrEr1eo1qRLaIQvsv1pzI=
=aWX1
-----END PGP SIGNATURE-----


More information about the Zope-CMF mailing list