Re: [web2py] web2py function import not working well

2014-06-08 Thread Maurice Waka
I tried to work it out but I still have no breakthrough. Now I get this None write response instead. Here is the code: from applications.test.modules.Test1 import GAMES0from applications.test.modules.Test1 import GAMES1from applications.test.modules.Test1.cores import mainfrom gluon import *de

Re: [web2py] web2py function import not working well

2014-06-05 Thread Maurice Waka
Thanks team!! That gives me an idea of how to program. Mush appreciated! On Thu, Jun 5, 2014 at 2:20 AM, Derek wrote: > you running it from the shell gives you the REPL which you don't have when > you run it through web2py. repl will print out if you just give it a class > it will tell you what

Re: [web2py] web2py function import not working well

2014-06-04 Thread Derek
you running it from the shell gives you the REPL which you don't have when you run it through web2py. repl will print out if you just give it a class it will tell you what instance of class you have. if you want to print like it does in the repl, you need to 'print repr(x)' where x is the class

Re: [web2py] web2py function import not working well

2014-06-03 Thread Michael Beller
Some of the code in the functions and classes not displayed in your original post may reference web2py globals and environment variables. I think (I'm still learning web2py also) that running your code in the shell then has access to the web2py environment. Modules do not have access automatic

Re: [web2py] web2py function import not working well

2014-06-03 Thread Maurice Waka
When I work with the same module on python shell, its perfectly printing out. I dont know why it does not print on web2py. Basically I imported it without editing from python shell. Anyway since am new to web2py and python, you could help out On Tuesday, June 3, 2014, Derek wrote: > Sorry, but it

[web2py] web2py function import not working well

2014-06-03 Thread Maurice Waka
from applications.Folders1.modules.myfolder1.main import mainfrom applications.Folders1.modules.myfolder1.list1 import GAMES0 code.if id == name3: result = location return result else: while True: class Filters(object):