[web2py] Re: Database access without DAL but with connection pool

2014-03-19 Thread tech . uz
Hello Massimo, Thank you for reply. On Wednesday, March 19, 2014 7:20:27 PM UTC+5, Massimo Di Pierro wrote: > > I am not sure about pymongo but if you use > > DAL('mongodb:') > > the dal will do pooling for you. > Ok, I will check this. Actually I don't want to use pymongo only, it could a

[web2py] Database access without DAL but with connection pool

2014-03-18 Thread tech . uz
Dear Sirs, I understand it's possible to use databases without DAL. For example function in controller: def values(): client = pymongo.MongoClient('localhost', 27017) db = client.mybase mytable = db["mytable"] res = mytable.find() . return dict() And of course i

[web2py] Is there any way to work with static files outside web2py directory?

2013-08-06 Thread tech . uz
Hello I have installed web2py on disk C: but I also have many many static images located on disk D: Of course there easiest way just to move all images files from disk D: to static folder of web2py. But I don't want to do this way. I tried to use routes.py files but it doesn't work for me. May