From 3545eb55c1506420882d69caa93be28f93ee744a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Thu, 26 Dec 2013 16:27:38 +0100 Subject: [PATCH] add attribute_name attribute to class --- themis/fields/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/themis/fields/__init__.py b/themis/fields/__init__.py index 6c2b4fe..ef012c9 100644 --- a/themis/fields/__init__.py +++ b/themis/fields/__init__.py @@ -420,6 +420,8 @@ class DocHistoLines(Field): class PreviewDoc(Field): implements(IPreviewDoc, IFromUnicode) + attribute_name = None + def __init__(self, **kw): for attr in ('height', 'width', 'attribute_name'): if kw.get(attr):