-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Tim Peters wrote:
> [Julien Anguenot]
>
>>>+def beforeCommitHookOrdered(hook, order, *args, **kws):
>>>+
>>>"""Register a hook to call before the transaction is committed. ...
>>>+Note, a hook __call__() method can't define any 'order' arg
[Julien Anguenot]
> Zope3 seems to use one (1) underscore as a suffix like in :
>
> See for instance this :
>
http://svn.zope.org/Zope3/trunk/src/zope/app/component/metaconfigure.py?rev=
37586&view=auto
>
> """ def subscriber(_context, for_=None, factory=None, handler=None,
> provides=None, permiss
[Julien Anguenot]
>> +def beforeCommitHookOrdered(hook, order, *args, **kws):
>> +
>> """Register a hook to call before the transaction is committed. ...
>> +Note, a hook __call__() method can't define any 'order' argument
since
>> +this one is reserved by this method
[Florent
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Florent Guillaume wrote:
> Julien Anguenot wrote:
>
>> +def beforeCommitHookOrdered(hook, order, *args, **kws):
>> +"""Register a hook to call before the transaction is committed.
>
> ...
>
>> +Note, a hook __call__() method can'
Julien Anguenot wrote:
+def beforeCommitHookOrdered(hook, order, *args, **kws):
+"""Register a hook to call before the transaction is committed.
...
+Note, a hook __call__() method can't define any 'order' argument since
+this one is reserved by this method
If t
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi,
I created a branch there :
http://svn.zope.org/ZODB/branches/anguenot-ordering-beforecommitsubscribers/
See changeset 37789
Check the changeset log for more information about the implementation.
J.
Julien Anguenot wrote:
> Hi,
>
> I
Tim Peters wrote:
[Florent Guillaume]
To be clear, I'm interested in how the _p_jar happens on a new object
that's just been created. Basically if you do:
# folder is a persistent object that has a _p_jar
# folder.foo = Foo() # where Foo inherits from Persistent
# here folder.foo doesn't have
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Tim Peters wrote:
> [Julien Anguenot]
>
>>...
>>To make it clear the idea is if you got this and if we call it "order".
>>
>>Callback Ca order 0
>>Callback Cb order 99
>>Callback Cc order -99
>>
>>The order of execution will be Cc Ca and then