On 9/12/05, Peter Speltz <[EMAIL PROTECTED]> wrote:
> 
> Another case, say you wanted images to display only if a user was over
> 18 .  How, from the authenticate sub, would you skip Maypole
> processing yet tell  Apache to not return the image?  . Return ERROR?
> 

If you set the template, the model phase won't be run, and your
alternate template will replace the image. Your 'template' would need
to be an image as well, because the browser asked for something in an
'img' tag.

Or, your authenticate() could return an AUTH_REQUIRED or FORBIDDEN
error and the code will be returned to the browser. (You'll need to
import these constants from somewhere).

d.


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Maypole-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/maypole-users

Reply via email to