<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Quick Django Tip &#8211; Modulus</title>
	<atom:link href="http://shaneosullivan.wordpress.com/2008/09/27/quick-django-tip-modulus/feed/" rel="self" type="application/rss+xml" />
	<link>http://shaneosullivan.wordpress.com/2008/09/27/quick-django-tip-modulus/</link>
	<description>Shane O'Sullivan's technical blog... really ties the room together</description>
	<lastBuildDate>Sat, 14 Nov 2009 22:59:04 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Bob</title>
		<link>http://shaneosullivan.wordpress.com/2008/09/27/quick-django-tip-modulus/#comment-8680</link>
		<dc:creator>Bob</dc:creator>
		<pubDate>Thu, 09 Oct 2008 17:02:47 +0000</pubDate>
		<guid isPermaLink="false">http://shaneosullivan.wordpress.com/?p=143#comment-8680</guid>
		<description>Wow! It worked! Thanks a lot Shane! Next time I won&#039;t forget the semi colon.
By the way, I think your site Chofter.com is a very cool idea. The style is improving a lot too.

Thanks,</description>
		<content:encoded><![CDATA[<p>Wow! It worked! Thanks a lot Shane! Next time I won&#8217;t forget the semi colon.<br />
By the way, I think your site Chofter.com is a very cool idea. The style is improving a lot too.</p>
<p>Thanks,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shane O'Sullivan</title>
		<link>http://shaneosullivan.wordpress.com/2008/09/27/quick-django-tip-modulus/#comment-8678</link>
		<dc:creator>Shane O'Sullivan</dc:creator>
		<pubDate>Thu, 09 Oct 2008 07:31:02 +0000</pubDate>
		<guid isPermaLink="false">http://shaneosullivan.wordpress.com/?p=143#comment-8678</guid>
		<description>Hi Bob,

The reason that the tags from the JSON don&#039;t work is that DTL automatically escapes them.  To disable this behavior, use the &#039;safe&#039; command

&lt;div&gt;{{item.content&#124;safe}}&lt;/div&gt;

Also, when writing brackets for a blog post, you forgot to put a semi colon after the &amp;lt.  &#039;lt&#039; stands for &#039;less than&#039; so it gives you this &lt;.  If you want a greater than bracket, use &amp;gt ;, to give you &gt;</description>
		<content:encoded><![CDATA[<p>Hi Bob,</p>
<p>The reason that the tags from the JSON don&#8217;t work is that DTL automatically escapes them.  To disable this behavior, use the &#8217;safe&#8217; command</p>
<p>&lt;div&gt;{{item.content|safe}}&lt;/div&gt;</p>
<p>Also, when writing brackets for a blog post, you forgot to put a semi colon after the &amp;lt.  &#8216;lt&#8217; stands for &#8216;less than&#8217; so it gives you this &lt;.  If you want a greater than bracket, use &amp;gt ;, to give you &gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob</title>
		<link>http://shaneosullivan.wordpress.com/2008/09/27/quick-django-tip-modulus/#comment-8676</link>
		<dc:creator>Bob</dc:creator>
		<pubDate>Thu, 09 Oct 2008 05:30:58 +0000</pubDate>
		<guid isPermaLink="false">http://shaneosullivan.wordpress.com/?p=143#comment-8676</guid>
		<description>Hi Shane, Thanks a lot :). The problem that I am facing is that I cannot place the tag inside the json result from dojo.googleSearchStore. 

So I have for example:
&amp;ltdiv&amp;lt{{item.content}}&amp;lt/div&amp;lt

The tags of google results inside the item.content don&#039;t work. The problem is that there are bold tags inside the json data.

Sorry if I can&#039;t explain myself so well.

I appreciate a lot a piece of advice, cause I don&#039;t know what to do anymore. 

thanks again</description>
		<content:encoded><![CDATA[<p>Hi Shane, Thanks a lot <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . The problem that I am facing is that I cannot place the tag inside the json result from dojo.googleSearchStore. </p>
<p>So I have for example:<br />
&amp;ltdiv&amp;lt{{item.content}}&amp;lt/div&amp;lt</p>
<p>The tags of google results inside the item.content don&#8217;t work. The problem is that there are bold tags inside the json data.</p>
<p>Sorry if I can&#8217;t explain myself so well.</p>
<p>I appreciate a lot a piece of advice, cause I don&#8217;t know what to do anymore. </p>
<p>thanks again</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shane O'Sullivan</title>
		<link>http://shaneosullivan.wordpress.com/2008/09/27/quick-django-tip-modulus/#comment-8672</link>
		<dc:creator>Shane O'Sullivan</dc:creator>
		<pubDate>Sun, 05 Oct 2008 19:11:41 +0000</pubDate>
		<guid isPermaLink="false">http://shaneosullivan.wordpress.com/?p=143#comment-8672</guid>
		<description>hi bob

FYI, to encode a bracket for wordpress use &amp; lt ; withou spaces between.
The code u need is smth like 
foo blah &lt;b&gt;{{value}}&lt;b&gt;

And feed the template with the json data
{&quot;value&quot;:&quot;fla&quot;}</description>
		<content:encoded><![CDATA[<p>hi bob</p>
<p>FYI, to encode a bracket for wordpress use &amp; lt ; withou spaces between.<br />
The code u need is smth like<br />
foo blah &lt;b&gt;{{value}}&lt;b&gt;</p>
<p>And feed the template with the json data<br />
{&#8220;value&#8221;:&#8221;fla&#8221;}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob</title>
		<link>http://shaneosullivan.wordpress.com/2008/09/27/quick-django-tip-modulus/#comment-8669</link>
		<dc:creator>Bob</dc:creator>
		<pubDate>Wed, 01 Oct 2008 17:33:09 +0000</pubDate>
		<guid isPermaLink="false">http://shaneosullivan.wordpress.com/?p=143#comment-8669</guid>
		<description>Sorry, I could have used code tag:

&lt;code&gt;Foo bla &lt;b&gt;fla&lt;/b&gt;&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Sorry, I could have used code tag:</p>
<p><code>Foo bla <b>fla</b></code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob</title>
		<link>http://shaneosullivan.wordpress.com/2008/09/27/quick-django-tip-modulus/#comment-8668</link>
		<dc:creator>Bob</dc:creator>
		<pubDate>Wed, 01 Oct 2008 17:30:52 +0000</pubDate>
		<guid isPermaLink="false">http://shaneosullivan.wordpress.com/?p=143#comment-8668</guid>
		<description>Wordpress understands the tag, my site not...!:)

Actually this is my result:
Foo bla (tag b)fla(enclosing tag /b)</description>
		<content:encoded><![CDATA[<p>WordPress understands the tag, my site not&#8230;!:)</p>
<p>Actually this is my result:<br />
Foo bla (tag b)fla(enclosing tag /b)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob</title>
		<link>http://shaneosullivan.wordpress.com/2008/09/27/quick-django-tip-modulus/#comment-8667</link>
		<dc:creator>Bob</dc:creator>
		<pubDate>Wed, 01 Oct 2008 17:27:48 +0000</pubDate>
		<guid isPermaLink="false">http://shaneosullivan.wordpress.com/?p=143#comment-8667</guid>
		<description>Hi Shane,
I don&#039;t know if this is the right place to ask, but could you give me a tip to solve this:

Foo bla &lt;b&gt;fla&lt;/b&gt; (this is my &quot;fla&quot; query result)

I am using dojox.dtl and dojox.dtl.ext-dojo.NodeList, is there any way to make the html tag to work? Someone in #dojo told me to use dojox.wire, but I think there is a simple solution.

Thanks a lot,</description>
		<content:encoded><![CDATA[<p>Hi Shane,<br />
I don&#8217;t know if this is the right place to ask, but could you give me a tip to solve this:</p>
<p>Foo bla <b>fla</b> (this is my &#8220;fla&#8221; query result)</p>
<p>I am using dojox.dtl and dojox.dtl.ext-dojo.NodeList, is there any way to make the html tag to work? Someone in #dojo told me to use dojox.wire, but I think there is a simple solution.</p>
<p>Thanks a lot,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shane O'Sullivan</title>
		<link>http://shaneosullivan.wordpress.com/2008/09/27/quick-django-tip-modulus/#comment-8665</link>
		<dc:creator>Shane O'Sullivan</dc:creator>
		<pubDate>Sat, 27 Sep 2008 21:41:03 +0000</pubDate>
		<guid isPermaLink="false">http://shaneosullivan.wordpress.com/?p=143#comment-8665</guid>
		<description>Hi Carl,

Thanks for the tip, it suits the situation much better.  I&#039;ve changed the code to use:

&lt;div class=&quot;{% cycle &#039;odd&#039; &#039;even&#039; %}&quot;&gt;

&lt;/div&gt;</description>
		<content:encoded><![CDATA[<p>Hi Carl,</p>
<p>Thanks for the tip, it suits the situation much better.  I&#8217;ve changed the code to use:</p>
<p>&lt;div class=&#8221;{% cycle &#8216;odd&#8217; &#8216;even&#8217; %}&#8221;&gt;</p>
<p>&lt;/div&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carl</title>
		<link>http://shaneosullivan.wordpress.com/2008/09/27/quick-django-tip-modulus/#comment-8663</link>
		<dc:creator>Carl</dc:creator>
		<pubDate>Sat, 27 Sep 2008 21:31:20 +0000</pubDate>
		<guid isPermaLink="false">http://shaneosullivan.wordpress.com/?p=143#comment-8663</guid>
		<description>You can also use the cycle-tag in the template.
see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#cycle</description>
		<content:encoded><![CDATA[<p>You can also use the cycle-tag in the template.<br />
see <a href="http://docs.djangoproject.com/en/dev/ref/templates/builtins/#cycle" rel="nofollow">http://docs.djangoproject.com/en/dev/ref/templates/builtins/#cycle</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
