Module Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Return Str decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr decorator_list decorator_list Assign NameStore Call NameLoad ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Raise NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body If CompareIsNot NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad Call NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr TryExcept body Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body If UnaryOpNot AttributeLoad NameLoad attr body Return NameLoad orelse Return Call NameLoad Call NameLoad NameLoad decorator_list decorator_list ImportFrom alias alias alias alias FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If NameLoad body Assign NameStore Str If AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr orelse If Call NameLoad NameLoad Str body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If NameLoad body Assign NameStore SubscriptLoad NameLoad Slice Call AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body TryExcept body If Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad orelse If Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr ListComp BinOpAdd BinOpAdd AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad comprehension NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Index Str orelse If NameLoad body Return NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Raise NameLoad Dict Str Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body TryExcept body Return Call NameLoad Call NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Lambda arguments args NameParam defaults Call AttributeLoad Call AttributeLoad NameLoad attr Str Str attr Str Str Return BinOpMod Str TupleLoad Call NameLoad Call AttributeLoad NameLoad attr Num Call NameLoad Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str Call AttributeLoad Str attr GeneratorExp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str Str attr Str Str Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Return ListComp AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr comprehension NameStore NameLoad handlers ExceptHandler body Return ListLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call Call NameLoad NameLoad NameLoad NameLoad decorator_list
N/A N/A logging N/A re django.conf settings django.db models django.utils.functional lazy django.utils.safestring mark_safe django.utils.html conditional_escape django.contrib.contenttypes.models ContentType NotSet N/A object N/A N/A  A singleton to identify unset values (where None would have meaning)  __str__ N/A N/A self N/A N/A N/A NotSet N/A __repr__ N/A N/A self N/A N/A N/A N/A N/A self __str__ N/A N/A N/A NotSet N/A NotSet Literal N/A object N/A N/A  Wrap literal values so that the system knows to treat them that way  __init__ N/A N/A self value N/A N/A N/A N/A self value value N/A N/A LazyList N/A list N/A N/A  Generic python list which is populated when items are first accessed.
     populate N/A N/A self N/A N/A N/A  Populates the list.
            This method must be overridden by subclasses.
            It is called once, when items in the list are first accessed.
         N/A NotImplementedError N/A __init__ N/A N/A self populate_function N/A None N/A N/A N/A populate_function None N/A N/A N/A self populate populate_function N/A N/A self _populated False N/A _populate N/A N/A self N/A N/A N/A  Populate this list by calling populate(), but only once.  N/A N/A N/A self _populated N/A N/A N/A N/A logging debug N/A Populating lazy list %d (%s) N/A N/A id self N/A N/A self __class__ __name__ N/A N/A N/A N/A N/A self populate N/A N/A self _populated True N/A N/A N/A Exception N/A e N/A N/A N/A N/A logging debug N/A Currently unable to populate lazy list: %s e N/A __len__ N/A N/A self N/A N/A N/A N/A N/A self _populate N/A N/A N/A N/A super LazyList self __len__ N/A __getitem__ N/A N/A self key N/A N/A N/A N/A N/A self _populate N/A N/A N/A N/A super LazyList self __getitem__ key N/A __setitem__ N/A N/A self key value N/A N/A N/A N/A N/A self _populate N/A N/A N/A N/A super LazyList self __setitem__ key value N/A __delitem__ N/A N/A self key N/A N/A N/A N/A N/A self _populate N/A N/A N/A N/A super LazyList self __delitem__ key N/A __iter__ N/A N/A self N/A N/A N/A N/A N/A self _populate N/A N/A N/A N/A super LazyList self __iter__ N/A __contains__ N/A N/A self item N/A N/A N/A N/A N/A self _populate N/A N/A N/A N/A super LazyList self __contains__ item N/A N/A LazyChoices N/A LazyList N/A N/A  Allows a choices list to be given to Django model fields which is
        populated after the models have been defined (ie on validation).
     __nonzero__ N/A N/A self N/A N/A N/A N/A N/A self _populated N/A N/A True N/A N/A N/A bool N/A len self N/A N/A django.core.urlresolvers RegexURLResolver RegexURLPattern Resolver404 get_resolver _pattern_resolve_to_name N/A N/A pattern path N/A N/A N/A match N/A N/A N/A pattern regex search path N/A match N/A N/A name N/A N/A pattern name N/A N/A name N/A pattern name N/A N/A N/A hasattr pattern _callback_str N/A N/A name N/A pattern _callback_str N/A N/A name N/A %s.%s N/A N/A N/A pattern callback __module__ N/A N/A pattern callback func_name N/A name N/A _resolver_resolve_to_name N/A N/A resolver path N/A N/A N/A tried N/A N/A match N/A N/A N/A resolver regex search path N/A match N/A N/A new_path N/A path N/A N/A N/A match end N/A pattern N/A resolver url_patterns N/A N/A N/A N/A N/A isinstance pattern RegexURLPattern N/A N/A name N/A _pattern_resolve_to_name pattern new_path N/A N/A N/A isinstance pattern RegexURLResolver N/A N/A name N/A _resolver_resolve_to_name pattern new_path N/A N/A N/A Resolver404 N/A e N/A N/A N/A N/A tried extend N/A N/A N/A N/A N/A pattern regex pattern t N/A t N/A N/A N/A e args N/A 0 N/A tried N/A N/A name N/A N/A name N/A N/A N/A tried append N/A N/A pattern regex pattern N/A Resolver404 N/A tried path tried new_path N/A resolve_to_name N/A N/A path urlconf N/A None N/A N/A N/A N/A N/A _resolver_resolve_to_name N/A get_resolver urlconf path N/A N/A N/A Resolver404 N/A N/A None N/A _replace_quot N/A N/A match N/A N/A N/A unescape N/A N/A N/A v N/A N/A N/A N/A N/A v replace &quot; " replace &amp; & N/A N/A <%s%s> N/A N/A unescape N/A N/A match group 1 N/A unescape N/A N/A match group 3 N/A escape_tags N/A N/A value valid_tags N/A N/A N/A  Strips text from the given html string, leaving only tags.
        This functionality requires BeautifulSoup, nothing will be 
        done otherwise.

        This isn't perfect. Someone could put javascript in here:
              <a onClick="alert('hi');">test</a>

            So if you use valid_tags, you still need to trust your data entry.
            Or we could try:
              - only escape the non matching bits
              - use BeautifulSoup to understand the elements, escape everything else and remove potentially harmful attributes (onClick).
              - Remove this feature entirely. Half-escaping things securely is very difficult, developers should not be lured into a false sense of security.
     N/A value N/A conditional_escape value N/A valid_tags N/A N/A tag_re N/A N/A re compile N/A &lt;(\s*/?\s*(%s))(.*?\s*)&gt; N/A N/A | join N/A N/A N/A re escape tag N/A tag valid_tags N/A value N/A N/A tag_re sub _replace_quot value N/A value N/A N/A N/A N/A value replace &lt;!-- <!-- replace --&gt; --> N/A N/A mark_safe value N/A _get_seo_content_types N/A N/A seo_models N/A N/A N/A  Returns a list of content types from the models defined in settings (SEO_MODELS)  N/A N/A N/A N/A N/A N/A N/A N/A ContentType objects get_for_model m id N/A m seo_models N/A N/A N/A N/A N/A N/A get_seo_content_types N/A N/A seo_models N/A N/A N/A N/A N/A lazy _get_seo_content_types list seo_models N/A