[web2py] Path to Appconfig

2015-10-13 Thread lenin . martinez
Good mornings Community. Exist some way to set a path to appConfig.ini ?? Because my config file is in another server and i need read from there, And that file can be in JSON ?? THanks. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Initialize vars

2015-09-16 Thread lenin . martinez
Hello i need initialize *request.vars, or request.post_vars etc... im alredy tried the following codes* - *request.vars = None* - *request.vars = Nan* - *request.vars = {}* - *request.vars = ''* *And nothing yet. thank's* -- Resources: - http://web2py.com -

[web2py] Re: Initialize vars

2015-09-16 Thread lenin . martinez
Omg thanks problem solved. Can you give me more documentation about that. El miércoles, 16 de septiembre de 2015, 12:38:07 (UTC-4:30), Anthony escribió: > > request.vars is already initialized to a gluon.storage.Storage object. If > it is not empty but you want to empty it, you can do: > >

[web2py] Re: ImportError: No module named

2015-09-08 Thread lenin . martinez
Omggg thank i dont have __init__.py on applications folder. i create that file and problem solved Thankss !!! El martes, 8 de septiembre de 2015, 14:24:53 (UTC-4:30), Leonel Câmara escribió: > > Do you have an __init__.py in all these folders? > applications > apprueba > modules > >

[web2py] Re: ImportError: No module named

2015-09-08 Thread lenin . martinez
El martes, 8 de septiembre de 2015, 10:23:34 (UTC-4:30), Leonel Câmara escribió: > > ok so if you just do > > from formita import Form > > It does not work? > No, it does not work, here is the error: No module named applications.apprueba.modules.formita -- Resources: - http://web2py.com

[web2py] Re: ImportError: No module named

2015-09-08 Thread lenin . martinez
Hello, i defined the module in application/myapp/modules/form.py and yes the file __init__.py exists in the folder by default. El lunes, 7 de septiembre de 2015, 23:12:43 (UTC-4:30), Massimo Di Pierro escribió: > > can you import it from a normal python shell from the folder where you >

[web2py] Re: ImportError: No module named

2015-09-08 Thread lenin . martinez
Hello i test import the module from python shell and there work fine. even instance the class and print a function, also i tried adding from gluon.custom_import import track_changes track_changes(True) and changing the import string to: from applications.apprueba.modules.Formita import Form.

[web2py] Re: ImportError: No module named

2015-09-08 Thread lenin . martinez
The file is *formita.py* and have a class defined *Form*, that class only have one method. El martes, 8 de septiembre de 2015, 10:02:30

[web2py] ImportError: No module named

2015-09-07 Thread lenin . martinez
Im triying import one test module form.py . Module class Form(object): def hi(): return 'abc' my controller from form import form but the app generate me one ticket with this error: ImportError: No module named