Aaron Swartz wrote:
> Two selects shouldn't matter.
>
>
>> "web.utils.IterBetter instance at 0x833168c"
>>
>
> That sounds right. If you do a .list() it'll give you a better idea of
> what's in it.
>
okay, on my web page $products.list() => [<storage {'name':u'Standard',
'inventory':0, .....}>]
If I try $products.name => attribute error or if I try $result['name']
=> attribute error
I'm also noticing funny things:
if I do $accounts.list()
then if I do "$for accnt in accounts - the loop yields nothing as if
once the accounts variable is used, then it can't be used again and if I
list $accounts.list() after the loop it shows up empty.
Also I tried to run this to test from command level => no luck
$ python
>>>import web
>>>render = web.template.render('templates/')
>>>web.config.db_parameters=(dbn='sqlite', db='mydb')
>>>web.config.db_printing = True
>>>result = web.select('products').list() => attribute error db_cursor ???
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---