ptah-populate and no more automagic schema creation

5 views
Skip to first unread message

Alan Runyan

unread,
Jan 11, 2012, 4:49:15 PM1/11/12
to ptahp...@googlegroups.com
If you use ptah or any of the examples. You will no longer get your
database schema's automatically created for you. To bootstrap
the schema a new script, 'ptah-populate' has been added.

This means 0.3 and what is on master requires you to:

$ bin/ptah-populate path/to/settings.ini -a

it will print out the population steps run for each add-on.

The documentation has been updated to cover this.

ptah has grown a dependency on alembic.

Any testing/feedback of master would be appreciated.

--
Alan Runyan

Skype/Twitter:: runyaga
Office:: 713.942.2377 ext 111
http://ploud.com/  Plone site in less than 10 seconds

Nikolay Kim

unread,
Jan 11, 2012, 4:53:51 PM1/11/12
to ptahp...@googlegroups.com
It is still possible to run populate during start-up

def main(..):
config = Configurator()
config.include('ptah')
...
config.ptah_populate()


config.ptah_populate() call is identical to this command

$ bin/ptah-populate path/to/settings.ini -a


http://ptahproject.readthedocs.org/en/latest/populate.html

Reply all
Reply to author
Forward
0 new messages