Changes between Version 13 and Version 14 of ShortcutSyntaxIdeas
- Timestamp:
- Sep 21, 2005, 2:42:04 PM (19 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ShortcutSyntaxIdeas
v13 v14 111 111 g = (g,) 112 112 for i in g: 113 if isinstance(i, HttpResponse):113 if isinstance(i, httpwrappers.HttpResponse): 114 114 return i 115 115 if type(i) == type(()): … … 117 117 else: 118 118 context_dict.update(i) 119 template = context_dict.get("template", template)120 context = context_dict.get("context", context)121 return load_and_render(template , context_dict, context)119 template_name = context_dict.get("template", template) 120 context_instance = context_dict.get("context", context) 121 return load_and_render(template_name, context_dict, context_instance) 122 122 123 123 return _innerWrapper