[web2py] Re: Reference Manual for Web2Py

2012-02-23 Thread Anthony
Aside from the book, there's the Epydoc auto-generated source code 
documentation: http://www.web2py.com/examples/static/epydoc/index.html. You 
might also find it helpful to just explore the source code directly. You 
can use any IDE, and if you want auto-completion for the web2py API, you 
can add the following at the top of your model and controller files:

if 0:
from gluon import *

The /web2py/gluon/__init__.py file exposes the entire web2py API, including 
the request, response, and session global objects, so the above import 
makes everything visible to the IDE. The "if 0:" ensures the import doesn't 
actually happen when your code is run (you don't really need it), but the 
IDE will still analyze the import and provide auto-completion. (Actually, 
only trunk includes the updated code to expose request, response, and 
session via the above import trick, so you'll have to use trunk or wait for 
the upcoming release for that to work fully.)

There's also the rad2py IDE (http://code.google.com/p/rad2py/), which is 
designed to work with web2py.

Note, aside from the list of HTML helpers and form validators, the API is 
actually fairly compact (http://web2py.com/books/default/chapter/29/4#API). 

Anthony

On Thursday, February 23, 2012 11:25:52 AM UTC-5, Sathvik Ponangi wrote:
>
> Is there a PHP like reference manual for Web2Py? 
> Or maybe an IDE that'll help a newbie, ex-PHPite like me build faster?
>


[web2py] Re: Reference Manual for Web2Py

2012-02-23 Thread pbreit
As an ex-PHPer myself, I find IDEs more of a hindrance. Python is a concise 
language and Web2py a concise framework.

[web2py] Re: Reference Manual for Web2Py

2012-02-23 Thread lyn2py
pbreit, what program do you use to code with web2py?
Do you use the admin interface?

On Feb 24, 5:14 am, pbreit  wrote:
> As an ex-PHPer myself, I find IDEs more of a hindrance. Python is a concise
> language and Web2py a concise framework.


[web2py] Re: Reference Manual for Web2Py

2012-02-23 Thread pbreit
I use a good text editor, TextMate for Mac. The only fancy features I think 
are really necessary are a nice tree view of my directory, smart indenting 
and syntax highlighting. I try an IDE with code completion every few months 
and find it very distracting. The admin interface is not really suitable 
for extensive editing.

Re: [web2py] Re: Reference Manual for Web2Py

2012-02-23 Thread Sathvik Ponangi
Thank you Anthony :)

On Thu, Feb 23, 2012 at 10:29 PM, Anthony  wrote:

> Aside from the book, there's the Epydoc auto-generated source code
> documentation: http://www.web2py.com/examples/static/epydoc/index.html.
> You might also find it helpful to just explore the source code directly.
> You can use any IDE, and if you want auto-completion for the web2py API,
> you can add the following at the top of your model and controller files:
>
> if 0:
> from gluon import *
>
> The /web2py/gluon/__init__.py file exposes the entire web2py API,
> including the request, response, and session global objects, so the above
> import makes everything visible to the IDE. The "if 0:" ensures the import
> doesn't actually happen when your code is run (you don't really need it),
> but the IDE will still analyze the import and provide auto-completion.
> (Actually, only trunk includes the updated code to expose request,
> response, and session via the above import trick, so you'll have to use
> trunk or wait for the upcoming release for that to work fully.)
>
> There's also the rad2py IDE (http://code.google.com/p/rad2py/), which is
> designed to work with web2py.
>
> Note, aside from the list of HTML helpers and form validators, the API is
> actually fairly compact (http://web2py.com/books/default/chapter/29/4#API
> ).
>
> Anthony
>
> On Thursday, February 23, 2012 11:25:52 AM UTC-5, Sathvik Ponangi wrote:
>>
>> Is there a PHP like reference manual for Web2Py?
>> Or maybe an IDE that'll help a newbie, ex-PHPite like me build faster?
>>
>


-- 
Sathvik Ponangi


Re: [web2py] Re: Reference Manual for Web2Py

2012-02-23 Thread Johann Spies
I have used vim, emacs (aquamacs when working on a Mac), eclipse,
textwrangler (on Mac), bluefish and maybe some more but I always come back
to emacs/aquamacs (with bluefish when I work with html-files) when I have
to do a lot of work.  I must say vim and emacs with the proper setup for
python cannot easily be beaten.

Regards
Johann
-- 
Because experiencing your loyal love is better than life itself,
my lips will praise you.  (Psalm 63:3)