Fixed some typos
This commit is contained in:
parent
d6cbfdb81c
commit
1d0d13fdc6
5 changed files with 11 additions and 11 deletions
|
@ -32,7 +32,7 @@
|
||||||
|
|
||||||
Note that for the methods which set fields that can occur more than once in
|
Note that for the methods which set fields that can occur more than once in
|
||||||
a feed you can use all of the following ways to provide data:
|
a feed you can use all of the following ways to provide data:
|
||||||
|
|
||||||
- Provide the data for that element as keyword arguments
|
- Provide the data for that element as keyword arguments
|
||||||
- Provide the data for that element as dictionary
|
- Provide the data for that element as dictionary
|
||||||
- Provide a list of dictionaries with the data for several elements
|
- Provide a list of dictionaries with the data for several elements
|
||||||
|
@ -131,6 +131,6 @@
|
||||||
|
|
||||||
You can test the module by simply executing::
|
You can test the module by simply executing::
|
||||||
|
|
||||||
$ pythom -m feedgen
|
$ python -m feedgen
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -20,12 +20,12 @@ def print_enc(s):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
if len(sys.argv) != 2 or not (
|
if len(sys.argv) != 2 or not (
|
||||||
sys.argv[1].endswith('rss') \
|
sys.argv[1].endswith('rss') \
|
||||||
or sys.argv[1].endswith('atom') \
|
or sys.argv[1].endswith('atom') \
|
||||||
or sys.argv[1].endswith('podcast') ):
|
or sys.argv[1].endswith('podcast') ):
|
||||||
print_enc ('Usage: %s ( <file>.atom | atom | <file>.rss | rss | podcast )' % \
|
print_enc ('Usage: %s ( <file>.atom | atom | <file>.rss | rss | podcast )' % \
|
||||||
'pythom -m feedgen')
|
'python -m feedgen')
|
||||||
print_enc ('')
|
print_enc ('')
|
||||||
print_enc (' atom -- Generate ATOM test output and print it to stdout.')
|
print_enc (' atom -- Generate ATOM test output and print it to stdout.')
|
||||||
print_enc (' rss -- Generate RSS test output and print it to stdout.')
|
print_enc (' rss -- Generate RSS test output and print it to stdout.')
|
||||||
|
|
|
@ -51,7 +51,7 @@ class DcBaseExtension(BaseExtension):
|
||||||
:returns: The feed root element
|
:returns: The feed root element
|
||||||
'''
|
'''
|
||||||
DCELEMENTS_NS = 'http://purl.org/dc/elements/1.1/'
|
DCELEMENTS_NS = 'http://purl.org/dc/elements/1.1/'
|
||||||
|
|
||||||
feed = atom_feed
|
feed = atom_feed
|
||||||
|
|
||||||
for elem in ['contributor', 'coverage', 'creator', 'date', 'description',
|
for elem in ['contributor', 'coverage', 'creator', 'date', 'description',
|
||||||
|
@ -151,7 +151,7 @@ class DcBaseExtension(BaseExtension):
|
||||||
|
|
||||||
def dc_creator(self, creator=None, replace=False):
|
def dc_creator(self, creator=None, replace=False):
|
||||||
'''Get or set the dc:creator which is an entity primarily responsible for
|
'''Get or set the dc:creator which is an entity primarily responsible for
|
||||||
making the resource.
|
making the resource.
|
||||||
|
|
||||||
For more information see:
|
For more information see:
|
||||||
http://dublincore.org/documents/dcmi-terms/#elements-creator
|
http://dublincore.org/documents/dcmi-terms/#elements-creator
|
||||||
|
@ -419,7 +419,7 @@ class DcEntryExtension(DcBaseExtension):
|
||||||
'''
|
'''
|
||||||
def extend_atom(self, entry):
|
def extend_atom(self, entry):
|
||||||
'''NYI. Differs from RSS Implementation?
|
'''NYI. Differs from RSS Implementation?
|
||||||
|
|
||||||
'''
|
'''
|
||||||
return entry
|
return entry
|
||||||
|
|
||||||
|
|
|
@ -112,7 +112,7 @@ class PodcastExtension(BaseExtension):
|
||||||
|
|
||||||
def itunes_block(self, itunes_block=None):
|
def itunes_block(self, itunes_block=None):
|
||||||
'''Get or set the ITunes block attribute. Use this to prevent the entire
|
'''Get or set the ITunes block attribute. Use this to prevent the entire
|
||||||
podcast from appearing in the iTunes podcast directory.
|
podcast from appearing in the iTunes podcast directory.
|
||||||
|
|
||||||
:param itunes_block: Block the podcast.
|
:param itunes_block: Block the podcast.
|
||||||
:returns: If the podcast is blocked.
|
:returns: If the podcast is blocked.
|
||||||
|
@ -286,10 +286,10 @@ class PodcastExtension(BaseExtension):
|
||||||
_itunes_categories = {
|
_itunes_categories = {
|
||||||
'Arts': [ 'Design', 'Fashion & Beauty', 'Food', 'Literature',
|
'Arts': [ 'Design', 'Fashion & Beauty', 'Food', 'Literature',
|
||||||
'Performing Arts', 'Visual Arts' ],
|
'Performing Arts', 'Visual Arts' ],
|
||||||
'Business' : [ 'Business News', 'Careers', 'Investing',
|
'Business' : [ 'Business News', 'Careers', 'Investing',
|
||||||
'Management & Marketing', 'Shopping' ],
|
'Management & Marketing', 'Shopping' ],
|
||||||
'Comedy' : [],
|
'Comedy' : [],
|
||||||
'Education' : [ 'Education', 'Education Technology',
|
'Education' : [ 'Education', 'Education Technology',
|
||||||
'Higher Education', 'K-12', 'Language Courses', 'Training' ],
|
'Higher Education', 'K-12', 'Language Courses', 'Training' ],
|
||||||
'Games & Hobbies' : [ 'Automotive', 'Aviation', 'Hobbies',
|
'Games & Hobbies' : [ 'Automotive', 'Aviation', 'Hobbies',
|
||||||
'Other Games', 'Video Games' ],
|
'Other Games', 'Video Games' ],
|
||||||
|
|
|
@ -95,7 +95,7 @@ class PodcastEntryExtension(BaseEntryExtension):
|
||||||
|
|
||||||
def itunes_block(self, itunes_block=None):
|
def itunes_block(self, itunes_block=None):
|
||||||
'''Get or set the ITunes block attribute. Use this to prevent episodes
|
'''Get or set the ITunes block attribute. Use this to prevent episodes
|
||||||
from appearing in the iTunes podcast directory.
|
from appearing in the iTunes podcast directory.
|
||||||
|
|
||||||
:param itunes_block: Block podcast episodes.
|
:param itunes_block: Block podcast episodes.
|
||||||
:returns: If the podcast episode is blocked.
|
:returns: If the podcast episode is blocked.
|
||||||
|
|
Loading…
Reference in a new issue