I appreciate you all (Dave especially) being patient with my
fundamental ignorance of how the browser has to hit the server again
for css, images , etc.  It makes perfect sense no that i think about
it.

I wonder if a regex would do at the appropriate place in authenticate: 

return DECLINED if $r->template =~ /.+(.css|.html|.htm|.gif|.png|.jpg)$/;

It would probabl still be better to have the httpd.conf handle images,
css, and otherthings that did not need to be authorized or
authenticated .  However for static pages that may need to be
authorized and authenticated,  maybe something like this could work.

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?

thanks



On 9/11/05, Frank Carnovale
<[EMAIL PROTECTED]> wrote:
> Yes, I thought that.
> 
> It makes no sense passing static browser-side resources (images, javascripts, 
> css) through the Maypole logic, and therefore through the TT logic, which has 
> to scan for [% %] sections.  Unless you really want them all to fall into the 
> same Maypole security regime, as a practical solution I suggest arranging 
> your URL namespace to keep /scripts, /styles and /images outside the 
> /mymaypoleapp handler.
> 
> frank
> 
> >>> Peter Speltz <[EMAIL PROTECTED]> 09/09/05 1:24 PM >>>
> On 9/8/05, Dave Howorth <[EMAIL PROTECTED]> wrote:
> > Peter Speltz wrote:
> > > What I still do not understand is why he used "CSS" as and example of
> > > a static page..
> >
> > He's thinking of things like the maypole.css file that comes with the
> > example templates, I believe.
> >
> 
> Ahhh.
> I just tried  /localhost/beerdb/maypole.css and the browser  displayed
> it.  So he is talking about how to deal with files in you template
> directory that are *NOT* to be viewed as a web page.  I thought he was
> talking about how to make a "static" page display quicker by cutting
> skipping Maypole al together.
> 
> Did anyone else think that?
> 
> > Cheers, Dave
> >
> >
> > --
> > No virus found in this outgoing message.
> > Checked by AVG Anti-Virus.
> > Version: 7.0.344 / Virus Database: 267.10.19/92 - Release Date: 07/09/05
> >
> >
> >
> > -------------------------------------------------------
> > 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
> >
> 
> 
> --
> pjs
> 
> 
> -------------------------------------------------------
> 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
> 
> 
> 
> This message (including any attachments) is intended solely for the addressee 
> named and may contain confidential and privileged information. If you are not 
> the intended recipient, please delete it and notify the sender.
> Views expressed in this message are those of the individual sender, and are 
> not necessarily the views of the Independent Transport Safety and Reliability 
> Regulator (ITSRR). Whole or parts of this e-mail may be subject to copyright
> of ITSRR or third parties. You should only re-transmit, distribute or use the 
> material for commercial purposes if you are authorised to do so.
> 
>                         Visit us at:
> 
> www.transportregulator.nsw.gov.au  or  Telephone: (02) 8263 7100
> 
> 
> 
> 
> -------------------------------------------------------
> 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
> 


-- 
pjs


-------------------------------------------------------
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