On Thursday, June 4, 2015 at 4:59:59 PM UTC-7, Dave S wrote:
>
>
>
> On Thursday, June 4, 2015 at 3:10:46 PM UTC-7, Alex Glaros wrote:
>>
>> thanks Dave.  I want it to be regular function, not helper. Those seem to 
>> be args, not vars; do functions accept dictionaries inside those parens?
>>
>
> controller functions don't have parameters.   You've said that you've done 
> redirects in  your prototype, and the redirect mechanism provides req.var 
> to the controller function that you pointed to.  If you call a controller 
> function direct, you probably need to copy req.var to session variables, 
> because there won't be a new request.
>
>
> anyway, if  reusable_find_person_and_return_their_value is called from 
>> within another function, the grid never shows up or doesn't display buttons 
>> to select person.  It just flies through the code and returns to parent. 
>>  If I call reusable_find_person_and_return_their_value explicitly from 
>> browser or view, then grid shows up and shows me buttons to make selection. 
>>  How do I make it display the grid in the child function?
>>
>
> Outside my limited experience, sorry.
>

But if the called controller is returning the usual dictionary, you have to 
assign that dictionary to a local in the caller, don't you?

/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