Commits

Daniel Holth committed 3ce1541

add paste.filter_factory entry point

Comments (0)

Files changed (2)

flickzeug/debug/__init__.py

                     'sent.\n')
             else:
                 yield 'Server Error'
+
+
+def debugged_application_factory(global_config, **kw):
+    from paste.deploy.converters import asbool
+    kw.update(global_config)
+    evalex = asbool(kw.get('flickzeug.evalex', kw.get('evalex', False)))
+    def factory(*args, **kwargs):
+        return DebuggedApplication(*args, evalex=evalex, **kwargs)
+    return factory
+
     package_data={
         'flickzeug': ['shared/*', 'templates/**/*']
     },
+    entry_points={
+        'paste.filter_factory' : [
+            'debug=flickzeug.debug:debugged_application_factory'
+        ]
+    },
     include_package_data=True,
-    install_requires = ['Werkzeug >= 0.5.1'],
+    install_requires = ['Werkzeug >= 0.5.1', 'simplejson'],
     platforms='any'
 )