changeset 5480 | 2d5c46e78ae9 |
parent 5452 | 4ac3ea9face9 |
child 5508 | 6718ba5db0eb |
--- a/selectors.py Wed May 05 18:10:33 2010 +0200 +++ b/selectors.py Thu Apr 29 08:39:13 2010 +0200 @@ -1288,6 +1288,10 @@ return None super(is_in_state, self).__init__(score) +@objectify_selector +def debug_mode(cls, req, rset=None, **kwargs): + """Return 1 if running in debug mode""" + return req.vreg.config.debugmode and 1 or 0 ## deprecated stuff ############################################################