[Zope-CMF] [dev] renaming /Members: a small proposal

Kari-Hans Kommonen khk@uiah.fi
Sun, 9 Feb 2003 17:11:07 +0200


This is great but would it be possible to add a bit:

Since the CMF already supports the option of having the user folder 
in a container above the CMF itself, it should be possible to specify 
that the members_folder could be in the same container as the 
acl_users the portal is using. This could be a true/false property as 
checkbox wherever the acl_users location gets set. (I have not looked 
at 1.4)

..

I have this as an acute problem. We plan to run several CMF instances 
in the same server where we'd like users to register only once and 
easily cross-post materials.

It would be great not have to customize CMF too much... I am now 
planning to uuse acl_users above the CMF instances, but I have to 
find a way to get the sites to use a common Members folder.

kh

At 12:29 +0100 9.2.2003, Yuppie wrote:
>Hi!
>
>
>Florent Guillaume wrote:
>>On Fri, 2003-01-24 at 19:18, Andy McKay wrote:
>>
>>>>Doing this in a easily parameterizable [is that a word?] way is simple,
>>>>but the code has to be written. I think it's on the list of things to do
>>>>soon.
>>>
>>>Maybe we could add this to 1.4, its been discussed a few times. Is 
>>>doing this sometime in the next month or so feasible?
>>
>>
>>The backend part definitely, it's a 15 minutes work.
>>What UI do you envision? A property in portal_properties, called
>>'members_folder', containing the name of the attribute at the root of
>>the CMF and defaulting to 'Members'? Or containing something more
>>general, like an arbitrary path relative to the portal (overkill I
>>think)?
>
>I'd prefer to have this on the 'Configuration' tab of 
>portal_membership, there is already the 'setMemberareaCreationFlag' 
>UI. But I don't know if there is a policy to move all settings to 
>portal_properties.
>
>A small proposal:
>=================
>
>I'd like to have this default value in MembershipTool:
>
>     membersfolder_id = 'Members'
>
>and add these methods to the portal_membership interface:
>
>     def setMembersFolder(id='Members'):
>         """ Set the members folder object.
>
>         The members folder has to be in the same container as the
>         membership tool. id is the id of an existing folder. If id is
>         None, member areas are disabled.
>
>         Permission -- Manage portal
>         """
>
>     def getMembersFolder():
>         """ Get the members folder object.
>
>         If no members folder is set or the set folder id doesn't exist,
>         None is returned.
>
>         Permission -- Always available
>
>         Returns -- Members folder object or None
>         """
>
>If someone wants something more general, he just needs to override 
>these  two methods.
>
>
>Comments are welcome.
>
>Cheers,
>
>Yuppie
>
>
>
>
>_______________________________________________
>Zope-CMF maillist  -  Zope-CMF@zope.org
>http://mail.zope.org/mailman/listinfo/zope-cmf
>
>See http://collector.zope.org/CMF for bug reports and feature requests