Hey, I was curious about how to write custom events in Pyramid so I toyed around a bit and came up with this blog post: http://blog.dannynavarro.net/2011/06/12/using-custom-events-in-pyramid/
In the example I show the events work properly without hooking the ZCA. -- Danny Navarro | http://dannynavarro.net On Sun, Jun 12, 2011 at 2:55 AM, Chris McDonough <[email protected]> wrote: > On Sat, 2011-06-11 at 17:50 -0700, Tim Hoffman wrote: >> Hi >> >> You will find that by default zope.event is using an alternate >> registry so the pyramid subscriber events won't match. >> I am using objectEventNotify on appengine with pyramid, and as the >> post from Danny points out >> you will need to ensure that zope.event and the pyramid registries are >> the same by using the zca global registry. > > config.hook_zca() works too without requiring using the global registry: > > <http://docs.pylonsproject.org/projects/pyramid/1.0/narr/zca.html#enabling-the-zca-global-api-by-using-hook-zca> > > - C > > > >> >> Rgds >> >> Tim >> >> >> >> -- >> You received this message because you are subscribed to the Google >> Groups "pylons-discuss" group. >> To view this discussion on the web visit >> https://groups.google.com/d/msg/pylons-discuss/-/NSBSJ4ojZQ4J. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to pylons-discuss >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/pylons-discuss?hl=en. > > > -- > You received this message because you are subscribed to the Google Groups > "pylons-discuss" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/pylons-discuss?hl=en. > > -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
