[Yanel-dev] ViewableV2 and exists()

Michael Wechner michael.wechner at wyona.com
Thu Aug 26 10:18:42 CEST 2010


Hi Cedric

Cedric Staub wrote:
> Hello everybody
>
> I'm posting a second version of my patch, this time including a flag
> that allows you to switch between strict and non-strict behaviour. 
>
> Here's how it works: I introduced a new setting (viewable.strict-exists)
> that can we switched on and off in web.xml, much like the log-access
> setting. If strict-exists is turned on, the exists() function will be
> honored correctly, e.g. if exists() returns false the resource will not 
> be shown. If it is turned off, you get the old behaviour. By default it
> is turned off, so nothing should change for you unless change something.
>
> My patch is attached to this message. Please tell me what you think.
>   

sounds very good to me. I will try to review it as soon as possible.

Thanks very much

Michael
> The only problem I see personally is that the behaviour can't be
> switched on and off for individual resources, altough I think if you 
> find a broken resource you should probably fix it anyway. And it's
> fairly simple, really, you can just add an exists() function which
> always returns true.
>
> Greetings
> Cedric
>   



More information about the Yanel-development mailing list