Aaron Swartz wrote:
>> is there an easy way to run this at command line to look at what's being
>> returned ?
>>
>
> web.config.db_printing = True
>
> should print out statements as they run
>
> In 0.3, it's db.printing = True
>
>
re: result = web.select('products', where='name="Standard"')
Maybe I've just got too much Rails on the brain, but I cannot get this
to work at all. From my sqlite db I can do a sql select and get a fully
populated record out but in my webpy program none of the attributes seem
to be there. ? Yet in the error log, the sql command seems to be right
so I'm wondering what form "result" should be in (ie dictionary, list, ...)
And I'm not sure how to write a good test script (something I'll try to
contribute to the cookbook when I get it straightened out).
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---