RE: deferred and macros
"Alexander Schremmer" <[email protected]> Tue, 21 Dec 2004 17:37:47 +0100
| Newsgroups | gmane.comp.web.wiki.moin.devel |
|---|---|
| Message-ID | <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAAoJt1vBbz40CDAg5sGRmjl8KAAAAQAAAAPZkrpLJ2Qkmdb3w+5z8SvgEAAAAA@alexanderweb.de> |
William Waites wrote on Tuesday, December 21, 2004 5:02 PM CEST:
> What I would like to be able to do is, running MoinMoin inside
> Twisted, write a macro that looks like this:
>
> def execute(macro, args):
> from twisted.internet import defer
> return defer.succeed("Bonjour le monde!")
So what do you want to do exactly? You want to have a code object which gets
evaluated on page view?
> However having macros able to return deferreds is useful since
> it makes it possible to make many calls to the twisted framework
> from within MoinMoin.
Which exactly?
> But it is difficult because right now the
> MoinMoin architecture expects calls like this to be synchronous
Between which events do you want your code to be asynchronous?
> So I'm not sure what my question is.
I second that. ;-)
Kind regards,
Alexander
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/