On Sat, Jul 23, 2011 at 3:39 PM, Stefano Fontanelli
<[email protected]> wrote:
>
> Hi folks,
> I used Pylons since 2009 but I'm porting my Pylons applications to Pyramid
> now.
>
> I searched on the website, pylons-devel and pylons-discuss ML but I didn't
> find anything which can help me.
>
> What is the best practice to setup my Pyramid application (create database,
> fill it etc.)?
> In Pylons I used 'paster setup-app' but I doesn't exist in Pyramid.

"paster setup-app" is not supported because it's old, clunky code, and
its internal services are actually more geared toward file generation
than the things Pylons normally uses it for (database initialization).
Also, the API does not allow custom command-line arguments, so can't
make a flexible setup routine that only does some steps depending on
the arguments.

Akhet applications have a basic top-level script that initializes the
database. You can copy this and customize it to do any kind of
initialization work you need. And of course, you can have multiple
scripts for different maintenance tasks.

Another option is to write a custom 'paster' command. Some people
prefer this although I don't. People are working on alternatives to
paster, and it's possible that in the next several months there'll be
something different, with a different plug-in interface with more
features. So I don't know if it's worth investing in paster
customizations right now.

-- 
Mike Orr <[email protected]>

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
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