On 06-Oct-07, at 7:26 AM, Graham Dumpleton wrote:

>
> On Oct 6, 9:54 am, Adam Atlas <[EMAIL PROTECTED]> wrote:
>> On 5 Oct 2007, at 19:48, blaf wrote:
>>
>>> application = web.application(urls, globals())
>>
>> I think that should be:
>>
>> application = web.application(urls, globals()).wsgifunc()
>
> Presuming that that is the correct way for 0.3, have updated:
>
>   http://code.google.com/p/modwsgi/wiki/IntegrationWithWebPy

Can you say 0.3 (development version) instead of just 0.3?

I think it is better sepearate web.application like this in the example.

import web

urls = (
     '/(.*)', 'hello'
)
app = web.application(urls, globals())

class hello:
     def GET(self, name):
         i = web.input(times=1)
         if not name: name = 'world'
         for c in xrange(int(i.times)): print 'Hello,', name+'!'

application = app.wsgifunc()



--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to