librelist archives

« back to archive

mongo flaskext

mongo flaskext

From:
Sebastien Estienne
Date:
2010-05-30 @ 13:25
Hello,

A quick mail to know if someone is working on an extension for pymongo
otherwise i ll start converting my mongodb to a proper flaskext.

Sebastien Estienne

Re: [flask] mongo flaskext

From:
Thadeus Burgess
Date:
2010-05-30 @ 15:51
I have just been using pymongo as is.

# database.py

from pymongo import Connection
import config

conn = Connection()

db = conn[config.DATABASE]

... set up some map_reduce stuff as well ...


# In my app
from database import db

db.posts.find()


What would being a flaskext provide ?

--
Thadeus





On Sun, May 30, 2010 at 8:25 AM, Sebastien Estienne
<sebastien.estienne@gmail.com> wrote:
> Hello,
>
> A quick mail to know if someone is working on an extension for pymongo
> otherwise i ll start converting my mongodb to a proper flaskext.
>
> Sebastien Estienne
>

Re: [flask] mongo flaskext

From:
Sebastien Estienne
Date:
2010-05-30 @ 16:01
for example better integration with the flask configuration to handle
the different type of connection: single / master-slave / replica
pairs.
Handling or AutoReconnect and integration with flask logging.

Sebastien Estienne



On Sun, May 30, 2010 at 17:51, Thadeus Burgess <thadeusb@thadeusb.com> wrote:
> I have just been using pymongo as is.
>
> # database.py
>
> from pymongo import Connection
> import config
>
> conn = Connection()
>
> db = conn[config.DATABASE]
>
> ... set up some map_reduce stuff as well ...
>
>
> # In my app
> from database import db
>
> db.posts.find()
>
>
> What would being a flaskext provide ?
>
> --
> Thadeus
>
>
>
>
>
> On Sun, May 30, 2010 at 8:25 AM, Sebastien Estienne
> <sebastien.estienne@gmail.com> wrote:
>> Hello,
>>
>> A quick mail to know if someone is working on an extension for pymongo
>> otherwise i ll start converting my mongodb to a proper flaskext.
>>
>> Sebastien Estienne
>>
>