Module Expr Str Import alias Import alias TryExcept body Import alias identifier handlers ExceptHandler type NameLoad body Import alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Num TryExcept body Assign AttributeStore NameLoad attr Call NameLoad NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Str Num TryExcept body Assign AttributeStore NameLoad attr Call NameLoad NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body If Call AttributeLoad NameLoad attr NameLoad body Return NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad TryExcept body Assign NameStore Call NameLoad NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr If CompareLt NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad orelse Return Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad NameLoad AttributeLoad NameLoad attr body Pass Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr TryExcept body If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad NameLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr handlers ExceptHandler type TupleLoad NameLoad NameLoad body Pass decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad body Pass decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad body Pass decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad TryExcept body Assign NameStore Call NameLoad NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr If CompareLt NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad orelse Return NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad NameLoad AttributeLoad NameLoad attr body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body If CompareLt Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return TryExcept body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type TupleLoad NameLoad NameLoad body Return If CompareEq AttributeLoad NameLoad attr Num body Assign NameStore NameLoad orelse Assign NameStore ListComp Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad comprehension TupleStore NameStore NameStore Call NameLoad NameLoad CompareEq BinOpMod NameLoad AttributeLoad NameLoad attr Num For NameStore NameLoad body TryExcept body For TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad body Pass decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Raise NameLoad BinOpMod Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Call NameLoad Call AttributeLoad NameLoad attr Str attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Slice Num SubscriptLoad NameLoad Slice Num Num SubscriptLoad NameLoad Slice Num Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Num For TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body AugAssignAdd NameStore Call NameLoad NameLoad Return NameLoad decorator_list Assign NameStore Call NameLoad NameLoad decorator_list
N/A N/A File-based cache backend N/A os N/A time N/A N/A N/A cPickle pickle N/A N/A N/A ImportError N/A N/A pickle django.core.cache.backends.base BaseCache django.utils.hashcompat md5_constructor CacheClass N/A BaseCache N/A __init__ N/A N/A self dir params N/A N/A N/A N/A N/A BaseCache __init__ self params N/A max_entries N/A N/A params get max_entries 300 N/A N/A N/A N/A self _max_entries N/A int max_entries N/A N/A N/A N/A ValueError TypeError N/A N/A N/A self _max_entries 300 N/A cull_frequency N/A N/A params get cull_frequency 3 N/A N/A N/A N/A self _cull_frequency N/A int cull_frequency N/A N/A N/A N/A ValueError TypeError N/A N/A N/A self _cull_frequency 3 N/A N/A self _dir dir N/A N/A N/A N/A N/A os path exists N/A self _dir N/A N/A N/A N/A self _createdir N/A add N/A N/A self key value timeout N/A None N/A N/A N/A N/A self has_key key N/A N/A False N/A N/A N/A self set key value timeout N/A True N/A get N/A N/A self key default N/A None N/A N/A fname N/A N/A self _key_to_file key N/A N/A N/A f N/A open fname rb N/A exp N/A N/A pickle load f N/A now N/A N/A time time N/A N/A exp now N/A N/A N/A N/A f close N/A N/A N/A self _delete fname N/A N/A N/A N/A pickle load f N/A N/A N/A N/A IOError OSError EOFError N/A pickle PickleError N/A N/A N/A default N/A set N/A N/A self key value timeout N/A None N/A N/A fname N/A N/A self _key_to_file key N/A dirname N/A N/A N/A os path dirname fname N/A N/A timeout None N/A N/A timeout N/A self default_timeout N/A N/A N/A self _cull N/A N/A N/A N/A N/A N/A N/A os path exists dirname N/A N/A N/A N/A os makedirs dirname N/A f N/A open fname wb N/A now N/A N/A time time N/A N/A N/A pickle dump N/A now timeout f N/A pickle HIGHEST_PROTOCOL N/A N/A N/A pickle dump value f N/A pickle HIGHEST_PROTOCOL N/A N/A N/A N/A IOError OSError N/A N/A N/A delete N/A N/A self key N/A N/A N/A N/A N/A N/A N/A self _delete N/A N/A self _key_to_file key N/A N/A N/A N/A IOError OSError N/A N/A N/A _delete N/A N/A self fname N/A N/A N/A N/A N/A os remove fname N/A N/A N/A dirname N/A N/A N/A os path dirname fname N/A N/A N/A os rmdir dirname N/A N/A N/A os rmdir N/A N/A N/A os path dirname dirname N/A N/A N/A N/A IOError OSError N/A N/A N/A has_key N/A N/A self key N/A N/A N/A fname N/A N/A self _key_to_file key N/A N/A N/A f N/A open fname rb N/A exp N/A N/A pickle load f N/A now N/A N/A time time N/A N/A exp now N/A N/A N/A N/A f close N/A N/A N/A self _delete fname N/A False N/A N/A True N/A N/A N/A N/A IOError OSError EOFError N/A pickle PickleError N/A N/A False N/A _cull N/A N/A self N/A N/A N/A N/A N/A int N/A self _num_entries N/A self _max_entries N/A N/A N/A N/A N/A filelist N/A N/A os listdir N/A self _dir N/A N/A N/A N/A IOError OSError N/A N/A N/A N/A N/A self _cull_frequency 0 N/A N/A doomed filelist N/A N/A doomed N/A N/A N/A N/A os path join N/A self _dir k N/A N/A i k N/A enumerate filelist N/A N/A i N/A self _cull_frequency 0 N/A topdir doomed N/A N/A N/A N/A N/A root _ files N/A N/A os walk topdir N/A N/A f files N/A N/A N/A N/A self _delete N/A N/A N/A os path join root f N/A N/A N/A N/A IOError OSError N/A N/A N/A _createdir N/A N/A self N/A N/A N/A N/A N/A N/A N/A os makedirs N/A self _dir N/A N/A N/A OSError N/A N/A EnvironmentError N/A Cache directory '%s' does not exist and could not be created' N/A self _dir N/A _key_to_file N/A N/A self key N/A N/A N/A 
        Convert the filename into an md5 string. We'll turn the first couple
        bits of the path into directory prefixes to be nice to filesystems
        that have problems with large numbers of files in a directory.

        Thus, a cache key of "foo" gets turnned into a file named
        ``{cache-dir}ac/bd/18db4cc2f85cedef654fccc4a4d8``.
         N/A path N/A N/A N/A md5_constructor N/A N/A key encode utf-8 hexdigest N/A path N/A N/A N/A os path join N/A path N/A 2 N/A path N/A 2 4 N/A path N/A 4 N/A N/A N/A N/A os path join N/A self _dir path N/A _get_num_entries N/A N/A self N/A N/A N/A count 0 N/A N/A _ _ files N/A N/A os walk N/A self _dir N/A N/A count N/A len files N/A count N/A N/A _num_entries N/A property _get_num_entries N/A