What's the best way to get code completion / tooltip information ?

50 views
Skip to first unread message

Stef Mientki

unread,
Jul 29, 2010, 4:22:59 PM7/29/10
to web2py-users
hello,

my viewer has changed into an quit handy editor,
and now I want more: autocompletion and tooltip information.

The autocompletion and tooltip generator,
searches for classes and methods,
looks up the documentation and analyses the method arguments.

Now as web2py is (at least I think) a strange package in the pure Python sense,
it's not obvious to me
- which paths should I add to the Python system path ?
- which modules should I import, to get the most common objects into the completion / tooltip
information ?

(If it succeeds, the program will be free available under BSD license)

thanks,
Stef Mientki

mdipierro

unread,
Jul 29, 2010, 5:06:39 PM7/29/10
to web2py-users
Edit this file:

applications/admin/models/0.py

and change

TEXT_EDITOR = 'edit_area' or 'amy'

into

TEXT_EDITOR = 'amy'

amy editor provide web2py autocompletion. It is not the default
because does not work with every browser.

Thadeus Burgess

unread,
Jul 29, 2010, 11:17:44 PM7/29/10
to web...@googlegroups.com
gluon.

Look in gluon/compileapp.py in build_environment. You could use that
as a template for the autocomplete.

--
Thadeus

Stef Mientki

unread,
Jul 30, 2010, 2:53:34 PM7/30/10
to web...@googlegroups.com
thanks Massimo,
but I want to use a Scintilla editor,
so I think the answer of Thadeus comes closer.
cheers,
Stef

Stef Mientki

unread,
Jul 30, 2010, 2:55:20 PM7/30/10
to web...@googlegroups.com
On 30-07-2010 05:17, Thadeus Burgess wrote:
thanks Thadeus
I think that whatt I'm looking for,
have to try some options, as for instance importing 'globals' crashes my IDE.
cheers,
Stef
Reply all
Reply to author
Forward
0 new messages