Module ImportFrom alias Import alias Import alias FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad Str body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad If CompareLt NameLoad NameLoad body Return TupleLoad NameLoad BinOpSub NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad keyword Str Return TupleLoad BinOpAdd NameLoad NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Assign TupleStore AttributeStore NameLoad attr NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad NameLoad For NameStore NameLoad body If CompareLtE NameLoad Num body Expr Call AttributeLoad NameLoad attr NameLoad orelse Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad If AttributeLoad NameLoad attr body If CompareLtE NameLoad Num body Assign AttributeStore NameLoad attr Str orelse Assign TupleStore AttributeStore NameLoad attr NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Num For NameStore Call AttributeLoad NameLoad attr body If AttributeLoad NameLoad attr body AugAssignAdd NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr If AttributeLoad NameLoad attr body AugAssignAdd NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad Str body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareLtE Call NameLoad NameLoad NameLoad body Return Call AttributeLoad NameLoad attr NameLoad orelse Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad keyword NameLoad Return Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore ListComp TupleLoad NameLoad AttributeLoad NameLoad attr comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr BoolOpAnd CompareIn BinOpMod Str NameLoad NameLoad CompareIsNot NameLoad NameLoad Assign NameStore ListComp TupleLoad BinOpMod Str TupleLoad NameLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr CompareNotEq NameLoad Str Return CompareNotEq Call NameLoad NameLoad Call NameLoad NameLoad decorator_list
N/A django.utils.encoding force_unicode N/A html5lib N/A jinja2 truncate_text N/A N/A text limit killwords end N/A False ... N/A N/A Return as many characters as possible without going over the limit.

    Return the truncated text and the characters left before the limit, if any.

     N/A text N/A N/A text strip N/A text_length N/A len text N/A N/A text_length limit N/A N/A N/A text N/A limit text_length N/A text N/A N/A N/A jinja2 filters do_truncate text limit killwords end N/A N/A N/A text end 0 N/A trim N/A N/A tree limit killwords end N/A N/A N/A Truncate the text of an html5lib tree. N/A N/A tree text N/A N/A N/A N/A tree text limit N/A truncate_text N/A tree text limit killwords end N/A child tree N/A N/A N/A limit 0 N/A N/A N/A N/A tree remove child N/A N/A N/A _parsed_tree limit N/A trim child limit killwords end N/A N/A tree tail N/A N/A N/A limit 0 N/A N/A N/A tree tail N/A N/A N/A N/A tree tail limit N/A truncate_text N/A tree tail limit killwords end N/A N/A tree limit N/A text_length N/A N/A tree N/A N/A N/A Find the length of the text content, excluding markup. N/A total 0 N/A node N/A N/A tree getiterator N/A N/A N/A node text N/A N/A total N/A len N/A N/A N/A node text strip N/A N/A node tail N/A N/A total N/A len N/A N/A N/A node tail strip N/A total N/A truncate N/A N/A html length killwords end N/A False ... N/A N/A 
    Return a slice of ``html`` <= length chars.

    killwords and end are currently ignored.

    ONLY USE FOR KNOWN-SAFE HTML.
     N/A tree N/A N/A html5lib parseFragment html N/A N/A N/A text_length tree length N/A N/A N/A N/A jinja2 Markup html N/A N/A N/A short _ N/A trim tree length killwords end N/A walker N/A N/A N/A html5lib treewalkers getTreeWalker etree N/A stream N/A walker short N/A serializer N/A N/A N/A N/A html5lib serializer htmlserializer HTMLSerializer quote_attr_values True omit_optional_tags False N/A N/A N/A jinja2 Markup N/A force_unicode N/A N/A serializer render stream N/A transfield_changed N/A N/A field initial data N/A N/A N/A 
    For forms, compares initial data against cleaned_data for TransFields.
    Returns True if data is the same. Returns False if data is different.

    Arguments:
    field -- name of the form field as-is.
    initial -- data in the form of {'description_en-us': 'x',
                                    'description_en-br': 'y'}
    data -- cleaned data in the form of {'description': {'init': '',
                                                         'en-us': 'x',
                                                         'en-br': 'y'}
     N/A initial N/A N/A k N/A v localized_string N/A N/A k v N/A N/A initial iteritems N/A N/A N/A %s_ field k N/A v None N/A data N/A N/A N/A %s_%s N/A field k v N/A N/A k v N/A N/A N/A data N/A field iteritems N/A k init N/A N/A N/A set initial N/A set data N/A