Ticket #9708 (closed Bug: fixed)

Opened 7 years ago

Last modified 7 years ago

IIDNormalizer does not generate valid CSS ID or Python variable name as specified in docstring

Reported by: naro Owned by: hannosch
Priority: minor Milestone: 4.0
Component: Internationalization Version:
Keywords: Cc:


plone.i18n.IIDNormalizer docstring:

    This normalizer can normalize any unicode string and returns a
    version that only contains of ASCII characters allowed in a typical
    scripting or programming language id, such as CSS class names or Python
    variable names for example.

IIDNormalizer takes filenames into account. If text matches a filename, result is normalized version of name.ext which is not valid CSS ID nor valid Python identifier.

Change History

comment:1 Changed 7 years ago by esteele

  • Milestone changed from 4.x to 4.0

comment:2 Changed 7 years ago by hannosch

  • Owner set to hannosch

comment:3 Changed 7 years ago by hannosch

  • Status changed from new to closed
  • Resolution set to fixed

(In [32644]) Fixed the IIDNormalizer to generate valid CSS ID or Python variable names as specified in its docstring. It no longer tries to preserve filename extensions. This closes #9708.

Note: See TracTickets for help on using tickets.