[Grok-dev] five.grok.subscribe doesn't work

Sylvain Viollon sylvain at infrae.com
Thu Feb 12 04:47:06 EST 2009


  Hello,

On Thu, 12 Feb 2009 10:42:52 +0100
Jan-Wijbrand Kolman <janwijbrand at gmail.com> wrote:
> On Thu, Feb 12, 2009 at 10:29 AM, Vincent Fretin
> <vincent.fretin at gmail.com> wrote:
> >
> > Do I have missed something?
> 
> Could you try:
> 
>   @grok.subscribe(IATDocument, IObjectCreatedEvent)
>   def documentCreated(obj, event):
>       print "Document created", obj.id
> 
> grok.subscribe it to be used a decorator. The "@" is the syntax for
> that.
> 

  Yes, I would say that, because I use them all over the place in
Silva, and they does work, because Silva still work.

  Best regards,

  Sylvain,

-- 
Sylvain Viollon -- Infrae
t +31 10 243 7051 -- http://infrae.com
Hoevestraat 10 3033GC Rotterdam -- The Netherlands
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/grok-dev/attachments/20090212/264d2b3f/attachment.bin 


More information about the Grok-dev mailing list