[Zope-CMF] Formlib based view of folder contents

yuppie y.2008 at wcm-solutions.de
Sat Sep 13 10:49:05 EDT 2008

Charlie Clark wrote:
> currently sitting with Tres and Jens in Saarbrücken working on a  
> formlib based view of folder_contents and we're hitting some stuff  
> that's been around for ages but might possibly no longer be required.  
> An example of this is the Contents View Filter. Does anybody actually  
> use this?

I never used it. But one major function of CMFDefault is to showcase CMF 
features. And I'm not aware of any other code that demonstrates how to 
use filtering.

> If so is it okay to drop the use of the cookie and either  
> use hidden variables as the sorting options do already or possibly  
> dump this information in the session? One of the problems with the  
> current implementation is that the cookie is hard-coded to live until  
> 2020 and will persist from one folder to the next but it's debatable  
> whether the filters you want for one folder you would want for another  
> but not the sort options.
> Our preference would be to put the filter information in hidden  
> variables.

I don't think CMFDefault should rely on sessions. Using hidden variables 
sounds fine to me.

Cheers, Yuppie

More information about the Zope-CMF mailing list