Fixed GeoRSS Extemsion
This patch fixes a few issues with pzll request #66 which adds supprt for a simple GeoRSS extension.
This commit is contained in:
parent
2d9e85d956
commit
27e9cd0c9a
3 changed files with 6 additions and 3 deletions
|
@ -12,9 +12,10 @@
|
|||
|
||||
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' }
|
||||
return {'georss': 'http://www.georss.org/georss'}
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
from lxml import etree
|
||||
from feedgen.ext.base import BaseEntryExtension
|
||||
|
||||
|
||||
class GeoEntryExtension(BaseEntryExtension):
|
||||
'''FeedEntry extension for Simple GeoRSS.
|
||||
'''
|
||||
|
@ -45,7 +46,7 @@ class GeoEntryExtension(BaseEntryExtension):
|
|||
'''Get or set the georss:point of the entry.
|
||||
|
||||
:param point: The GeoRSS formatted point (i.e. "42.36 -71.05")
|
||||
:returns: The author of the podcast.
|
||||
:returns: The current georss:point of the entry.
|
||||
'''
|
||||
|
||||
if point is not None:
|
||||
|
|
|
@ -136,6 +136,7 @@ class TestExtensionPodcast(unittest.TestCase):
|
|||
namespaces=ns)
|
||||
assert author == ['Lars Kiesow']
|
||||
|
||||
|
||||
class TestExtensionGeo(unittest.TestCase):
|
||||
|
||||
def setUp(self):
|
||||
|
|
Loading…
Reference in a new issue