Additional template tags...

Christopher Stewart christopher.stewart at gmail.com
Sun Aug 10 17:19:19 EST 2008


Hey all,

I'm porting some templates from Planet to Venus, and I need additional
template tags (namely, for geo:lat & geo:long).

According to the Universal Feed Parser documentation [1], the needed
elements should be available from feed.geo_lat and feed.geo_long. So,
assuming that I decipher python code correctly, to make them available as
template variables something like :

['lat', Plain, 'geo_lat']
['long', Plain, 'geo_long']

in the "FeedParser path to Planet tmpl names Map" (defined in
/planet/shell/tmpl.py) should do the trick. Yet it doesn't, so perhaps
there's something I'm overlooking ?

Please advise.

Thanks !

Take care,
Chris

[1] http://www.feedparser.org/docs/namespace-handling.html

-- 
Christopher Stewart
HQ : http://www.stewart-explorations.net/
Blog : http://thedailypoligraf.stewart-explorations.net/
Rock : http://www.poligraf.net/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /archives/devel/attachments/20080810/5785702e/attachment.htm 


More information about the devel mailing list