Back to index

plone3  3.1.7
Public Member Functions
CMFPlone.UnicodeSplitter.CaseNormalizer Class Reference

List of all members.

Public Member Functions

def process

Detailed Description

Definition at line 89 of file UnicodeSplitter.py.


Member Function Documentation

Definition at line 91 of file UnicodeSplitter.py.

00091 
00092     def process(self, lst):
00093         result = []
00094         for s in lst:
00095             # This is a hack to get the normalizer working with
00096             # non-unicode text.
00097             try:
00098                 if not isinstance(s, unicode):
00099                     s = unicode(s, enc)
00100             except (UnicodeDecodeError, TypeError):
00101                 result.append(s.lower())
00102             else:
00103                 result.append(s.lower().encode(enc))
00104         return result
00105 
try:

Here is the call graph for this function:


The documentation for this class was generated from the following file: