I was using the trunk codebase, and now with the dev codebase I got
this error:
Traceback (most recent call last):
File "/path/to/web/application.py", line 129, in wsgi
result = self.handle_with_processors()
File "/path/to/web/application.py", line 106, in
handle_with_processors
return process(self.processors)
File "/path/to/web/application.py", line 103, in process
return self.handle()
File "/path/to/web/application.py", line 95, in handle
return self._delegate(fn, self.fvars, args)
File "/path/to/web/application.py", line 233, in _delegate
return handle_class(cls)
File "/path/to/web/application.py", line 215, in handle_class
return tocall(*args)
File "/path/to/run-wsgi.py", line 13, in GET
for c in xrange(int(i.times)): print 'Hello,', name+'!'
IOError: sys.stdout access restricted by mod_wsgi
On Oct 5, 11:15 pm, Anand <[EMAIL PROTECTED]> wrote:
> 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
-~----------~----~----~----~------~----~------~--~---