Instead of using dict(), can you use {} notation to create the dictionary? 
For example:
 
{'itunes:name':'foo'}
 
Anthony

On Wednesday, April 27, 2011 11:30:05 AM UTC-4, Nite wrote:

> I am attempting to create an itunes compatible podcast using the RSS 
> capabilities of Web2py. 
>
> Per the Book (http://web2py.com/book/default/chapter/09#RSS) the 
> format is as follows: 
>
> 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). 
>
> Here's an example itunes podcast from the Apple site(http:// 
> www.apple.com/itunes/podcasts/specs.html#example): 
>
> <itunes:name>John Doe</itunes:name> 
>
> Is there a way to use Web2py RSS capability to generate fields with a 
> colon in the name or do I need to write my own view and simply 
> populate the fields? 
>
>
>
>
>
>

Reply via email to