I am a newbie both with web2py, python and computer and web development
in general. I am trying to digest Massimo's book which I bought from
Lulu. I just want to ask anybody if they can suggest an IDE that has
intellisense that can make learning much more easier for me?
Right now, I am just trying to memorize all the functions and it is
really hard for me :(
I am desperate to learn but am wondering if anybody can suggest an IDE
that can work with web2py that has intellisense?
I hope someday Web2Py will have intellisense :)
Thanks 2 you all,
Tweety
--
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to web2py+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/web2py?hl=en.
On Jan 20, 3:19 pm, tiago almeida <tiago.b.alme...@gmail.com> wrote:
> Hi.
> You can try *pydev* which is an IDE based on eclipse for python.
> I've never used it with web2py so I can't give you more details. Google is
> your friend.
>
> See ya
> Tiago
>
> On Wed, Jan 20, 2010 at 6:24 AM, Tweety <tweetych...@gmail.com> wrote:
> > Hello,
>
> > I am a newbie both with web2py, python and computer and web development in
> > general. I am trying to digest Massimo's book which I bought from Lulu. I
> > just want to ask anybody if they can suggest an IDE that has intellisense
> > that can make learning much more easier for me?
>
> > Right now, I am just trying to memorize all the functions and it is really
> > hard for me :(
>
> > I am desperate to learn but am wondering if anybody can suggest an IDE that
> > can work with web2py that has intellisense?
>
> > I hope someday Web2Py will have intellisense :)
>
> > Thanks 2 you all,
>
> > Tweety
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "web2py-users" group.
> > To post to this group, send email to web...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > web2py+un...@googlegroups.com<web2py%2Bunsu...@googlegroups.com>
add this to the top of your file (unfortunately it has to be on every
file you want code completion).
if 0:
from gluon.tools import *
from gluon.sqlhtml import *
from gluon.sql import *
#...etc etc for every module you want to import
-Thadeus
> --
> You received this message because you are subscribed to the Google Groups "web2py-users" group.
> To post to this group, send email to web...@googlegroups.com.
> To unsubscribe from this group, send email to web2py+un...@googlegroups.com.
if 0:
from gluon.tools import *
from gluon.sqlhtml import *
from gluon.sql import *
#...etc etc for every module you want to import
in web2py/w.py
and importing
from w import *
in very file is a more compact solution.
On Jan 20, 2:26 pm, Thadeus Burgess <thade...@thadeusb.com> wrote:
> To get web2py to work with code completion. This will work with
> eclipse + pydev, or wing IDE, or netbeans + python.
>
> add this to the top of your file (unfortunately it has to be on every
> file you want code completion).
>
> if 0:
> from gluon.tools import *
> from gluon.sqlhtml import *
> from gluon.sql import *
> #...etc etc for every module you want to import
>
> -Thadeus
>
You have to specifically declare all modules that are imported that
you want available in the file that you want code completion on.
-Thadeus
I have tested a few IDEs :
- Eclipse - with pydev : I dislike eclipse for its monstrous
complexity, and I had problems getting pydev to run on the day I
tested. Abandoned.
- Aptana : Eclipse based, did not work at all... I did not try any
troubleshooting
- Netbeans : NB 6.8 supports Python development - install the python
dev plugin. create a new project and import the entire web2py/* by
selecting "create project from existing source". Code-completion
works. but also brings up hundreds of irrelevant autocomplete choices,
I guess it "goes up" all the way to Object and gets all the methods.
The other problem is NB is 100% java . My laptop with 2.4GHz Dual
Core, 4GB, Nvidia gfx & kubuntu 9.10 was fully loaded and the fans
were spinning like crazy. No hope of surviving on battery power.
- eric4 : ugly UI, autocompletion advertised but does not work, need
to retest newer release.
- SPE (Stani's Py Editor): code completion does not work properly,
works partially, otherwise nice editor
- WingWare: All features work as advertised. Not a free or OSS
software. web2py is supported http://www.wingware.com/doc/howtos/web2py
I am planning to switch to Wingware soon.
Regards
Anand
On Jan 21, 6:03 am, Thadeus Burgess <thade...@thadeusb.com> wrote:
> It is not, it will not pull in the imports of other files.
>
> You have to specifically declare all modules that are imported that
> you want available in the file that you want code completion on.
>
> -Thadeus
>
I just installed netbeans 6.8 php version, installed python plugin,
and then created a new project, added web2py/gluon, and added
applications/blogitizer. Waited some time for netbeans to index my
python 2.6.4 and my project files.
On top of my model/controller files I did.
if 0:
from gluon.sql import *
from gluon.sqlhtml import *
from gluon.html import *
db = DAL()
#optionally use table references instead of db reference
mytable = Table()
I get correct code completion that is relevant, it does populate with
the other methods from inherited classes, but those are in order of
inheritance, so the "obj" methods are at the last of the list and the
DAL methods are at the top.
-Thadeus
> >> >>intellisensethat can make learning much more easier for me?
>
> >> >> Right now, I am just trying to memorize all the functions and it is
> >> >> really hard for me :(
>
> >> >> I am desperate to learn but am wondering if anybody can suggest an IDE
> >> >> that can work with web2py that hasintellisense?
>
> >> >> I hope someday Web2Py will haveintellisense:)
-Thadeus