[Product-Developers] Adding existing users to borg's IDepartment schema

Andrew Pasquale andrew at elytra.net
Thu Nov 20 12:37:26 UTC 2008

I'm using Products.membrane and b-org to manage departments and employees,
but I'd like to be able to have employees belong to more than one

I've been reading a description of how to accomplish this here:

Now, let's say you had a need for a Department which in addition to acting
as a group for all members inside it, also allowed some members from other
departments to be in that group. In this case, you could use a schema
extender to add a ReferenceField to the schema of Department that allowed
the Department owner to reference other Employees. You would then provide an
override adapter, perhaps subclassing
Products.borg.membership.department.Group but overriding getGroupMembers()
to append the ids of the referenced users as well as the contained ones ...
or instead of, depending on your needs.

Could anyone elaborate on how to extend the schema with a ReferenceField and
provide an override adapter?


View this message in context: http://n2.nabble.com/Adding-existing-users-to-borg%27s-IDepartment-schema-tp1556840p1556957.html
Sent from the Product Developers mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.plone.org/pipermail/plone-product-developers/attachments/20081120/873eae5b/attachment.html>

More information about the Product-Developers mailing list