2017-09-12 21:50:05 +02:00
|
|
|
# -*- 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
|
|
|
|
|
2018-03-04 22:55:37 +01:00
|
|
|
|
2017-09-12 16:50:26 +02:00
|
|
|
class GeoExtension(BaseExtension):
|
2017-09-12 21:50:05 +02:00
|
|
|
'''FeedGenerator extension for Simple GeoRSS.
|
|
|
|
'''
|
2017-09-12 16:50:26 +02:00
|
|
|
|
|
|
|
def extend_ns(self):
|
2018-03-04 22:55:37 +01:00
|
|
|
return {'georss': 'http://www.georss.org/georss'}
|