Debugging ODM

24 views
Skip to first unread message

Zlatko Mašek

unread,
Jan 25, 2015, 5:06:14 AM1/25/15
to python...@googlegroups.com
I'm probably doing something wrong here. Using 0.9.2, executing all() method like this: models.place.all() returns error in CompiledQuery(self.pipeline()) line 138 in redis store.py.
TypeError: __init__() missing 1 required positional argument: 'query'

The model is registered, but I'm not sure if I need to make some additional steps for this to work. Is there a specific time when I can find anybody on IRC?

lsbardel

unread,
Jan 25, 2015, 9:11:39 AM1/25/15
to python...@googlegroups.com
Hi,
The odm module is experimental and not ready to be used at the moment.
I'm not even sure if it will make the cut for pulsar 1.0.
The current design of the ODM uses an explicit asynchronous interface, i.e. it requires the user to use coroutines.
I think a better solution would be to use an implicit asynchronous interface via greenlet integration.

Zlatko Mašek

unread,
Jan 25, 2015, 2:23:08 PM1/25/15
to lsbardel, python...@googlegroups.com
On Sun, Jan 25, 2015 at 2:11 PM, lsbardel <luca.sb...@gmail.com> wrote:
Hi,

On Sunday, January 25, 2015 at 10:06:14 AM UTC, Zlatko Mašek wrote:
I'm probably doing something wrong here. Using 0.9.2, executing all() method like this: models.place.all() returns error in CompiledQuery(self.pipeline()) line 138 in redis store.py.
TypeError: __init__() missing 1 required positional argument: 'query'

The model is registered, but I'm not sure if I need to make some additional steps for this to work. Is there a specific time when I can find anybody on IRC?

The odm module is experimental and not ready to be used at the moment.
It's ok. My project is experimental, too :) I'd still like to know why this is happening, i.e. it would be great if the documentation would show the common usage, or common pitfalls of it. I'm actually very new to the async programming and this is my way of learning it I guess.
 
I'm not even sure if it will make the cut for pulsar 1.0.
The current design of the ODM uses an explicit asynchronous interface, i.e. it requires the user to use coroutines.
I think a better solution would be to use an implicit asynchronous interface via greenlet integration.

--
You received this message because you are subscribed to a topic in the Google Groups "python-pulsar" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/python-pulsar/X_yTdcDzDo0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to python-pulsa...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages