Permalink
Browse files

fix xml_debug_page in case of pure XML original page output

  • Loading branch information...
1 parent 17f38d0 commit ab1fdbb90c85da1f6f578d5e41d6519f692d375f @advoretsky advoretsky committed Oct 7, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 monkeyfrontik/appstat.py
View
@@ -67,6 +67,8 @@ def transfer_recorder():
old_finish = frontik.handler.PageHandler.finish
def finish(self, chunk=None):
+ if self.debug.debug_mode:
+ self.xml.apply_xsl = True
key = None
if self.force_stat:
key = str(self.request_id)
@@ -80,7 +82,7 @@ def finish(self, chunk=None):
old_posts={}
old_finish_page_cb = frontik.handler.PageHandler._finish_page_cb
def _finish_page_cb(self):
- if self.config not in old_posts:
+ if self.config not in old_posts and hasattr(self.config, 'postprocessor'):
old_posts[self.config] = self.config.postprocessor.__call__
@wraps(self.config.postprocessor.__call__) #, assigned=[])
def post_wrap(handler, chunk, cb):

0 comments on commit ab1fdbb

Please sign in to comment.