[Product-Developers] PlonePAS.utils.[de]cleanId ?

Roel Bruggink roel at fourdigits.nl
Thu Feb 6 14:47:44 UTC 2014


Does anyone know why PlonePAS.utils.[de]cleanId still exists? aka, can I go
and delete these?

portal_membership's getPersonalPortrait uses this, but this makes getting
the portrait for users with a '-' in the userid impossible.
The _getSafeMemberId method calls cleanId and that replaces '-' with '--'.
Thus the key used for the portal_membership.portraits storage is now
different.

See
https://github.com/plone/Products.PlonePAS/blob/master/Products/PlonePAS/tools/membership.py#L445

-- 
Roel Bruggink
http://www.fourdigits.nl/mensen/roel-bruggink

Four Digits BV
http://www.fourdigits.nl tel: +31(0)26 4422700
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.plone.org/pipermail/plone-product-developers/attachments/20140206/9263016c/attachment.html>


More information about the Product-Developers mailing list