[Zope-PAS] Re: decorator plugins

Tres Seaver tseaver at zope.com
Tue May 3 21:25:43 EDT 2005


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

J Cameron Cooper wrote:
> The file doc/framework_overview.stx talks of "decorator plugins".
> However, I can find no such thing in the code.
> 
> It does, however, search for properties plugins and add property sheets
> to the user based on those (if they have data).
> 
> Am I to assume that decorators are simply old terminology for property
> providers?

It is a somewhat ill-chosen term for the plugins which are allowed /
expected to "scribble" on the newly-fabricated PropertiedUser:  that set
includes the properties plugins, the group plugins, and the role plugins.

The name conveys a slightly off-kilter connotation, becuase it clashes
with the GoF Decorator pattern:  in this case, the plugins decorate the
user object, rather than wrapping around another component, providing
the same interface but extending it (which is the pattern's intent).


Tres.
- --
===============================================================
Tres Seaver                                tseaver at zope.com
Zope Corporation      "Zope Dealers"       http://www.zope.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCeCSWGqWXf00rNCgRAlJwAKCb/LlsbKiNSAkti/0a21azXhbOCQCdG6T+
AJKijJ0XfXGqco0hXrmAa6I=
=4ToT
-----END PGP SIGNATURE-----



More information about the Zope-PAS mailing list