Hi Anand,
thanks for your tips. it's helpful.
I have fixxed it via the api documentation.
To be honest, the example is right that in http://webpy.org/ (src:
http://webpy.org/src/todo-list)
maybe it need to be updated.
I found it's hard to get the detailed guide about the webpy API on
webpy.org. I can only read the source code of web.py to verfiy my
guess.
On Jan 3, 2:42 pm, Anand Chitipothu <[email protected]> wrote:
> On Sun, Jan 3, 2010 at 8:07 PM, muare <[email protected]> wrote:
> > Hi,
>
> > I am a newbie of web.py and python ;-(.
>
> > I have read the demo of web.py and find almost every example has codes
> > like below:
>
> > if __name__ == '__main__': web.run(tidy)
>
> > but I can't find the where "web.run" is defined in the code. I have tried
> > google,stackoverflow to find the answer. but nothing is found.
>
> you must be looking at an example using web.py 0.2. In version 0.3
> web.run has been removed.
>
> The right way to it is:
>
> app = web.application(urls, globals())
> app.run()
>
> Look at the example onhttp://webpy.org/to get a better idea.
--
You received this message because you are subscribed to the Google Groups
"web.py" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/webpy?hl=en.