On 9/9/05, Dave Howorth <[EMAIL PROTECTED]> wrote:
> David Baird wrote:
> > On 9/9/05, Dave Howorth <[EMAIL PROTECTED]> wrote:
> >>What's confusing me? Well first, the comment - it's ALWAYS a template
> >>isn't it? Never a static page.
> >
> > If there's an error during call_authenticate(), then error() will get
> > called, and at that point you might still be dealing with a static
> > page.
> 
> Standard Maypole never deals with static pages, does it? It always puts
> something into $r->template and tries to run the template processor on
> it. Or it dies first :)  The only way static pages can be involved is if
> there's custom code in the application.

>From what i  can tell if you go to beedb/static.html  then the
static.html is processed by the  view   --
$r->view_object->process(static.html)  no matter what.

>  I still think that:
> 
>    return -1 unless @{ $r->{objects} || [] };
> 
> shouldn't be there. I'll ponder on it some more.
> 

I think it is a rough test alright. To me it seems that this just is a
very feable attempt at making the error message make sense. If you
have objects then you will get "Template not found" error.  If you
dont'  , then you will get the default

I'll take it out and play with it a while.

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-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/maypole-devel

Reply via email to