I'm almost new to Pyramid but with some pylons experience and,
although it has not been a hassle remember how it works, there's no
coherence, as far as I can understand, in paster commands using
Pyramid.
Given I added my own `setup-app` script to initialize database (Pylons
nostalgia?) I have 3 different syntaxes:
paster serve development.ini
paster pshell development.ini my_app
paster setup-app deveolpment.ini#my_app
so:
- `serve` does **not** want my_app (why?)
- `pshell` wants it as second argument
- `setup-app` wants it its way.
There's a reason for sure `[app:main]` changed to `[app:my_app]`
(which?) but this new way, if make things less rigid on one side,
screws up work for who will deploy application on the other side,
having to learn that `serve` does **not** want, `setup-app` etc etc.
I'm quite sure I miss some points and I'm not a Pyramid developer but
I thought this was the right place to figure out this thing that maybe
could be "fixed" in the future.
You also will probably point out that I shouldn't have used `setup-
app` but rather write my own script that works as:
paster my-setup-app my_app
but adding 2 rows in `setup.py` and dropping some code in
`websetup.py` has been way much faster to learn and understand.
Cheers
neurino
--
You received this message because you are subscribed to the Google Groups
"pylons-devel" 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-devel?hl=en.