Re: [web2py] Modules not detecting functions

2013-02-04 Thread Massimo Di Pierro
@Johann, this is not a good solution because ties the import to the application name. @Wonton, can you email me your app so I can take a look. What os? what python version? what web2py version? On Monday, 4 February 2013 04:47:46 UTC-6, Johann Spies wrote: > > But if I do this in default.py: >

Re: [web2py] Modules not detecting functions

2013-02-04 Thread Johann Spies
But if I do this in default.py: > import mymodule > def index(): > value = mymodule.attribute > return value > > it works and return 'goobye world', so default detects the attribute but > not the function, why is this? Maybe I'm not building the module correctly? > > I've tried to put the

[web2py] Modules not detecting functions

2013-01-31 Thread Wonton
Hello everyone! I have a project in a server without admin access so it's difficult for me to debug it, I have a strange problem and I'm lost with it. Basically my default.py has something like this: import mymodule def index(): value = mymodule.function() return value And inside modul