[Zope-CMF] Once again: CMF-in-CMF
Mon, 22 Apr 2002 19:19:25 +0200
Its an often used subject but a new problem - I think.
I am making a customer portal where customer can have different sites ins=
normal CMF Site. Each customer must use their own UserFolder agains which=
users of their sites authenticate.
To do this I have created:
- NPCustomerFolder derived from PortalFolder.
- NPCustomerObject derived from PortalFolder, PortalContent and=20
- NPPortal derived from PortalObjectBase and DefaultDublinCoreImpl.
The setup looks something like this:
|_portal (CMF Site)
| |_site_1 (NPPortal)
| |_site_2 (NPPortal)
As the Member data is tied to members in a customer object I have also cr=
a modified portal_memberdata tool which saves the member data in the cust=
Everything works ok for users defined in the user folder in an=20
NPCustomerObject but for users defined in acl_users in e.g. Zope root I g=
all kinds of errors where CMFCore.MembershipTool.createMemberDataArea rep=
that the aq_inner attribute is missing and so on.
I'm not asking for a shrinkwrap solution just maybe for some guidelines t=
what I should be aware of when creating such a setup.
I have read a lot of source in CMFCore, CMFDefault, AccessControl etc. bu=
still confused. For example: where does the membership tool find users in=
User Folders higher in the folder hierarchy when __getPUS() only returns =
first User Folder and have does SecurityManager find the authenticated us=
and what came first - the chicken or the egg?
Sorry for the lengthy post - I'll dig some more in the source :-)