Re: [web2py] Querying Tables from Private Folder

2014-05-05 Thread Marin Pranjić
The command written in previous message is meant to be run along with web2py server, not instead. If that's what you mean by isolation. Not sure if I understand the question. Marin On Sun, May 4, 2014 at 5:35 PM, jaw...@gmail.com wrote: Thanks Marin Is there any way to tun the script in

Re: [web2py] Querying Tables from Private Folder

2014-05-04 Thread Marin Pranjić
Tables are in there but if you don't call db.define_table(...) DAL will not know about them. How are you running the script in private? You can do something like this: python web2py.py -S appname -M -R applications/appname/private/scriptname.py This will run your models before running the

Re: [web2py] Querying Tables from Private Folder

2014-05-04 Thread jawbax
Thanks Marin Is there any way to tun the script in isolation so that it can detect the tables? My current setup is that I have the web2py.py server already running and then running each Private script in isolation (general web scraping). On Sunday, 4 May 2014 09:58:38 UTC+2, Marin Pranjić

[web2py] Querying Tables from Private Folder

2014-05-03 Thread jawbax
I'm trying to query my tables from the private folder: from gluon.tools import DAL db = DAL(sqlite://../databases/storage.sqlite) print db.tables However none of my tables can be seen. The idea is to have a better manner of extracting data rather than the old-school: with