Changeset 6975
- Timestamp:
- 12/22/07 13:32:54 (1 year ago)
- Files:
-
- django/trunk/django/template/context.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/template/context.py
r6854 r6975 10 10 class Context(object): 11 11 "A stack container for variable context" 12 13 12 def __init__(self, dict_=None, autoescape=True): 14 13 dict_ = dict_ or {} … … 79 78 mod = __import__(module, {}, {}, [attr]) 80 79 except ImportError, e: 81 raise ImproperlyConfigured , 'Error importing request processor module %s: "%s"' % (module, e)80 raise ImproperlyConfigured('Error importing request processor module %s: "%s"' % (module, e)) 82 81 try: 83 82 func = getattr(mod, attr) 84 83 except AttributeError: 85 raise ImproperlyConfigured , 'Module "%s" does not define a "%s" callable request processor' % (module, attr)84 raise ImproperlyConfigured('Module "%s" does not define a "%s" callable request processor' % (module, attr)) 86 85 processors.append(func) 87 86 _standard_context_processors = tuple(processors) … … 103 102 for processor in get_standard_processors() + processors: 104 103 self.update(processor(request)) 105
