Merge from trunk

This commit is contained in:
Charles Haley 2010-09-12 21:13:35 +01:00
parent 9defefd7b2
commit 0a2f80fdbf
3 changed files with 3 additions and 3 deletions

View File

@ -59,7 +59,7 @@ class Book(Metadata):
return property(doc=doc, fget=fget)
@dynamic_property
def thumbnail(self):
def thumbnail(self):'
return None
class BookList(_BookList):

View File

@ -110,7 +110,7 @@ COPYABLE_METADATA_FIELDS = SOCIAL_METADATA_FIELDS.union(
frozenset(['title', 'title_sort', 'authors',
'author_sort', 'author_sort_map' 'comments',
'cover_data', 'tags', 'language', 'lpath',
'size'])
'size', 'thumbnail'])
SERIALIZABLE_FIELDS = SOCIAL_METADATA_FIELDS.union(
USER_METADATA_FIELDS).union(

View File

@ -243,7 +243,7 @@ class Metadata(object):
lotags = [t.lower() for t in other.tags]
lstags = [t.lower() for t in self.tags]
ot, st = map(frozenset, (lotags, lstags))
for t in st.interection(ot):
for t in st.intersection(ot):
sidx = lstags.index(t)
oidx = lotags.index(t)
self.tags[sidx] = other.tags[oidx]