summaryrefslogtreecommitdiffstats
path: root/feedgen/ext/geo.py
blob: b6384d4304d32b58287da637537a0190cc047cdb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# -*- 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.
'''

from feedgen.ext.base import BaseExtension


class GeoExtension(BaseExtension):
    '''FeedGenerator extension for Simple GeoRSS.
    '''

    def extend_ns(self):
        return {'georss': 'http://www.georss.org/georss'}