entries = [
  { 'itunes:name': foo,
...
  }
]

Results in the following:

   'itunes:owner' = [
SyntaxError: keyword can't be an expression

Curly Brace dictionary notation seemed to work for the html view:

      <!-- content -->
      <div id="content" style="width: 100%" >


<h2>Feed</h2>

{&#x27;description&#x27;: &#x27;My Description&#x27;,
&#x27;language&#x27;: &#x27;en&#x27;, &#x27;title&#x27;: &#x27;My
Title&#x27;, &#x27;itunes:owner&#x27;: {&#x27;itunes:name&#x27;:
&#x27;Webmaster&#x27;, &#x27;itunes:email&#x27;:
&#x27;[email protected]&#x27;}, &#x27;link&#x27;: &#x27;http://
example.com&#x27;, &#x27;copyright&#x27;: &#x27;(c) 2011
Example&#x27;}


      </div>
      <!-- content -->

However, in RSS view I received this:

RSS error<!--
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
 //--
>

Seems odd that it didn't generate a ticket.

I'll do a bit of digging to see if I can find why... Any help is
appreciated.

On Apr 27, 11:51 am, Jonathan Lundell <[email protected]> wrote:
> On Apr 27, 2011, at 8:30 AM, Nite wrote:
>
>
>
> > def feed():
> >    return dict(title="my feed",
> >                link="http://feed.example.com";,
> >                description="my first feed",
> >                entries=[
> >                  dict(title="my feed",
> >                  link="http://feed.example.com";,
> >                  description="my first feed")
> >                ])
>
> > The issue is that iTunes compatible podcasts have XML files with
> > ':' (colons) in the field name which is disallowed by python syntax
> > ('itunes:name = foo' is disallowed).
>
> If you're referring to the dict, you can use this syntax:
>
> entries = [
>   { 'itunes:name': foo,
> ...
>   }
> ]

Reply via email to