<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Pau Gay &#187; python</title>
	<atom:link href="http://paugay.com/blog/category/python/feed" rel="self" type="application/rss+xml" />
	<link>http://paugay.com/blog</link>
	<description>eres lo que haces, no lo que dices</description>
	<lastBuildDate>Mon, 14 Nov 2011 00:11:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Web.py, i=web.input() y isset</title>
		<link>http://paugay.com/blog/2008/07/webpy-iwebinput-y-isset.html</link>
		<comments>http://paugay.com/blog/2008/07/webpy-iwebinput-y-isset.html#comments</comments>
		<pubDate>Fri, 25 Jul 2008 22:00:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[desarrollo]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://root.elr1c.es/paugay/?p=83</guid>
		<description><![CDATA[Estas son las palabras clave de este post. Llevo un rato buscando pero no he encontrado nada al respecto y me parece una cosa básica. Al final he dado con ello. Tengo una aplicación en Python con el framework web Web.py. Quiero recoger un parámetro (da igual si es GET o POST) pero este parámetro [...]]]></description>
			<content:encoded><![CDATA[<p>Estas son las palabras clave de este post. Llevo un rato buscando pero no he encontrado nada al respecto y me parece una cosa básica. Al final he dado con ello.</p>
<p>Tengo una aplicación en Python con el framework web <a href="http://webpy.org/">Web.py</a>. Quiero recoger un parámetro (da igual si es GET o POST) pero este parámetro no siempre lo voy a tener.</p>
<p>En PHP usamos la función<span style="font-weight: bold;font-family:courier new;" > isset($_GET['clave'])</span> y lo que buscaba era una función similar en Python.</p>
<p><span style="font-weight: bold;">Resultado:</span></p>
<p><span style="font-family:courier new;">class nombre_de_la_clase:        </span><br /><span style="font-family:courier new;">     def GET(self): </span><br /><span style="font-family:courier new;">          i = web.input()</span><br /><span style="font-family:courier new;">           for key, value in i.items():</span><br /><span style="font-family:courier new;">                print &#8220;key = %s&#8221; % key</span><br /><span style="font-family:courier new;">                print &#8220;value = %s&#8221; % value</span></p>
<p>Pues ahí lo dejo!</p>
<p><span style="font-style: italic;">Nota: ¿</span><span style="font-weight: bold; font-style: italic;">MacBook Touch</span><span style="font-style: italic;">? (</span><a style="font-style: italic;" href="http://www.applesfera.com/2008/01/08-macbook-touch-por-favor-apple-fabrica-esto">applesfera</a><span style="font-style: italic;">, </span><a style="font-style: italic;" href="http://www.xataka.com/2008/07/22-rumores-sobre-un-macbook-touch">xataca</a><span style="font-style: italic;">, </span><a style="font-style: italic;" href="http://informatica-practica.net/wordpress/index.php/2008/07/23/macbook-touch-un-rumor-que-cobra-fuerza/">informatica-practica</a><span style="font-style: italic;">) &#8230; ¿Serà verdad?</span></p>
]]></content:encoded>
			<wfw:commentRss>http://paugay.com/blog/2008/07/webpy-iwebinput-y-isset.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

