[BlueBream] Fanstatic integration

Cykooz cykooz at googlemail.com
Wed Jul 27 05:11:32 EDT 2011


Corrected version of debug.ini:

[loggers]
keys = root, wsgi

[handlers]
keys = console, accesslog

[formatters]
keys = generic, accesslog

[formatter_generic]
format = %(asctime)s %(levelname)s [%(name)s] %(message)s

[formatter_accesslog]
format = %(message)s

[handler_console]
class = StreamHandler
args = (sys.stderr,)
level = ERROR
formatter = generic

[handler_accesslog]
class = FileHandler
args = (os.path.join('var', 'log', 'access.log'),
        'a')
level = INFO
formatter = accesslog

[logger_root]
level = INFO
handlers = console

[logger_wsgi]
level = INFO
handlers = accesslog
qualname = wsgi
propagate = 0

[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 = fanstatic

[filter-app:fanstatic]
use = egg:fanstatic#fanstatic
next = zope

[app:zope]
use = egg:iport
filter-with = translogger

[server:main]
use = egg:Paste#http
host = 127.0.0.1
port = 8080

[DEFAULT]
# set the name of the debug zope.conf file
zope_conf = %(here)s/etc/zope-debug.conf




2011/7/27 Mats <mats at ronin-group.org>:
> I get a LookupError: Ambiguous section names ['pipeline:main',
> 'filter-app:main'] for section 'main' (prefixed by 'app' or
> 'application' or 'composite' or 'composit', or 'pipeline' or
> 'filter-app') found in config debug.ini.
>
> My debug.ini looks like this now.
>
> [loggers]
> keys = root, wsgi
>
> [handlers]
> keys = console, accesslog
>
> [formatters]
> keys = generic, accesslog
>
> [formatter_generic]
> format = %(asctime)s %(levelname)s [%(name)s] %(message)s
>
> [formatter_accesslog]
> format = %(message)s
>
> [handler_console]
> class = StreamHandler
> args = (sys.stderr,)
> level = ERROR
> formatter = generic
>
> [handler_accesslog]
> class = FileHandler
> args = (os.path.join('var', 'log', 'access.log'),
>        'a')
> level = INFO
> formatter = accesslog
>
> [logger_root]
> level = INFO
> handlers = console
>
> [logger_wsgi]
> level = INFO
> handlers = accesslog
> qualname = wsgi
> propagate = 0
>
> [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
>
>
> [server:main]
> use = egg:Paste#http
> host = 127.0.0.1
> port = 8080
>
> [app:zope]
> use = egg:iport
> filter-with = translogger
>
> [pipeline:main]
> pipeline = fanstatic zope
>
> [filter:fanstatic]
> use = egg:fanstatic#fanstatic
>
> [DEFAULT]
> # set the name of the debug zope.conf file
> zope_conf = %(here)s/etc/zope-debug.conf
>
> Thanks for taking the time to help me out.
>
> Mats
>
>
> On Tue, Jul 26, 2011 at 1:19 PM, Cykooz <cykooz at googlemail.com> wrote:
>> You need use this package - http://pypi.python.org/pypi/zope.fanstatic
>> and configure the Fanstatic WSGI components using Paste Deploy -
>> http://www.fanstatic.org/en/0.11.2/paste_deploy.html
>>
>> 2011/7/26 Mats <mats at ronin-group.org>:
>>> I have made no changes to either of those files.  What do I need to
>>> add to them to get it to pick up fanstatic?
>>>
>>
>


More information about the bluebream mailing list