[Grok-dev] Middleware and Grok
bribon
alvreinoso at gmail.com
Mon May 10 13:24:07 EDT 2010
Hello,
I'm pretty close, but I don't know exactly how to modify the deploy.ini
file.
This is part of my setup.py for the main application:
entry_points = """
[console_scripts]
grokserver-debug = grokcore.startup:interactive_debug_prompt
grokserver-ctl = grokcore.startup:zdaemon_controller
[paste.app_factory]
main = grokcore.startup:application_factory
[paste.filter_factory]
fileupload = fileupload:application_factory
""",
And this is part of my deploy.ini file:
[filter:translogger]
use = egg:Paste#translogger
setup_console_handler = False
logger_name = wsgi
[filter-app:main]
# Change the last part from 'ajax' to 'pdb' for a post-mortem debugger
# on the console:
use = egg:z3c.evalexception#ajax
next = zope
[app:zope]
use = egg:grokserver
filter-with = translogger
[filter:fileupload]
use = egg:grokserver#fileupload
[server:main]
use = egg:Paste#http
host = 0.0.0.0
port = 8080
[DEFAULT]
# set the name of the zope.conf file
zope_conf = %(here)s/zope.conf
I've tried to modify deploy.ini file, but I haven't got it working. I know I
need to add pipeline filter, but I don't know how to do it.
Thanks in advance
--
View this message in context: http://old.nabble.com/Middleware-and-Grok-tp28378758p28512490.html
Sent from the Grok mailing list archive at Nabble.com.
More information about the Grok-dev
mailing list