On Wed, Dec 15, 2010 at 12:34:28PM -0800, Bill Walz wrote:
> Try this to shutdown the autohandler.
> 
> <%flags>
>  inherit => undef
> </%flags>
> 
> or if you want the /syshandler to fire and not the autohandler, etc.
> 
> <%flags>
>  inherit => '/syshandler'
> </%flags>
> 

Actually my problem was attempting to subexec() from the base_comp()
instead of the autohandler. For my return() to have been noticed in the
autohandler I would have had to (at least) check for call_next()'s
return value.

subexec()ing from the autohandler works fine.

Thanks in any case for your answer,

> 
> On 12/15/2010 12:00 PM, Louis-David Mitterrand wrote:
> >Hi,
> >
> >In the middle of an<%init>  I'm trying to subexec() another component
> >and send its output instead of the original component's. But I'm having
> >trouble with the first component's autohandler sending its output:
> >
> >     <%init>
> >
> >     ## newcomp's output is nested/mixed to autohandler first run
> >     $m->subexec('newcomp.md', %ARGS);
> >     return;
> >
> >     ## using abort I get no output at all
> >     $m->subexec('newcomp.md', %ARGS);
> >     $m->abort;
> >
> >     ## however this works fine
> >     $r->internal_redirect('/selector.md?'.$r->args);
> >     $m->auto_send_headers(0);
> >     $m->clear_buffer();
> >     $m->abort;
> >
> >     </%init>
> >
> >The apache internal_redirect works well, but I'd like to understand how
> >to use subexec to completely replace original output.
> >
> >Any idea how I should call subexec in that case?
> >
> >Thanks,
> >
> >------------------------------------------------------------------------------
> >Lotusphere 2011
> >Register now for Lotusphere 2011 and learn how
> >to connect the dots, take your collaborative environment
> >to the next level, and enter the era of Social Business.
> >http://p.sf.net/sfu/lotusphere-d2d
> >_______________________________________________
> >Mason-users mailing list
> >[email protected]
> >https://lists.sourceforge.net/lists/listinfo/mason-users
> 

------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to