any luck with that ?
On Mon, Apr 16, 2012 at 12:33 PM, szimszon wrote:
> Okay. The
>
> if 0:
> from gluon import *
>
> request, session, response, T, cache = current.request, current.
> session, current.response, current.t, current.
> cache
> from gluon.dal import DAL
> from gluo
Okay. The
if 0:
from gluon import *
request, session, response, T, cache = current.request,
current.session,current
.response, current.t, current.cache
from gluon.dal import DAL
from gluon.tools import Auth, Service, Crud
db = DAL()
auth = Auth()
service = Service()
I've just tried it out.
Unzip the latest stable source code of web2py to a folder, say,
"web2py_src".
Go to Eclipse - Preferences - PyDev - 'Interpreter - Python'
In the 'System PYTHONPATH' window, add 'web2py_src' to the path.
So far, it seems autocomplete is working without doing all the impo
Now I have trouble if I have to import something in the code:
from gluon.tools import Auth
Grrr...
Ok. It works as follow:
1. I made a soft link to gluon/__init__.py and named it gluon/ide.py
2. PythonPath / external libraries: first web2py/ than web2py/gluon
3. Put the following code to my controller:
if 0:
from ide import *
request, session, response, T, cache = current.req
That's interesting.
It seems that the order in pythonpath is relevant.
If I put first web2py/gluon than web2py/ in external libs autocomplet is
not working. If I reverse the order autocomplet is working.
I still have to specify all the request, response... object for code
analyze...
But if aut
I have found that aptana does not import packages by reading the __init__
file. So "from gluon import *" fails to define anything. However if you
copy gluon.__init__ into ide.py and "from ide.py import *", then it seems
to work.
Adding to the pythonpath does not seem to do anything. Also aptana
Tang, please how do i implement this your suggestion?
On Thu, Apr 5, 2012 at 3:54 PM, Xiaofeng Tang wrote:
> I use PyDev and add web2py src into "PyDev - PythonPath" to resolve the
> incorrect refs and enable autocompletion.
>
> Alternatively, u could install the path of web2py src into systeml
I use PyDev and add web2py src into "PyDev - PythonPath" to resolve the
incorrect refs and enable autocompletion.
Alternatively, u could install the path of web2py src into systeml
envirnoment vairable "pythonpath".
--- on 2012/4/5 22:51:41, Rod Watkins wrote:
> I know this has been asked before
I know this has been asked before. I don't mean to be an annoyance. I've
done the searches are read numerous posts about how to handle this. But the
advice conflicts and I've yet to actually fix the problem.
What is the best way to handle imports for eclipse to get autocomplete to
work properl
10 matches
Mail list logo