Module ImportFrom alias alias Import alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Assign NameStore Dict Num Num Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str BinOpMod Str NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListComp SubscriptLoad NameLoad Index Num comprehension NameStore AttributeLoad NameLoad attr Assign NameStore ListComp SubscriptLoad NameLoad Index Num comprehension NameStore Call NameLoad Str If Call NameLoad Str body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str With Call NameLoad NameLoad Str NameStore body Assign NameStore Call NameLoad Str NameLoad NameLoad TupleLoad Str Str NameLoad Assign NameStore ListComp Call NameLoad Call NameLoad SubscriptLoad NameLoad Index Num comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListComp Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad SubscriptLoad NameLoad Index Num attr comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Assign NameStore ListComp Call NameLoad SubscriptLoad NameLoad Index Num comprehension NameStore NameLoad Assign NameStore ListComp SubscriptLoad NameLoad Index Num comprehension NameStore NameLoad If Call NameLoad Str body Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad NameLoad decorator_list Call NameLoad keyword NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Str For NameStore NameLoad body If CompareNotEq SubscriptLoad NameLoad Index Num AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Num decorator_list Call NameLoad keyword NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Str For NameStore NameLoad body If CompareNotEq SubscriptLoad NameLoad Index Num AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr CompareGtE Call AttributeLoad SubscriptLoad NameLoad Index Num attr BinOpMod Str SubscriptLoad NameLoad Index Num Num With Call AttributeLoad NameLoad attr keyword Num body Assign NameStore Call NameLoad Str For NameStore NameLoad body If CompareNotEq SubscriptLoad NameLoad Index Num AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr CompareGtE Call AttributeLoad SubscriptLoad NameLoad Index Num attr BinOpMod Str SubscriptLoad NameLoad Index Num Num decorator_list Call NameLoad keyword NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Str For NameStore NameLoad body If CompareNotEq SubscriptLoad NameLoad Index Num AttributeLoad NameLoad attr body With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num decorator_list Call NameLoad keyword NameLoad decorator_list
N/A imp load_module PY_SOURCE N/A os.path django.conf settings django.template loader TemplateDoesNotExist django.test.utils override_settings django.utils.encoding force_text django.utils.translation ugettext_lazy _ cms constants cms.test_utils.testcases CMSTestCase cms.utils get_cms_setting N/A PATH_PREFIX N/A N/A N/A os path join inner_dir custom_templates N/A GOOD_PATH N/A N/A N/A os path join N/A settings PROJECT_PATH project templates PATH_PREFIX N/A BAD_PATH N/A N/A N/A os path join N/A settings PROJECT_PATH project custom_templates N/A SITE_PATH N/A 1 2 N/A N/A N/A os path join N/A settings PROJECT_PATH project templates PATH_PREFIX N/A N/A N/A os path join N/A settings PROJECT_PATH project templates N/A %s_2 PATH_PREFIX TemplatesConfig N/A CMSTestCase N/A test_templates N/A N/A self N/A N/A N/A 
        Tests that the plain CMS_TEMPLATES works as usual
         N/A original_files N/A N/A template N/A 0 N/A template N/A settings CMS_TEMPLATES N/A files N/A N/A template N/A 0 N/A template N/A get_cms_setting TEMPLATES N/A N/A get_cms_setting TEMPLATE_INHERITANCE N/A N/A N/A N/A original_files append N/A constants TEMPLATE_INHERITANCE_MAGIC N/A N/A N/A self assertEqual N/A len files 6 N/A N/A N/A self assertEqual N/A set files N/A set original_files N/A test_custom_templates N/A N/A self N/A N/A N/A 
        Test that using CMS_TEMPLATES_DIR both template list and template labels are extracted from the new directory
         N/A config_path N/A N/A N/A os path join N/A settings CMS_TEMPLATES_DIR __init__.py N/A N/A open config_path r openfile N/A N/A mod N/A load_module mod openfile config_path N/A m r PY_SOURCE N/A original_labels N/A N/A force_text N/A _ N/A template N/A 1 N/A template N/A N/A N/A mod TEMPLATES items N/A original_files N/A N/A N/A N/A os path join PATH_PREFIX N/A N/A N/A template N/A 0 strip N/A template N/A N/A N/A mod TEMPLATES items N/A templates N/A get_cms_setting TEMPLATES N/A N/A N/A self assertEqual N/A len templates 3 N/A labels N/A N/A force_text N/A template N/A 1 N/A template templates N/A files N/A N/A template N/A 0 N/A template templates N/A N/A get_cms_setting TEMPLATE_INHERITANCE N/A N/A N/A N/A original_labels append N/A force_text N/A _ Inherit the template of the nearest ancestor N/A N/A N/A original_files append N/A constants TEMPLATE_INHERITANCE_MAGIC N/A N/A N/A self assertEqual N/A set labels N/A set original_labels N/A N/A N/A self assertEqual N/A set files N/A set original_files N/A N/A override_settings CMS_TEMPLATES_DIR GOOD_PATH test_custom_templates_loading N/A N/A self N/A N/A N/A 
        Checking that templates can be loaded by the template loader
         N/A templates N/A get_cms_setting TEMPLATES N/A template templates N/A N/A N/A N/A template N/A 0 N/A constants TEMPLATE_INHERITANCE_MAGIC N/A N/A tpl N/A N/A loader get_template N/A template N/A 0 N/A N/A N/A self assertEqual N/A N/A tpl template name N/A template N/A 0 N/A N/A override_settings CMS_TEMPLATES_DIR GOOD_PATH test_multisite N/A N/A self N/A N/A N/A 
        Checking that templates can be loaded by the template loader
         N/A templates N/A get_cms_setting TEMPLATES N/A template templates N/A N/A N/A N/A template N/A 0 N/A constants TEMPLATE_INHERITANCE_MAGIC N/A N/A N/A N/A self assertTrue N/A N/A N/A N/A template N/A 0 find N/A %s/ N/A SITE_PATH N/A 1 -1 N/A N/A N/A self settings SITE_ID 2 N/A N/A templates N/A get_cms_setting TEMPLATES N/A template templates N/A N/A N/A N/A template N/A 0 N/A constants TEMPLATE_INHERITANCE_MAGIC N/A N/A N/A N/A self assertTrue N/A N/A N/A N/A template N/A 0 find N/A %s/ N/A SITE_PATH N/A 2 -1 N/A N/A override_settings CMS_TEMPLATES_DIR SITE_PATH test_custom_templates_bad_dir N/A N/A self N/A N/A N/A 
        Checking that templates can be loaded by the template loader
         N/A templates N/A get_cms_setting TEMPLATES N/A template templates N/A N/A N/A N/A template N/A 0 N/A constants TEMPLATE_INHERITANCE_MAGIC N/A N/A N/A N/A self assertRaises TemplateDoesNotExist N/A N/A N/A N/A loader get_template N/A template N/A 0 N/A N/A override_settings CMS_TEMPLATES_DIR BAD_PATH N/A