[Zope-CMF] Re: portal_metadata

yuppie schubbe at web.de
Thu Jan 15 09:17:37 EST 2004


Hi!


Tres Seaver wrote:
> The reason the policies aren't enforced by default is that many sites 
> would differ about how and when to enforce them.  One site might want 
> the transaction which attempted to save non-conforming values to fail, 
> for instance, while another might allow the values to be saved (perhaps 
> with a warning);  the second site might then check the constraints only 
> before some workflow transition.

You are talking about hard-coding this in the mutator methods?

There are other ways to enforce policies. I think it would be quite 
useful to have a validation machinery in CMF that allows to implement 
different enforcement policies. And an example implementation in CMFDefault.


Cheers,
	yuppie





More information about the Zope-CMF mailing list