This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Provide methods to get meta data like email, fullname aso. fast as possible even for many members.

Project Description

Introduction

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.5 (03/09/2014)

  • Plone 4.3 compatibility [maartenkling]

1.4 (14/02/2011)

  • add remove_memberproperties to remove members from cache if they are removed in plone, fix eventhandly for membrane members on creation time [MrTango]

1.3 (14/02/2011)

  • Bugfix Release, upgrade highly recommended! [MrTango]

1.2 (06/01/2011)

  • Bugfix Release [MrTango]

1.0 (19/04/2010)

  • Initial release [MrTango]
Release History

Release History

This version
History Node

1.5

History Node

1.4

History Node

1.3

History Node

1.2

History Node

1.2b1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
inqbus.plone.fastmemberproperties-1.5.tar.gz (7.5 kB) Copy SHA256 Checksum SHA256 Source Sep 3, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting