Project: pydev extension for web2py in Eclipse

280 views
Skip to first unread message

Álvaro J. Iradier

unread,
Apr 29, 2011, 4:51:37 AM4/29/11
to web...@googlegroups.com
Hi,

I am trying to develop an extension (a Jython script[1]) for Pydev[2] to improve web2py integration into Eclipse (I'm not sattisfied with the existing recipes).

I've just started, and you can follow what's going on on the following thread in the Pydev-code mailing list:


If someone is interested on helping, please let me know, I don't have much time available to work on it.

Greets.

[2] http://pydev.org/

--
Álvaro J. Iradier Muro
Departamento de Desarrollo
alvaro....@polartech.es

Polar Technologies
T +34 976 527 952
F +34 976 466 125
www.polartech.es

Antes de imprimir este mensaje, por favor, compruebe que es verdaderamente
necesario. El medioambiente es cosa de todos.

AVISO LEGAL
Este mensaje, y en su caso, cualquier fichero anexo al mismo, puede contener
información confidencial, siendo para uso exclusivo del destinatario,
quedando prohibida su divulgación, copia o distribución a terceros sin la
autorización expresa del remitente. Si Vd. ha recibido este mensaje
erróneamente, se ruega lo notifique al remitente y proceda a su borrado.
Gracias por su colaboración.

Álvaro J. Iradier

unread,
Jun 9, 2011, 1:27:32 PM6/9/11
to web2py-users
After some talking to the Pydev author, we've managed to make a patch
to a file in Pydev that calls the build_environment() and
run_models_in() functions from web2py, and adds the resulting
environment into the __builtins__. The result is you "automagically"
get a fully working web2py environment in eclipse, with
autocompletion, etc.

You can follow the development on this feature request on Pydev issue
tracker:

https://sourceforge.net/tracker/?func=detail&atid=577332&aid=3294887&group_id=85796

The procedure is quite manual yet, I hope it can be improved so it is
customizable per project.

Comments and help are welcome!


Greets.

On 29 abr, 10:51, Álvaro J. Iradier <alvaro.irad...@polartech.es>
wrote:
> Hi,
>
> I am trying to develop an extension (a Jython script[1]) for Pydev[2] to
> improve web2py integration into Eclipse (I'm not sattisfied with the
> existing recipes).
>
> I've just started, and you can follow what's going on on the following
> thread in the Pydev-code mailing list:
>
> https://sourceforge.net/mailarchive/forum.php?thread_name=BANLkTik-Sj...
>
> If someone is interested on helping, please let me know, I don't have much
> time available to work on it.
>
> Greets.
>
> [1]http://pydev.org/manual_articles_scripting.html
> [2]http://pydev.org/
>
> --
> Álvaro J. Iradier Muro
> Departamento de Desarrollo
> alvaro.irad...@polartech.es

Ross Peoples

unread,
Jun 9, 2011, 1:54:59 PM6/9/11
to web...@googlegroups.com
That would be awesome. I tried using Eclipse + PyDev once, but it just felt too big and complicated, especially since it didn't know anything about web2py and couldn't do autocomplete. If this works, I may have to reevaluate Eclipse + PyDev again.

Massimo Di Pierro

unread,
Jun 9, 2011, 2:11:43 PM6/9/11
to web2py-users
Does this require any modification to web2py?

On Jun 9, 12:27 pm, Álvaro J. Iradier <airad...@gmail.com> wrote:
> After some talking to the Pydev author, we've managed to make a patch
> to a file in Pydev that calls the build_environment() and
> run_models_in() functions from web2py, and adds the resulting
> environment into the __builtins__. The result is you "automagically"
> get a fully working web2py environment in eclipse, with
> autocompletion, etc.
>
> You can follow the development on this feature request on Pydev issue
> tracker:
>
> https://sourceforge.net/tracker/?func=detail&atid=577332&aid=3294887&...

Pierre Thibault

unread,
Jun 9, 2011, 2:43:22 PM6/9/11
to web...@googlegroups.com

Álvaro J. Iradier

unread,
Jun 9, 2011, 5:11:13 PM6/9/11
to web2py-users
Yes, I checked that project, but these way would require not adding
anything at the headers, and it also parses the models file. It
requires no modification in web2py, just in Pydev.

Talking to the pydev author in the pydev mailing list, he might
consider including support for web2py if we manage to get it working
fine, and we are quite there.

Greets.

On 9 jun, 20:43, Pierre Thibault <pierre.thibau...@gmail.com> wrote:
> You can use this project:http://code.google.com/p/neo-insert-imports/to
> add automatically the necessary imports for the static analyzer.
>
> --
>
> A+
>
> -------------
> Pierre
> My blog and profile
> (http://pierrethibault.posterous.com)<http://pierrethibault.posterous.com>
> YouTube page (http://www.youtube.com/user/tubetib)<http://www.youtube.com/user/tubetib>
> Twitter (http://twitter.com/pierreth2) <http://twitter.com/pierreth2>

ra3don

unread,
Jun 9, 2011, 9:19:55 PM6/9/11
to web2py-users
Glad to see the work is coming along. I really appreciate the effort
on this. Would be great to see this bundled with Pydev.

Bruno Rocha

unread,
Jun 9, 2011, 10:52:22 PM6/9/11
to web...@googlegroups.com
Are you aware about the changes included in the latest web2py version? 

I am talking specially about the new importer, the 'current' object and the models subfolders.

Is that being considerated?

Álvaro J. Iradier

unread,
Jun 13, 2011, 2:40:47 PM6/13/11
to web2py-users
No, I wasn't aware... sorry, I can't follow the current web2py
development at that detail. Could you point me to the information or
make a small brief? It sounds like it could be quite useful.

Greets.

On 10 jun, 04:52, Bruno Rocha <rochacbr...@gmail.com> wrote:
> Are you aware about the changes included in the latest web2py version?
>
> I am talking specially about the new importer, the 'current' object and the
> models subfolders.
>
> Is that being considerated?
>

Álvaro José Iradier

unread,
Jan 13, 2013, 12:02:51 PM1/13/13
to web...@googlegroups.com
Hi, I get back to this thread again as I recently got a notification from the feature request on Sourceforge.I had it nearly forgotten, but I think it is still interesting and it looks like the author of Pydev is thinking about including the web2py support.

You can see my original proposal and the Pydev author comments here on Sourceforge:


I do not know if the same approach applies after the changes commented by Bruno, but I think it would be worth to try.

Greets.

Angelo Compagnucci

unread,
Jan 17, 2013, 5:27:06 AM1/17/13
to web...@googlegroups.com
Any news on this?


2013/1/13 Álvaro José Iradier <aira...@gmail.com>
Reply all
Reply to author
Forward
0 new messages