fikset litt på gdata-modulen

This commit is contained in:
2010-09-24 15:28:09 +00:00
parent 9d3d77cbf6
commit 46398a5b49
3 changed files with 19 additions and 6 deletions

View File

@@ -289,9 +289,9 @@ class Book(_AtomFromString, gdata.GDataEntry):
_tag = 'entry'
_namespace = atom.ATOM_NAMESPACE
_children = gdata.GDataEntry._children.copy()
for i in (Creator, Identifier, Publisher, Subject,):
for i in (Creator, Identifier, Publisher, Subject, Format):
_children['{%s}%s' % (i._namespace, i._tag)] = (i._tag, [i])
for i in (Date, Description, Format, Viewability, Embeddability,
for i in (Date, Description, Viewability, Embeddability,
Review, Rating): # Review, Rating maybe only in anno/lib entrys
_children['{%s}%s' % (i._namespace, i._tag)] = (i._tag, i)
# there is an atom title as well, should we clobber that?
@@ -332,7 +332,7 @@ class Book(_AtomFromString, gdata.GDataEntry):
if self.description:
d['description'] = self.description.text
if self.format:
d['format'] = self.format.text
d['format'] = [x.text for x in self.format]
if self.identifier:
d['identifiers'] = [('google_id', self.identifier[0].text)]
for x in self.identifier[1:]: