<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: got any mod_python and cheetah resources?</title>
	<link>http://ask.metafilter.com/32665/got-any-modpython-and-cheetah-resources/</link>
	<description>Comments on Ask MetaFilter post got any mod_python and cheetah resources?</description>
	<pubDate>Wed, 15 Feb 2006 00:35:10 -0800</pubDate>
	<lastBuildDate>Wed, 15 Feb 2006 00:35:10 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: got any mod_python and cheetah resources?</title>
		<link>http://ask.metafilter.com/32665/got-any-modpython-and-cheetah-resources</link>	
		<description>Can anyone point me to a good documentation/samples for building an app using mod_python and cheetah? (and mySQL/DBUtils etc)? &lt;br /&gt;&lt;br /&gt; I am planning to write a webapp (internal only) that uses mod_python and cheetah to replace one that uses php and smarty. I have downloaded and installed everything but while I&apos;ve used python before, I&apos;ve never used mod_python or cheetah so I&apos;ve been looking for some good online resources (or books) that have sample code and other useful information. I&apos;ve looked around a lot but can&apos;t seem to find anything really useful. I would appreciate any help/pointers to good resources. TIA!</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2006:site.32665</guid>
		<pubDate>Tue, 14 Feb 2006 18:09:48 -0800</pubDate>
		<dc:creator>karen</dc:creator>
		
			<category>python</category>
		
			<category>modpython</category>
		
			<category>cheetah</category>
		
			<category>apache</category>
		
			<category>mysql</category>
		
			<category>dbutil</category>
		
			<category>db</category>
		
			<category>database</category>
		
			<category>application</category>
		
			<category>development</category>
		
			<category>code</category>
		
			<category>sample</category>
		
			<category>documentation</category>
		
	</item> <item>
		<title>By: chrismear</title>
		<link>http://ask.metafilter.com/32665/got-any-modpython-and-cheetah-resources#510343</link>	
		<description>I know practically nothing about Python, but here&apos;s what I&apos;ve found after some Googling:&lt;br&gt;
&lt;br&gt;
The only thing I could find about mod_python + Cheetah specifically was &lt;a href=&quot;http://www.tossed.org/modules.php?name=News&amp;file=article&amp;sid=12&quot;&gt;this brief article&lt;/a&gt; about using mod_python with MySQLdb and Cheetah. There&apos;s also &lt;a href=&quot;http://wiki.cheetahtemplate.org/cheetah-recipes.html?&quot;&gt;this page&lt;/a&gt; on the Cheetah wiki -- do a search for mod_python, and you&apos;ll find a few code examples of integrating the two, although it looks like there&apos;s a bit of discussion about how best to do it.&lt;br&gt;
&lt;br&gt;
It appears that most people use some kind of addtional web application framework rather than writing directly in mod_python and Cheetah. The Cheetah website and docs seem to mention &lt;a href=&quot;http://www.webwareforpython.org/&quot;&gt;Webware&lt;/a&gt; a lot, while &lt;a href=&quot;http://wiki.python.org/moin/ModPython&quot;&gt;this page&lt;/a&gt; on the Python wiki mentions &lt;a href=&quot;http://aquarium.sourceforge.net/&quot;&gt;Aquarium&lt;/a&gt; as a framework that is tightly integrated with Cheetah and can run on mod_python.&lt;br&gt;
&lt;br&gt;
You may have more luck posting your question on the &lt;a href=&quot;http://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss&quot;&gt;Cheetah mailing list&lt;/a&gt;.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.32665-510343</guid>
		<pubDate>Wed, 15 Feb 2006 00:35:10 -0800</pubDate>
		<dc:creator>chrismear</dc:creator>
	</item><item>
		<title>By: gus</title>
		<link>http://ask.metafilter.com/32665/got-any-modpython-and-cheetah-resources#510494</link>	
		<description>Well, you probably won&apos;t find much out there because they are entirley seperate libs, but possibly complimentary.  There has been a lot of movement on the Python web frameworks front lately.  You should probably check out django or turbogears for a higher-level framework.  Another templateing library that people seem ti like is Myghty http://www.myghty.org/&lt;br&gt;
&lt;br&gt;
To start, just use mod_python.  See http://modpython.org/live/current/doc-html/&lt;br&gt;
&lt;br&gt;
Once you&apos;ve got that working, you can throw in Cheetah.  Cheetah is just a template engine.  That is, you take a template, pass in some variables, and it returns the template &quot;filled out&quot; with those variables.  You can use this to create all kinds of documents, not just HTML.  &lt;br&gt;
&lt;br&gt;
So the idea is once you have mod_python up and running you will see that the handlers just return a string containg the HTML document.  In the handler, you pass the information you want in to the cheetah template, compile it, and then return the resulting fillled out template.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.32665-510494</guid>
		<pubDate>Wed, 15 Feb 2006 08:52:47 -0800</pubDate>
		<dc:creator>gus</dc:creator>
	</item>
	</channel>
</rss>
