class documentation

class BaseContext:

Known subclasses: django.template.context.Context, django.template.context.RenderContext

View In Hierarchy

Undocumented

Method __contains__ Undocumented
Method __copy__ Undocumented
Method __delitem__ Delete a variable from the current context
Method __eq__ Compare two contexts by comparing theirs 'dicts' attributes.
Method __getitem__ Get a variable's value, starting at the current context and going upward
Method __init__ Undocumented
Method __iter__ Undocumented
Method __repr__ Undocumented
Method __setitem__ Set a variable in the current context
Method ​_reset​_dicts Undocumented
Method flatten Return self.dicts as one dictionary.
Method get Undocumented
Method new Return a new context with the same properties, but with only the values given in 'values' stored.
Method pop Undocumented
Method push Undocumented
Method set​_upward Set a variable in one of the higher contexts if it exists there, otherwise in the current context.
Method setdefault Undocumented
Instance Variable dicts Undocumented
def __contains__(self, key):

Undocumented

def __copy__(self):

Undocumented

def __delitem__(self, key):
Delete a variable from the current context
def __eq__(self, other):
Compare two contexts by comparing theirs 'dicts' attributes.
def __getitem__(self, key):
Get a variable's value, starting at the current context and going upward
def __init__(self, dict_=None):

Undocumented

def __iter__(self):

Undocumented

def __repr__(self):

Undocumented

def __setitem__(self, key, value):
Set a variable in the current context
def _reset_dicts(self, value=None):

Undocumented

def flatten(self):
Return self.dicts as one dictionary.
def get(self, key, otherwise=None):

Undocumented

def new(self, values=None):
Return a new context with the same properties, but with only the values given in 'values' stored.
def pop(self):

Undocumented

def push(self, *args, **kwargs):

Undocumented

def set_upward(self, key, value):
Set a variable in one of the higher contexts if it exists there, otherwise in the current context.
def setdefault(self, key, default=None):

Undocumented

dicts =

Undocumented