Re: Re: Popularity of Quixote

Ian Bicking <[email protected]>
Newsgroups gmane.comp.web.quixote.user
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.