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ć
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
Thank you! That worked perfectly.
Also, I gather this would be the ideal opportunity to fully look into
lamba...
:)
On Monday, 28 April 2014 22:22:40 UTC+2, yamandu wrote:
Use represent and the tag A helper.
db.table_name.link_field.represent = lambda value, row: A(value,
_href=value)
Hi
I've created a run-of-the-mill table:
def index():
grid = SQLFORM.grid(db.table_name, user_signature=False)
return dict(grid=grid)
One of the columns in the table is an actual link - how do I go about
making this clickable?
Thanks!
--
Resources:
- http://web2py.com
-
4 matches
Mail list logo