-
-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
don't break while generating tokens for names with non-ascii characters #23
Conversation
Trying again: http://jenkins.plone.org/job/pull-request-5.0/601/ |
(which could come from user input in the creator field, see plone/plone.app.widgets#120)
1d3dacb
to
e4c7d12
Compare
Fixed test, trying again: http://jenkins.plone.org/job/pull-request-5.0/603/ |
Passing |
fetching fullname can be expensive, did you try this with many users? |
I didn't change that part, I just made it encode the value to create the token when it needs to, and reduced code duplication. |
looks good, only i'm wondering why you are using the unicode_escape encoding for the token and not quoted-printable encoding, like for plone.app.vocabularies.catalog KeywordsVocabulary? |
I'd just merge, i think which encoding is used here does not make a big difference. I'd have used quoted-printable too, since its an encoding which can be used outside python world too easily. |
don't break while generating tokens for names with non-ascii characters
+1 |
I used unicode_escape out of habit...I wasn't really familiar with quoted-printable, but it looks like a good choice too. |
(which could come from user input in the creator field,
see plone/plone.app.widgets#120)