I added a feature to WSGIKit to create a base set of files and a directory layout for a new application. This is similar to Rails' scripts, and kind of like MakeAppWorkDir, but more helpful (I think).

Right now you can do:

svn co http://svn.w4py.org/WSGIKit/trunk WSGIKit
cd WSGIKit
./scripts/app-setup create -v -o test_app/ webkit_zpt
cd test_app/
../scripts/wsgi-server

And you'll get a basic framework in test_app/, and wsgi-server will serve that app up on localhost:8080 (if you have WSGIUtils installed, as well as ZPTKit, Component, and zpt.sf.net packages -- but I'm working on making it easier to get all those libraries).

This particular setup (webkit_zpt) represents the patterns I've been using in my own applications, and I'll probably continue extending it based on that. WSGIKit can include multiple such application templates, and I'd be interested in other people's contributions -- at least insofar as they are really distinct. I'm not sure if, say, there should be a webkit_cheetah template -- instead it would probably be better if there was a single webkit template and an option to choose your template, but that will require some more consistency in how templates are used. (I think Cheetah would probably be a more compelling beginner templating language than ZPT, but I'm personally familiar with ZPT).

The way the application templates actually get set up is still under development, but it's usable now, and I think it actually can be really helpful for both new and experienced developers -- it's always best to document convention through code.

--
Ian Bicking  /  [EMAIL PROTECTED]  / http://blog.ianbicking.org


------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Webware-discuss mailing list Webware-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to