Re: [Zope-CMF] Formlib based view of folder contents

2008-09-14 Thread Charlie Clark

Am 13.09.2008 um 16:49 schrieb yuppie:

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

Good point.

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


This was our consensus yesterday. I hope it's possible to unpick the  
folder_filter_form.pt

Charlie
--
Charlie Clark
Helmholtzstr. 20
Düsseldorf
D- 40215
Tel: +49-211-938-5360
GSM: +49-178-782-6226



___
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See https://bugs.launchpad.net/zope-cmf/ for bug reports and feature requests


Re: [Zope-CMF] Formlib based view of folder contents

2008-09-13 Thread yuppie
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

___
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See https://bugs.launchpad.net/zope-cmf/ for bug reports and feature requests


[Zope-CMF] Formlib based view of folder contents

2008-09-13 Thread Charlie Clark
Hi,

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

Charlie
--
Charlie Clark
Helmholtzstr. 20
Düsseldorf
D- 40215
Tel: +49-211-938-5360
GSM: +49-178-782-6226



___
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See https://bugs.launchpad.net/zope-cmf/ for bug reports and feature requests