I do the following in a coro:
yield pubsub.subscribe(key='TEST')
result = (yield pubsub.fetch(key='TEST'))
Messages are published to the PublisherSubscriberQueue via a normal
Pylons action,
similar to this:
def myaction(self):
yield request.environ['cogen.call'] (pubsub.publish)
('somedatahere', key='TEST')
yield "Some data was just published!"
And that works! Unfortunately it does not seem to respect the keys; If
I publish using a different key, the fetch (as in the first code
example) will still fetch it. What am I doing wrong?
I'm using cogen 0.2.1.
Kind regards,
Torbjørn
--
You received this message because you are subscribed to the Google Groups "cogen" group.
To post to this group, send email to
co...@googlegroups.com.
To unsubscribe from this group, send email to
cogen+un...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/cogen?hl=en.