Changeset 278
- Timestamp:
- 12/03/05 15:17:18 (3 years ago)
- Files:
-
- trunk/CHANGELOG.txt (modified) (1 diff)
- trunk/turbogears/controllers.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/CHANGELOG.txt
r272 r278 10 10 turn on JSON via the config file or by the allow_json parameter 11 11 to expose. 12 * turbogears.controllers.Root has now become 13 turbogears.controllers.RootController for clarity's sake. 12 14 13 15 *Features* trunk/turbogears/controllers.py
r266 r278 144 144 @type: turbogears.widgets.forms.Form 145 145 """ 146 import controllers147 146 if template: 148 147 html = template … … 196 195 cherrypy.request.in_transaction = True 197 196 output = database.run_with_transaction(_execute_func, self, 198 errors, errorhandler, func, *args, **kw) 197 errors, errorhandler, func, tg_format, 198 html, *args, **kw) 199 199 else: 200 200 output = _execute_func(self, errors, errorhandler, func, 201 *args, **kw)202 return controllers._process_output(tg_format, output, html)201 tg_format, html, *args, **kw) 202 return output 203 203 204 204 try: … … 211 211 return decorator 212 212 213 def _execute_func(self, errors, errorhandler, func, *args, **kw): 213 def _execute_func(self, errors, errorhandler, func, tg_format, 214 html, *args, **kw): 214 215 if errors: 215 216 if errorhandler: … … 224 225 else: 225 226 output = func(self, *args, **kw) 226 return output227 return _process_output(tg_format, output, html) 227 228 228 229