A facade storage layer for Archetypes delegating to the Plone memberdata tool
Project description
Introduction
A facade storage for Archetypes which delegates to a Plone site’s Memberdata Tool for storing content item field values as memberdata properties.
This heavily relies on name magic. It is assumed that the correponding member and content instances have exactly the same id.
The use case driving its development has been to support custom Archetypes-based content types which can be used as home folders for members and mirroring some of the member properties. That way, people can change member properties by editing their home folder settings.
archetypes.memberdata is used in production on http://www.incf.org.
Usage
In your Archetypes schema definition you can use the MemberPropertyField instead of a regular StringField to get and set the field’s value in a corresponding member property. Per default, a property with the same name as the field is used unless the member_property_id is set to point to a different property.
For other field types one can use MemberdataStorage as well as long as the data type can be handled by the member data tool.
Changelog
1.0 - 2009-04-03
Adding test suite [raphael].
Adding MemberpropertyField for convenience [raphael].
Breaking this out of ResearchCommunitySite to make it more accessible (from r15354 - yes, no changes in three years) [raphael].
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for archetypes.memberdatastorage-1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef2d8a7b4d06287001113b0988cbd588d1c988952b4a77af78dc964be6b45d00 |
|
MD5 | 88dcbcaeefdb2468cf48b72eb704a5fc |
|
BLAKE2b-256 | 55d29de209ec6621713ee0d196e08c4ed75dc5559999eed394da3b15c647a1ee |