[Zope-PAS] Failing to fill users properties, should it cause an error?

Jens Vagelpohl jens at dataflake.org
Fri Feb 2 14:44:03 EST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On 2 Feb 2007, at 20:23, Sidnei da Silva wrote:

> On 2/2/07, Jens Vagelpohl <jens at dataflake.org> wrote:
>> Instead of adding yet another plugin type (I think there are too many
>> as it is), shouldn't this be handled by an overridden plugin of one
>> of the standard types, like maybe an overridden properties plugin?
>>
>> I think this is a very narrowly focused functionality that only very
>> few users may ever need. Providing a more specialized "standard"
>> plugin for a specific customer with that need is what I would do
>> instead.
>
> Are you suggesting to add an IPropertiesPlugin and order it last so
> that it can look at what properties the user have and raise an
> exception?
>
> Sounds definitely hackish, but could work.

I was only thinking about a decision based on what a single plugin  
knows as it is executing. I was not even considering plugin order.  
There are a few pieces missing as well, like you'd probably need a  
special exception that a plugin can raise which would signal such a  
veto to the user folder.

jens



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFFw5SERAx5nvEhZLIRAlvYAJ0QtW/x0Qwmwp4fS+KYIOwAsbqwWgCcD6Zm
I8RQjHP9wP3Cn/e1lpRPkYY=
=Fkk4
-----END PGP SIGNATURE-----


More information about the Zope-PAS mailing list