Michael Watkins wrote:
> Perhaps there is still some minor but useful value in having a tool that
> would spit out a nice file system hierarchy and a "run" script all tooled up
> to fire up the basic app using simple_server, i.e. something like:

Note that Paste Script is intended to this (among other things), and the
command would probably go like:

$ paster create --template=quixote

You could also create, say, a dulcinea template that required the
quixote template, thus created all the Quixote files as well, and added
the Dulcinea-specific files.  Myghty (latest release) is an example of a
project that has a couple different Paste templates, for different
levels of minimalism vs. completeness.  A template can be pretty simple,
just a bunch of files copied into place, potentially Cheetah templates
that will be filled (if the file ends with _tmpl).  It encourages, but
doesn't require, that the result be a setuptools project.

If it is a setuptools project, you can add project-specific commands
(like, say, "create-db").  Also if it is a setuptools project, it's
easier to make it usable with paste deploy, so you could do:

$ paster serve SomeApp/docs/test_config.ini

to start up the application with some testing configuration, probably a
builtin web server, etc.

Paste Script is described in:
  http://pythonpaste.org/script/
  http://pythonpaste.org/script/developer.html

-- 
Ian Bicking  |  [EMAIL PROTECTED]  |  http://blog.ianbicking.org
_______________________________________________
Quixote-users mailing list
[email protected]
http://mail.mems-exchange.org/mailman/listinfo/quixote-users

Reply via email to