Module Import alias ImportFrom alias alias ImportFrom alias Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad TupleLoad Str NameLoad body Expr Str If UnaryOpNot Call NameLoad Str body Return If BoolOpAnd NameLoad NameLoad body Raise Call NameLoad Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore ListComp AttributeLoad NameLoad attr comprehension NameStore NameLoad Assign NameStore BoolOpOr NameLoad ListLoad Assign NameStore Call NameLoad Lambda arguments args NameParam defaults UnaryOpNot CompareIn NameLoad NameLoad NameLoad ImportFrom alias Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str ImportFrom alias ImportFrom alias alias Assign NameStore AttributeLoad NameLoad attr If Call NameLoad NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore NameLoad If CompareIn NameLoad AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad If Call AttributeLoad NameLoad attr body If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad For NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Dict BinOpMod Str NameLoad NameLoad For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Str decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore IfExp Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad If NameLoad body TryExcept body Assign NameStore BoolOpOr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Return NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Return NameLoad orelse Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Str NameLoad Return Call AttributeLoad Call AttributeLoad NameLoad attr attr Str decorator_list
N/A N/A re django.contrib.sites.models SITE_CACHE Site compat.dj is_installed N/A SITE_VAR site__exact reversion_register N/A N/A model_class fields follow format exclude_fields N/A None N/A json None N/A N/A CMS interface to reversion api - helper function. Registers model for
    reversion only if reversion is available.

    Auto excludes publisher fields.

     N/A N/A N/A is_installed reversion N/A N/A N/A N/A fields exclude_fields N/A N/A N/A ValueError Just one of fields, exclude_fields arguments can be passed. N/A opts N/A model_class _meta N/A local_fields N/A N/A opts local_fields N/A opts local_many_to_many N/A N/A fields None N/A N/A fields N/A N/A field name N/A field local_fields N/A exclude_fields N/A exclude_fields N/A N/A fields N/A filter N/A N/A N/A name N/A N/A N/A name exclude_fields fields cms.utils reversion_hacks N/A N/A N/A reversion_hacks register_draft_only model_class fields follow format N/A make_revision_with_plugins N/A N/A obj user message N/A None None N/A N/A 
    Only add to revision if it is a draft.
     cms.models.pluginmodel CMSPlugin cms.utils.reversion_hacks revision_context revision_manager N/A cls N/A obj __class__ N/A N/A hasattr revision_manager _registration_key_for_model N/A N/A model_key N/A N/A revision_manager _registration_key_for_model cls N/A N/A model_key cls N/A N/A model_key N/A revision_manager _registered_models N/A N/A placeholder_relation N/A find_placeholder_relation obj N/A N/A N/A revision_context is_active N/A N/A user N/A N/A N/A N/A revision_context set_user user N/A message N/A N/A N/A N/A revision_context set_comment message N/A adapter N/A N/A revision_manager get_adapter N/A obj __class__ N/A N/A N/A revision_context add_to_context revision_manager obj N/A N/A adapter get_version_data obj N/A ph N/A N/A obj get_placeholders N/A N/A phadapter N/A N/A revision_manager get_adapter N/A ph __class__ N/A N/A N/A revision_context add_to_context revision_manager ph N/A N/A phadapter get_version_data ph N/A filters N/A N/A placeholder__%s placeholder_relation obj N/A plugin N/A N/A N/A CMSPlugin objects filter filters N/A N/A N/A plugin_instance admin N/A N/A plugin get_plugin_instance N/A plugin_instance N/A N/A padapter N/A N/A revision_manager get_adapter N/A plugin_instance __class__ N/A N/A N/A revision_context add_to_context revision_manager plugin_instance N/A N/A padapter get_version_data plugin_instance N/A bpadapter N/A N/A revision_manager get_adapter N/A plugin __class__ N/A N/A N/A revision_context add_to_context revision_manager plugin N/A N/A bpadapter get_version_data plugin N/A find_placeholder_relation N/A N/A obj N/A N/A N/A page N/A classproperty N/A object N/A N/A Like @property, but for classes, not just instances.

    Example usage:

        >>> from cms.utils.helpers import classproperty
        >>> class A(object):
        ...     @classproperty
        ...     def x(cls):
        ...         return 'x'
        ...     @property
        ...     def y(self):
        ...         return 'y'
        ...
        >>> A.x
        'x'
        >>> A().x
        'x'
        >>> A.y
        <property object at 0x2939628>
        >>> A().y
        'y'

     __init__ N/A N/A self fget N/A N/A N/A N/A self fget fget N/A __get__ N/A N/A self owner_self owner_cls N/A N/A N/A N/A N/A self fget owner_cls N/A N/A current_site N/A N/A request N/A N/A N/A site_pk N/A N/A N/A N/A request GET get SITE_VAR None N/A N/A N/A request GET get SITE_VAR None N/A N/A N/A request POST get SITE_VAR None N/A N/A site_pk N/A N/A site_pk N/A N/A N/A request session get cms_admin_site None N/A site_pk N/A N/A N/A N/A site N/A N/A N/A SITE_CACHE get site_pk N/A N/A N/A Site objects get pk site_pk N/A N/A SITE_CACHE N/A site_pk site N/A site N/A N/A N/A N/A Site DoesNotExist N/A N/A None N/A N/A N/A N/A N/A Site objects get_current N/A normalize_name N/A N/A name N/A N/A N/A 
    Converts camel-case style names into underscore seperated words. Example::

        >>> normalize_name('oneTwoThree')
        'one_two_three'
        >>> normalize_name('FourFiveSix')
        'four_five_six'

    taken from django.contrib.formtools
     N/A new N/A N/A re sub (((?<=[a-z])[A-Z])|([A-Z](?![A-Z]|$))) _\1 name N/A N/A N/A N/A N/A new lower strip _ N/A