Laurence, did you get it to work like that? I tried before using
classmethod and wasn't able to make it work.

Carlos de la Guardia


> Pass an instance of the MySynch class rather than the class itself, e.g:
>
> class MySynch(object):
>     def beforeCompletion(self, transaction):
>         print "Commit started"
>
>     def afterCompletion(self, transaction):
>         print "Commit finished"
>
> import transaction
> synch = MySynch()
> transaction.manager.registerSynch(synch)
>
> Laurence
>
> --
> You received this message because you are subscribed to the Google Groups
> "pylons-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to pylons-devel+unsubscr...@googlegroups.com.
> To post to this group, send email to pylons-devel@googlegroups.com.
> Visit this group at http://groups.google.com/group/pylons-devel?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pylons-devel+unsubscr...@googlegroups.com.
To post to this group, send email to pylons-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/pylons-devel?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to