minor compileapp refactor
This commit is contained in:
+2
-4
@@ -439,13 +439,11 @@ class Response(Storage):
|
||||
from gluon._compat import StringIO
|
||||
(obody, oview) = (self.body, self.view)
|
||||
(self.body, self.view) = (StringIO(), view)
|
||||
run_view_in(self._view_environment)
|
||||
page = self.body.getvalue()
|
||||
page = run_view_in(self._view_environment)
|
||||
self.body.close()
|
||||
(self.body, self.view) = (obody, oview)
|
||||
else:
|
||||
run_view_in(self._view_environment)
|
||||
page = self.body.getvalue()
|
||||
page = run_view_in(self._view_environment)
|
||||
return page
|
||||
|
||||
def include_meta(self):
|
||||
|
||||
Reference in New Issue
Block a user