r252348 - in PASPlugins/SQLPASPlugin/trunk: . plugins
"David Glick" <svn-changes-z4DKO/[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.collective.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: davisagli
Date: Mon Apr 29 21:08:56 2013
New Revision: 252348
Modified:
PASPlugins/SQLPASPlugin/trunk/HISTORY.txt
PASPlugins/SQLPASPlugin/trunk/plugins/usermanager.py
Log:
avoid handling name parameter
Modified: PASPlugins/SQLPASPlugin/trunk/HISTORY.txt
==============================================================================
--- PASPlugins/SQLPASPlugin/trunk/HISTORY.txt (original)
+++ PASPlugins/SQLPASPlugin/trunk/HISTORY.txt Mon Apr 29 21:08:56 2013
@@ -4,6 +4,11 @@
SQLPASPlugin - unreleased
+ - Ignore the 'name' keyword when passed to enumerateUsers.
+ It is passed by recent versions of Plone, but we can't
+ query it efficiently.
+ [davisagli]
+
- Encode unicode values passed to updateUserInfo as utf8.
[davisagli]
Modified: PASPlugins/SQLPASPlugin/trunk/plugins/usermanager.py
==============================================================================
--- PASPlugins/SQLPASPlugin/trunk/plugins/usermanager.py (original)
+++ PASPlugins/SQLPASPlugin/trunk/plugins/usermanager.py Mon Apr 29 21:08:56 2013
@@ -176,6 +176,10 @@
"""
view_name = createViewName('enumerateUsers', id or login)
+ # name is added by recent versions of plone.app.controlpanel,
+ # but we don't handle it
+ if 'name' in kw:
+ del kw['name']
# filtering by custom properties is not supported
if id is None and login is None:
return []
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr