On Sun, 2011-02-27 at 22:45 -0800, oO wrote: > What's the best way to modify a pyramid project to make use of paster > setup-app? I'm using pyramid with traversal and mongodb for > persistence, so I started with the default template which doesn't set > anything up for the setup-app portion, and I don't really know where > to start.
Pyramid itself does not implement a paster command named 'setup-app', so there really is no "setup-app portion". Instead I'd suggest using a console script. Here's where, if I had one, I'd add a link to documentation for creating a console script that loaded the environment from an .ini file. However, I don't have one so I'll likely have to just point you to the docs for "pyramid.paster" and "pyramid.scripting" in the API section of the Pyramid docs. - C > > Any pointers? I obviously will need to access the settings so I can > create a MongoDB connection and setup the collections and indexes that > the app will use, as well as bootstrapping some of the data. > > oO > -- You received this message because you are subscribed to the Google Groups "pylons-devel" group. To post to this group, send email to pylons-devel@googlegroups.com. To unsubscribe from this group, send email to pylons-devel+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-devel?hl=en.