On Friday, April 1, 2016 at 2:40:28 PM UTC-7, Dave S wrote:
>
>
>
> On Friday, April 1, 2016 at 2:23:25 PM UTC-7, lucas wrote:
>>
>> i think i figured it out.  should be:
>>
>> from dal import Row
>> ...
>>
>> row = Row()
>>
>> i know basic, but sometimes it is hard what modules to import when 
>> reading the API docs.  lucas
>>
>
>
> I think it is
>
> >>> from pydal.objects import Row
> >>> row = Row(dict(id = 1, field1 = None))
> >>> print row
> <Row {'field1': None, 'id': 1}>
> >>>
>
>
> but dal.py may pass through the class.
>
>
Indeed.

>>> from dal import Row
>>> row = Row(dict(id = 1, field1 = None))
>>> print row
<Row {'field1': None, 'id': 1}>
>>> if row.id == 1: print "yessir!"
...
yessir!
>>>



/dps
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to