adding sqlalchemy-migrate glue

* add a product and producttype table (addresses #1)
 * add a person table and reference to customers table (fixes #8)
 * use sqlalchemy-migrate's API to setup database and add
   configuration for the sqlalchemy-migrate calls to development.ini
   and the paste_deploy template (fixes #7)


git-svn-id: file:///var/www/wwwusers/usr01/svn/pyalchemybiz/trunk@7 389c73d4-bf09-4d3d-a15e-f94a37d0667a
This commit is contained in:
Jan Dittberner 2008-10-05 21:02:10 +00:00
parent ab91d92af3
commit 1228fcef3c
16 changed files with 183 additions and 12 deletions

View file

@ -1,6 +1,6 @@
Metadata-Version: 1.0
Name: pyalchemybiz
Version: 0.1dev-r5
Version: 0.1dev-r6
Summary: python based small business suite.
Home-page: http://www.dittberner.info/projects/pyalchemybiz
Author: Jan Dittberner

View file

@ -4,8 +4,13 @@ development.ini
setup.cfg
setup.py
test.ini
data/templates/base.mako.py
data/templates/customer.mako.py
data/dbrepo/README
data/dbrepo/__init__.py
data/dbrepo/manage.py
data/dbrepo/migrate.cfg
data/dbrepo/versions/001_Add_initial_tables.py
data/dbrepo/versions/002_Add_customer_tables.py
data/dbrepo/versions/__init__.py
docs/index.txt
pyalchemybiz/__init__.py
pyalchemybiz/websetup.py
@ -24,6 +29,7 @@ pyalchemybiz/config/routing.py
pyalchemybiz/controllers/__init__.py
pyalchemybiz/controllers/customer.py
pyalchemybiz/controllers/error.py
pyalchemybiz/controllers/index.py
pyalchemybiz/controllers/template.py
pyalchemybiz/lib/__init__.py
pyalchemybiz/lib/app_globals.py
@ -32,10 +38,13 @@ pyalchemybiz/lib/helpers.py
pyalchemybiz/model/__init__.py
pyalchemybiz/model/customer.py
pyalchemybiz/model/meta.py
pyalchemybiz/public/index.html
pyalchemybiz/model/person.py
pyalchemybiz/model/product.py
pyalchemybiz/templates/base.mako
pyalchemybiz/templates/customer.mako
pyalchemybiz/templates/index.mako
pyalchemybiz/tests/__init__.py
pyalchemybiz/tests/test_models.py
pyalchemybiz/tests/functional/__init__.py
pyalchemybiz/tests/functional/test_customer.py
pyalchemybiz/tests/functional/test_customer.py
pyalchemybiz/tests/functional/test_index.py

View file

@ -38,6 +38,11 @@ set debug = false
# invalidate the URI when specifying a SQLite db via path name
#sqlalchemy.default.url = sqlite:///%(here)s/pyalchemybiz.db
#sqlalchemy.default.echo = false
sqlalchemy.default.convert_unicode = true
# settings for sqlalchemy-migrate
migrate.repo.version = 2
migrate.repo.dir = %(here)s/data/dbrepo
# Logging configuration