add attribute_name attribute to class

This commit is contained in:
Frédéric Péters 2013-12-26 16:27:38 +01:00
parent 926069d07a
commit 3545eb55c1
1 changed files with 2 additions and 0 deletions

View File

@ -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):