niallo/pyramid_mongodb — pull request #2 by jvanasco (2012-01-30 23:46:26+00:00)
Title: i standardized the integration a bit, so this package is more than a template

hi.

thanks for the package. the package and the docs on pylonshq were a great way to look at potential integration.

i patched your distribution with a suggestion, which I hope you'll consider.

it adds an __init__.py, that lets the package act an actual integrator too.

all you would need to do is:

1. populate your ini with some variables
2. edit the main config to import the package, then call "python_mongodb.initialize_mongo_db( config , settings )"

i didn't touch the actual template, and this does essentially the same thing you've recommended -- it just makes it a little easier and cleaner to integrate into projects.