[web2py] Re: How to import python functions

2014-05-23 Thread Maurice Waka
Thanks for the update. I wanted to know whether I cant import the function from the python module that contains the print 'message delivered' to the HTML view and have it printed e.g. {{extend 'layout.html'}} {{=test()}} OR do I have to change the python code. Kind regards On Thursday, May

[web2py] Re: How to import python functions

2014-05-22 Thread Anthony
Are you saying you need to know how to import code from a module, or just that you want to know how to have text show up in an HTML page? If the latter, it is just: {{=some_string}} For example, you might have a web2py action like this: def index(): return dict(message='Message