Yes, response._caller.
You can wrap this function, take a look at the following for an example.
http://packages.python.org/web2py_utils/output.html#compress-output
http://hg.thadeusb.com/Web/web2py_utils/file/9581a47022ee/web2py_utils/output.py
Notice how I change response._caller to my custom f
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 wrote:
> Hi David,
>
> I think the problem is that modules and controllers are executed on
> every page call.
>
> The web2
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
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 50
On May 8, 12:40 pm, David Marko 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 / with minimal d
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 wrote:
> For now, Web2py's DAL doesnt support NoSQL databases. I think Massimo
> can tell us more on the status of the DAL r
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 wrote:
> Is anyone using MongoDB with web2py? How do you 'share' connection
> object in your app when using pymongo
7 matches
Mail list logo