Re: [Rest2web-develop] Added an 'ip_addr' IPv4 address value test...
Brought to you by:
mjfoord
From: Nicola L. <ni...@te...> - 2005-07-20 13:50:55
|
> I didn't *like* the initial implemntation. I thought you could achieve > the identical thing with a single function (method ?) and a dictionary. > > Also the example ones looked horribly complicated and not *that* useful. > I'd prefer it if the examples we supply are at least comprehensible. > > It's possible I was wrong and it's just because it was code I didn't > write :-) > > I'd be quite happy for you to implement something - or I'll put > something back when I've done ConfigObj. We'll see. >> You want Quixote's PTLs, man. You *really* want them. :-) What are they? >> Text generation through real Python, that's what. BTW, I share your dislike >> of embedded mini-languages for templating. > I don't yet know you well enough to know when you're being facetious. > Are you serious that I would like PTL ? Too many smiling faces, probably. Yes, I'm serious. Two years ago there was no Nevow in Twisted, only Woven, its precursor (and from where it took its name :-) ). I tried using it, but couldn't grasp its form processing, so I turned back to old faithful Quixote, extracted the PTLs and the form processing, and transplanted them into Twisted. And that's what we use every day at my job, these days. :-) Quixote's PTLs and Nevow's XHTML (with Zope's ZPT) are the two extremes of the Python web templating spectrum, with almost nothing interesting in between. > Which do you think would be more of a fruitful starting point ? - > finding a twisted tutorial and ploughing in, or finding a twisted > tutorial and trying to find my way in.... Looks like a Twisted tutorial would do you good. ;-D It's true, too many choices in Python web templating. These days I'm hell bent on Twisted, and leaning on Nevow, but Quixote is such a nice little jewel that I think it's good having some familiarity with it. Five-minutes crash course in Medusa+Quixote: Download and install Medusa: http://www.amk.ca/python/code/medusa.html do the same with Quixote: http://www.mems-exchange.org/software/quixote/ cd .../quixote/server python medusa_http.py Point your web browser to: http://localhost:8080/ That's it. :-) The Quixote docs are written with ReST, moreover. ;-) -- Nicola Larosa - ni...@te... When I was growing up, my parents used to say to me, "Tom, finish your dinner - people in China are starving." But after sailing to the edges of the flat world for a year, I am now telling my own daughters, "Girls, finish your homework - people in China and India are starving for your jobs." -- Thomas L. Friedman, New York Times, April 2005 |