No idea what you're trying to do here, but note that web2py executes a view 
only if the controller function returns a dictionary. You haven't shown all 
of your code, but it isn't clear you are returning a dictionary (with 
"result" as one of the keys).

Anthony

On Wednesday, June 1, 2016 at 12:48:41 PM UTC-4, Maurice Waka wrote:
>
> I have part of the code here as follows:
> r_lst = [foo(), foo1(), foo2(), foo3()]
> class Filters(object):
>     @staticmethod
>     def Search_item():
>         it = iter(r_lst)
>         while True:
>             try:
>                 for i in range(len(r_lst)):
>                     it.next
>                 except stopIteration:
>                     break
> c = Filters.Search_item()
> p = Filters
> List_func = c
> def Do_print():
>     for stuff in dir(p):
>         if 'Filter' in stuff:
>             if List_func:
>                 return List_func
> result = Do_print()
> On view I have this:
>
> code.....
>
> {{=XML(''.join(list(result)))}}{{break}}
>
> N/B
> When I do this on Idle, it works well by printing out the result such as
> def foo():
>     print 'Hello World'...###Hello world is stored in a sqlite DB .I use 
> 'return' instead of print function when using web2py
> when I run this code on web2py, I just get a blank page. Where could i be 
> going wrong?
> Regards
>

-- 
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