[Moin-user] http_redirect from within a macro?

Neal Holtz nholtz at cee.carleton.ca
Mon Aug 15 14:52:42 EDT 2011


Hello,

Is it possible to request an http redirect from within a macro
handler?  Using moinmoin 1.9.3, when I try:

def macro_Quiz( macro, filename ):
....
          macro.request.http_redirect( 'http://www.disney.com', code=301 )
 

<<Quiz: execution failed [proxy exception for <werkzeug.wrappers.BaseResponse object at 0xaacbb4c>] (see also the log)>>


thanks
nh

-- 
Neal Holtz                             http://cee.carleton.ca/~nholtz
Dept. of Civil and Environmental Engineering,   Carleton University,   
Ottawa, Ontario, Canada K1S 5B6.               nholtz at cee.carleton.ca
Public Key:  http://holtz3.cee.carleton.ca/~nholtz/pubkey.asc
Office-Hours: http://holtz3.cee.carleton.ca/~nholtz/office-hours.html
Free-Busy: http://holtz3.cee.carleton.ca/~nholtz/free-busy.cgi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/moin-user/attachments/20110815/fcc1ccdc/attachment.html>


More information about the Moin-user mailing list