right thought I did that...
anyway, will give up for now. Instead, will just call regular functions
serially with the *The_Controller_to_go_to_Next* in the vars. That way
will still be reusable until I figure out how to write it more elegantly.
Thanks Dave!
Alex
--
Resources:
-
On Thursday, June 4, 2015 at 1:00:54 PM UTC-7, Alex Glaros wrote:
what is syntax for adding vars to direct call to a function?
def my_controller()
do_anything
reusable_find_person_and_return_their_value(), vars=request.vars # how
do I specify vars here on this line?
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
thanks Dave. I don't know if I want it to be helper or regular
functionwhatever works. Those seem to be args, not vars; do functions
accept dictionaries inside those parens?
anyway, if reusable_find_person_and_return_their_value is called from
within another function, the grid never
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
Not sure how your suggestion would be implemented Ron. Can you please give
details?
Requirement is to have robust, flexible grid search to obtain a value, more
functional than just a dropdown select. So by using a separate function
with grid search to select a person, users can browse through
what is syntax for adding vars to direct call to a function?
def my_controller()
do_anything
reusable_find_person_and_return_their_value(), vars=request.vars # how
do I specify vars here on this line?
do_anything_else
return locals()
I tried:
Interesting. If I want to pitch in, I would say its better to put them in a
table like they have it in reddit_clone example and have a search box
separately. grid as I understand is better for management of things. For
example if someone wants to post something and that person wants to manage
Would appreciate any comments from anyone
--
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
On Wednesday, June 3, 2015 at 8:24:40 AM UTC-7, Alex Glaros wrote:
This might be a common requirement for many others because it can be used
instead of the search widget. The search widget doesn't allow users to
browse links to the search options. Example in this case, users may want to
This might be a common requirement for many others because it can be used
instead of the search widget. The search widget doesn't allow users to
browse links to the search options. Example in this case, users may want to
look at the profile of people before they select them from db.auth_user.
I think my question is simpler than appears. Can anyone answer this?
Instead of this:
def find_people_to_add_roles_and_relationships(): # this is the child
controller that gets called.
grid = SQLFORM.grid(db.auth_user, links=[dict(header='Add person to
role', body=lambda row: A('Assign
Sorry I am very slow today. Can you make a concrete example?
On Sunday, 31 May 2015 17:30:57 UTC-5, Alex Glaros wrote:
I want to return FROM the grid with a value. The way we normally do using
row.id, but in this case, instead of the grid being called outside of the
parent function, it is
From a view, I call def assign_person_to_role which calls
find_people_to_add_roles_and_relationships.
User selects a person in the grid find_people_to_add_roles_and_relationships.
Then I want to pass that value to assign_person_to_role
def find_people_to_add_roles_and_relationships(): #
I do not understand what you mean by return to the grid with a value.
Anyway, you can't because the gird urls are signed.
On Sunday, 31 May 2015 08:07:37 UTC-5, Alex Glaros wrote:
I want to send user to a child grid function to select a row value and
then return to the parent function with
I want to return FROM the grid with a value. The way we normally do using
row.id, but in this case, instead of the grid being called outside of the
parent function, it is called from within the parent function.
PARENT_FUNCTION():
makes call to child function that has grid. User selects
16 matches
Mail list logo