[Schevo-devel] automatically creating schemata

Matthew Scott mscott at springfieldtech.com
Mon Mar 6 09:39:51 EST 2006


Patrick K. O'Brien wrote:
> We do not have an automated way to create a schema.  Because a schema is
> Python code, one can simply create a schema_001.py file.  Or copy and
> modify an existing one, as you attempted to do.

If you have PasteScript installed ("easy_install PasteScript") you can
run this:

  paster create --template=schevo MyApp
  cd MyApp
  python setup.py develop

That will create a MyApp directory, with a "myapp" package that already
has an empty "schema/schema_001.py" template ready to edit.

It also creates a setup.py template that lists Schevo as a dependency,
and has places for you to fill in the version, etc.


-- 
Matthew Scott
Springfield Technology



More information about the Schevo-devel mailing list