[ZPT] Re: CachingPolicyManager improvements

2005-09-05 Thread Florent Guillaume
Geoff Davis wrote: 3) FSPageTemplates have the option to return a status 304 + no content when a conditional GET is sent. This is a potential significant win for sites. How it works: When a client has an expired page in its local cache, it sends a conditional GET to the server. Basically tha

[ZPT] Help with tal:condition please

2005-09-05 Thread Jon Bowlas
Hi All, I've written the snip of code below but I cant get it work, can anyone point out my glaring error? This code should display the first readonly input field if the Id of the object is either uclattributes or uclaudjectsfilter, otherwise it should display the editable field.

Re: [ZPT] ZPT Performance Twiddling

2005-09-05 Thread Fred Drake
On 9/4/05, Tres Seaver <[EMAIL PROTECTED]> wrote: > For background: my laptop is pretty fast (I've clocked it at 50K+ > pystones), and has been able to do around 460 requests/second on a > trivial ZPT page in the root of the ZODB, measured using 'ab -n 1000 -c > 4' (ab running on the same machine)

Re: [ZPT] ZPT Performance Twiddling

2005-09-05 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Fred Drake wrote: > On 9/4/05, Tres Seaver <[EMAIL PROTECTED]> wrote: > >>For background: my laptop is pretty fast (I've clocked it at 50K+ >>pystones), and has been able to do around 460 requests/second on a >>trivial ZPT page in the root of the ZOD

Re: [ZPT] ZPT Performance Twiddling

2005-09-05 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Steve Alexander wrote: > Maybe lazily computing the loop and repeat CONTEXTS would help? I thought of that; certainly the tax for creating those contexts is collected now whether or not the template actually needs them. I'm just a wee bit unclear ho

[ZPT] Re: Help with tal:condition please

2005-09-05 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jon Bowlas wrote: > Hi All, > > I've written the snip of code below but I cant get it work, can anyone point > out my glaring error? > > This code should display the first readonly input field if the Id of the > object is either uclattributes or ucla