File: geo.py

package info (click to toggle)
python-feedgen 1.0.0-9
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 508 kB
  • sloc: python: 4,412; makefile: 175; javascript: 26
file content (21 lines) | stat: -rw-r--r-- 486 bytes parent folder | download | duplicates (2)
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'}