Re: [Maypole] Re: Maypole responding to requests very slowly (or, how to get just one associated record instead of getting the world)

From: Peter Speltz (peterspeltz at yahoo.com)
Date: Thu Dec 02 2004 - 19:22:50 GMT


First i replied just to sender, then replied to wrong list, now replying to
correct list. Sorry bout the duplicates.

--- Dave Howorth <dhoworth at mrc-lmb.cam.ac.uk> wrote:

> I wrote:
> > The first one is the classmetadata and I think you're both agreed that
> > it would be nice to have a means to turn it off. Somehow making it
> > evaluate lazily would be another option. Ironic perhaps, but turning it
> > into an object is my first thought :)
>
> 'It' is very ambiguous. 'It' was obviously late at night. 'It' is
> classmetadata.cgi :)
>
> Sorry, Dave
>

I was thinking in the view::base where "IT" is created of doing something like
this:

    . . .
    cgi => $r->template_args{classmetadata_cgi} || { $class->to_cgi }
    . . .

Then the model's sub can make them if it wants or set it to "1" to get none or
do nothing and get them.

>
> _______________________________________________
> maypole mailing list
> maypole at lists.netthink.co.uk
> http://lists.netthink.co.uk/listinfo/maypole
>

=====
pjs

                
__________________________________
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo

_______________________________________________
maypole mailing list
maypole at lists.netthink.co.uk
http://lists.netthink.co.uk/listinfo/maypole



This archive was generated by hypermail 2.1.3 : Thu Feb 24 2005 - 22:25:57 GMT