Provide methods to get meta data like email, fullname aso. fast as possible even for many members.
Project description
Introduction
Note: this runs only under Plone 3, Plone 4 support comes with the next release ;)
get the FastmemberpropertiesTool
fmp_tool = queryUtility(IFastmemberpropertiesTool, ‘fastmemberproperties_tool’)
get a list of all memberproperties
member_props = fmp_tool.get_all_memberproperties()
>>> props = fmp_tool.get_all_memberproperties() >>> props <persistent.dict.PersistentDict object at 0xd9f8e6c>>>> props.items() [('maik', <persistent.dict.PersistentDict object at 0xd9fe56c>)]>>> props.keys() ['maik']>>> props['maik'] <persistent.dict.PersistentDict object at 0xd9fe56c>>>> pp(props['maik'].items()) [('visible_ids', 0), ('last_login_time', DateTime('2000/01/01')), ('language', ''), ('home_page', ''), ('listed', 'on'), ('wysiwyg_editor', 'Kupu'), ('error_log_update', 0.0), ('location', ''), ('portal_skin', ''), ('fullname', 'Maik Derstappen 2'), ('login_time', DateTime('2000/01/01')), ('email', 'maik.derstappen@derstappen-it.de'), ('ext_editor', ''), ('description', '')]
or get properties for one member by id
member_props = fmp_tool.get_properties_for_member(‘example_member’)
Changelog
1.0 (2010-04-19)
Initial release
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
Close
Hashes for inqbus.plone.fastmemberproperties-1.2b1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18330612172866cb1326343050b98af39113c44dde6fcbf79ec0d496a5b32ffa |
|
MD5 | 87bea59114baaf903978dbceed441593 |
|
BLAKE2b-256 | 2a0f57efcda58fd4a090b7f3ad3453d1483c134718a6c7d0450ce5e29e7870df |