Jeff Watkins <[EMAIL PROTECTED]> writes:

> I'm certain some will suggest this is unpythonic, but here goes:
>
> class CrudController(turbogears.Controller):
>  [... snip a bunch of code ...]

actually, this is pretty similar to what i've been using for building
REST apps (in plain cherrypy; no turbogears yet):

   http://tasty.python-hosting.com/file/trunk/tasty/controller/rest_resource.py

it's a bit idiosyncratic to what i've been building lately and i'm sure
it could be made prettier, but it's been working nicely for me. 

-- 
anders pearson : http://www.columbia.edu/~anders/
   C C N M T L : http://www.ccnmtl.columbia.edu/
        weblog : http://thraxil.org/

Attachment: pgptMy8ZxUyMZ.pgp
Description: PGP signature

Reply via email to