>
> Hi! thanks a lot for your reply, i'm trying to implement your answer but 
> i'm having a couple of issues for which i'm not sure what's the solution. 
>


<...> are placeholders for whatever function names and list object you are 
handling. I can think of two options:

The first <...> is f actually as you marked

- A list of strings with names that map to a list of functions handled when 
the form is processed. You should then do the name handling like:

if form.vars.function == "function name":
    # here you call the function that maps to the function name
    ....
elif form.vars.function == "another function name":
    ....


- A list retrieved with metaprogramming like:

import * from somemodule
functions = [name for name in dir(somemodule) if callable(locals()[name])]

Then you can do:

locals()[form.vars.function](form.vars.data)

Or similar method for retrieving a namespace object

About the editor error, it may a syntax error like indentation or 
missing/wrong token


-- 

--- 
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/groups/opt_out.


Reply via email to