also, response._caller can be useful to raise the disconnection

2010/11/25 Bruno Rocha <rochacbr...@gmail.com>

> from pymongo import Connection
> ...
> ...
> connection = Connection()
> ...
> ...
> ...
> ...
> connection.disconnect()
>
> In some controllers I tried to keep connection in session or cache, but it
> fails.
>
> 2010/11/25 David Marko <dma...@tiscali.cz>
>
> Where do you store the Pymongo connection object between requests? In
>> some cache object?
>>
>> David
>>
>> On 25 lis, 16:16, Bruno Rocha <rochacbr...@gmail.com> wrote:
>> > I am using PyMongo for one projecthttp://
>> api.mongodb.org/python/1.9%2B/index.html
>> >
>> > I put the libs in modules and created some methods in my /models to
>> abstract
>> > commom tasks, PyMongo is very simple, so it is easy to access the data
>> > directly form controllers or views using its API.
>> >
>> > 2010/11/25 Aurigadl <aurig...@gmail.com>
>> >
>> > > In my projects I'm using MongoDB
>> > > I need to work with this tool
>> > > you need this to work with web2py? Make controller for this
>> > > RDBMS or or this tool work wiht this
>> >
>> > --
>> >
>> > Bruno Rochahttp://about.me/rochacbruno/bio
>>
>
>
>
> --
>
> Bruno Rocha
> http://about.me/rochacbruno/bio
>



-- 

Bruno Rocha
http://about.me/rochacbruno/bio

Reply via email to