[Zope-PAS] proposal: IUserAdder plugins
Jens Vagelpohl
jens at dataflake.org
Sat May 5 18:45:41 EDT 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 5 May 2007, at 17:00, Wichert Akkerman wrote:
> I think that a better approach would be to use events. I made a branch
> a while ago which has an event which is fired when a new user is
> created
> which solves your use case perfectly. That branch is still missing
> test
> for the events though. Someday I need to write those and offer it
> up for
> merging.
Using events does indeed sound like the best solution, not just for
this particular use case. I've been in quite a few situation where
contortions were needed because one plugin needed to communicate with
another one, which is pretty evil. Events are a good solution to any
problem like that.
jens
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
iD8DBQFGPQkVRAx5nvEhZLIRAu58AJ9Vkd6QKmq8+FYrRpg0UoM555R76wCcD8tX
d9kFyZmTaeexH+24uoW1mzU=
=k9SE
-----END PGP SIGNATURE-----
More information about the Zope-PAS
mailing list