My apologies.I got carried away by an issue.
Cotroller code:
from applications.....service.main import get_word, get_name, get_index,
testing
def views:
    corpus = [get_name, get_words, get_index, testing]##imported functions
    result = ''.join(y for y in [x() for x in corpus] if y is not None)
  return dict(form=form, result=result)

On Thu, Jun 28, 2018 at 9:29 PM Leonel Câmara <[email protected]>
wrote:

> Maurice telling me corpus is defined in the controller doesn't help me at
> all, I need to see how you are picking the functions you put there to see
> why one could be None. A possible reason is that you have a dictionary of
> keys with a function as the value of each key, you then do a get from that
> dictionary which will return a None if the function isn't there.
>
> --
> 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 a topic in the
> Google Groups "web2py-users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/web2py/KRSp3bD-LDU/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

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