Hi Lucas,

Here is my development.ini for integrating toscawidgets (tw2) into a 
Pyramid application:

--------------------------------------------------------------------------------------------------------------------
[server:main]
use = egg:pyramid#wsgiref
host = localhost
port = 6543

[pipeline:main]
pipeline =
    egg:WebError#evalerror
    tw2.core
    pyramid

[filter:tw2.core]
use = egg:tw2.core#middleware

[app:pyramid]
use = egg:MyApp

# Pyramid config options
pyramid.reload_templates = true
pyramid.debug_authorization = false
pyramid.debug_notfound = true
pyramid.debug_routematch = false
pyramid.debug_templates = false
pyramid.default_locale_name = en
pyramid.includes = pyramid_debugtoolbar
                   pyramid_tm


# SQLAlchemy DB connection string
#sqlalchemy.url = sqlite:///%(here)s/myapp.db

# MySQL database URL
sqlalchemy.url = mysql://myusername:mypassword@localhost/myapp?charset=utf8

sqlalchemy.pool_recycle = 3600

# Location of Mako Templates (Not needed as of Pyramid-1.2.3, but saves 
adding "template/" to every view)
mako.directories = pulse:templates


    
# Begin logging configuration

[loggers]
keys = root, pulse, sqlalchemy

[handlers]
keys = console

[formatters]
keys = generic

[logger_root]
level = INFO
handlers = console

[logger_pulse]
level = DEBUG
handlers =
qualname = pulse

[logger_sqlalchemy]
level = WARN
handlers =
qualname = sqlalchemy.engine
# "level = INFO" logs SQL queries.
# "level = DEBUG" logs SQL queries and results.
# "level = WARN" logs neither.  (Recommended for production systems.)

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

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

# End logging configuration

---------------------------------------------------------------------------------------------------------------------------

Hope that helps.

Cheers,

Bruce

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/pylons-discuss/-/wD2C6L196IUJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to