Re: [ZODB-Dev] Re: SVN: ZODB/branches/anguenot-ordering-beforecommitsubscribers/src/transaction/ Implements the ordering of before commit subscribers :

2005-08-08 Thread Julien Anguenot
-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

RE: [ZODB-Dev] Re: SVN: ZODB/branches/anguenot-ordering-beforecommitsubscribers/src/transaction/ Implements the ordering of before commit subscribers :

2005-08-08 Thread Tim Peters
[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

RE: [ZODB-Dev] Re: SVN: ZODB/branches/anguenot-ordering-beforecommitsubscribers/src/transaction/ Implements the ordering of before commit subscribers :

2005-08-08 Thread Tim Peters
[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

[ZODB-Dev] Re: SVN: ZODB/branches/anguenot-ordering-beforecommitsubscribers/src/transaction/ Implements the ordering of before commit subscribers :

2005-08-08 Thread Julien Anguenot
-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'

[ZODB-Dev] Re: SVN: ZODB/branches/anguenot-ordering-beforecommitsubscribers/src/transaction/ Implements the ordering of before commit subscribers :

2005-08-08 Thread Florent Guillaume
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

Re: [ZODB-Dev] Ordering before commit hooks

2005-08-08 Thread Julien Anguenot
-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

[ZODB-Dev] Re: Setting the jar

2005-08-08 Thread Florent Guillaume
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

Re: [ZODB-Dev] Ordering before commit hooks

2005-08-08 Thread Julien Anguenot
-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