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

Vincent Fretin vincent.fretin at gmail.com
Thu Feb 12 04:48:37 EST 2009


On Thu, Feb 12, 2009 at 10:47 AM, Sylvain Viollon <sylvain at infrae.com> wrote:
>
>  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,

Oh silly me, of course it's a decorator. Thanks you guys
-- 
Vincent Fretin


More information about the Grok-dev mailing list