python-feedgen/feedgen/ext/geo.py

22 lines
486 B
Python
Raw Permalink Normal View History

# -*- coding: utf-8 -*-
'''
feedgen.ext.geo
~~~~~~~~~~~~~~~~~~~
Extends the FeedGenerator to produce Simple GeoRSS feeds.
:copyright: 2017, Bob Breznak <bob.breznak@gmail.com>
:license: FreeBSD and LGPL, see license.* for more details.
'''
2017-09-12 16:50:26 +02:00
from feedgen.ext.base import BaseExtension
2017-09-12 16:50:26 +02:00
class GeoExtension(BaseExtension):
'''FeedGenerator extension for Simple GeoRSS.
'''
2017-09-12 16:50:26 +02:00
def extend_ns(self):
return {'georss': 'http://www.georss.org/georss'}