dcf7813d763eeaf927be945b7ed25a165131b1f9,debug_toolbar/middleware.py,DebugToolbarMiddleware,_show_toolbar,#DebugToolbarMiddleware#,54

Before Change


        else:
            remote_addr = request.META.get("REMOTE_ADDR", None)
        if not remote_addr in settings.INTERNAL_IPS \
                or request.is_ajax() or not settings.DEBUG:
            return False
        return True

After Change


        else:
            remote_addr = request.META.get("REMOTE_ADDR", None)
        if not remote_addr in settings.INTERNAL_IPS \
            or (request.is_ajax() and \
                not debug_toolbar.urls._PREFIX in request.path) \
                    or not settings.DEBUG:
            return False
        return True
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: jazzband/django-debug-toolbar
Commit Name: dcf7813d763eeaf927be945b7ed25a165131b1f9
Time: 2010-03-03
Author: jannis@leidel.info
File Name: debug_toolbar/middleware.py
Class Name: DebugToolbarMiddleware
Method Name: _show_toolbar


Project Name: jazzband/django-debug-toolbar
Commit Name: 25e96145cfb28079718c89f9e24bc0c7effd1d9d
Time: 2010-02-16
Author: jannis@leidel.info
File Name: debug_toolbar/middleware.py
Class Name: DebugToolbarMiddleware
Method Name: _show_toolbar


Project Name: jazzband/django-debug-toolbar
Commit Name: 184277b5d9a4658eb326d8f679618284299554a2
Time: 2009-01-17
Author: aeby@atizo.com
File Name: debug_toolbar/middleware.py
Class Name: DebugToolbarMiddleware
Method Name: show_toolbar