Anthony, thanks, I swapped vars back in and that works now. You must be 
right, I must have made some other change, but I can't see what I did. At 
any rate, this is working now, and I regret if I've wasted anyone's time.

On Friday, March 6, 2015 at 3:32:36 PM UTC-5, Anthony wrote:
>
> If vars=dict(i=r.id) works, then so will args=r.id. More specifically, if 
> the latter generates an error saying the Row object has no attribute "id", 
> then the former would also generate the same error, as "r" is the same Row 
> object in both cases. I suspect you made some other change that made it 
> work in the former case.
>
> Anthony
>
> On Friday, March 6, 2015 at 3:13:56 PM UTC-5, Oliver Holloway wrote:
>>
>> Hey! I switched to vars and it worked :)  Thank you to all of you who 
>> helped. 
>>
>> db.sessions.session_name.represent = lambda session_name, r: A(r.
>> session_name, _href=URL('demo', 'tests_for_this_eval', vars=dict(i=r.id
>> )))
>>
>>
>>>

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to