[Twisted-web] Nevow: returning defer.succeed() from the data_*
or render_* method
Thomas HERVE
therve at free.fr
Wed Sep 14 01:43:16 MDT 2005
Quoting en.karpachov at ospaz.ru:
> What's wrong with the code below?
>
> def simple(ctx, data):
> return defer.succeed("Hello, world!")
> [snip]
> I get an exception
>
> "exceptions.RuntimeError: maximum recursion depth exceeded"
>
> rendering this page. It's the defer.succeed what causes this error; if I
> return bare string, all is ok.
The real question is : why do you want to return a Deferred ?
--
Thomas
More information about the Twisted-web
mailing list