Convert and cache office documents at the document version level for faster page image retrieval

This commit is contained in:
Roberto Rosario
2015-06-24 01:04:35 -04:00
parent 3d68e79654
commit b18888b3f7
7 changed files with 116 additions and 69 deletions

View File

@@ -263,6 +263,9 @@ class SourceColumn(object):
return cls._registry[source.__class__]
except KeyError:
return ()
except TypeError:
# unhashable type: list
return ()
def __init__(self, source, label, attribute):
self.__class__._registry.setdefault(source, [])