(context, *variables)
return None
Safely get something from the context.

  Look for a variable (or an alternate variable) in the context. If it is not in
  the context, look in language-specific or overall defaults.

  Args:
    context: (Context|None) The Django render context
    *variables: (str) varargs list of variable names
  Returns:
    The requested value from the context or the defaults.
Safely get something from the context.
Safely get something from the context .
def _GetFromContext(context, *variables):
  """Safely get something from the context.

  Look for a variable (or an alternate variable) in the context. If it is not in
  the context, look in language-specific or overall defaults.

  Args:
    context: (Context|None) The Django render context
    *variables: (str) varargs list of variable names
  Returns:
    The requested value from the context or the defaults.
  """
  if context is None:
    context = GetCurrentContext()
  containers = [context]
  current_language = _GetCurrentLanguage(context)
  if current_language and current_language in _language_defaults:
    containers.append(_language_defaults[current_language])
  containers.append(_defaults)
  # Use a non-reproducible default value to allow real non-truthy values.
  default = object()
  for c in containers:
    for v in variables:
      value = c.get(v, default)
      if value is not default:
        return value
  return None
def _GetFromContext ( context , * variables ) : if context is None : context = GetCurrentContext ( ) containers = [ context ] current_language = _GetCurrentLanguage ( context ) if current_language and current_language in _language_defaults : containers . append ( _language_defaults [ current_language ] ) containers . append ( _defaults ) # Use a non-reproducible default value to allow real non-truthy values. default = object ( ) for c in containers : for v in variables : value = c . get ( v , default ) if value is not default : return value return None