Thank you for your response. I still have the problem with the
connection object to MongoDB as stated in my first post. Where to put
the lines establishing the connection?
-
If I put the code below into db.py, each request causes the new
connection opened to MongoDB what mean that after
Hi David,
I think the problem is that modules and controllers are executed on
every page call.
The web2py DAL open AND close a new connection to the DB on ever page
call. Maybe you shut do the same for mongo too.
connection = Connection()
do your stuff
connection.disconnect()
Martin
On 9
And where is the good pace to make such call? Has web2py some place
which is guarantied to be called after response has been sent to
browser?
David
On 9 kvě, 13:14, rfx_labs l...@reproflex.de wrote:
Hi David,
I think the problem is that modules and controllers are executed on
every page
For now, Web2py's DAL doesnt support NoSQL databases. I think Massimo
can tell us more on the status of the DAL rewrite and when it would be
possible.
On May 8, 5:59 pm, David Marko dma...@tiscali.cz wrote:
Is anyone using MongoDB with web2py? How do you 'share' connection
object in your app
Yes, I know, but you should be able to use it without DAL using
pymongo as a primary MongoDB python driver. And thats where my
question goes.
David
On 8 kvě, 19:22, Pystar aitoehi...@gmail.com wrote:
For now, Web2py's DAL doesnt support NoSQL databases. I think Massimo
can tell us more on the
On May 8, 12:40 pm, David Marko dma...@tiscali.cz wrote:
Yes, I know, but you should be able to use it without DAL using
pymongo as a primary MongoDB python driver. And thats where my
question goes.
If you want to experiement, and get a start, I suggest you write your
scaffolding app without /
6 matches
Mail list logo