X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/12b5230d8fdb3ad995e867fb5d58a69e8a627e68..1423b7f55cedaf4afdb0b8d6060e1ddae7b0c44a:/librarian/picture.py?ds=sidebyside diff --git a/librarian/picture.py b/librarian/picture.py index dbbb4de..1aa1d07 100644 --- a/librarian/picture.py +++ b/librarian/picture.py @@ -1,4 +1,6 @@ # -*- coding: utf-8 -*- +from operator import and_ + from dcparser import Field, WorkInfo, DCNS from librarian import (RDFNS, ValidationError, NoDublinCore, ParseError, WLURI) from xml.parsers.expat import ExpatError @@ -7,8 +9,6 @@ from StringIO import StringIO from lxml import etree from lxml.etree import (XMLSyntaxError, XSLTApplyError, Element) import re -from functools import * -from operator import * class WLPictureURI(WLURI): @@ -96,6 +96,7 @@ class WLPicture(object): self.picture_info = PictureInfo.from_element(self.rdf_elem) else: self.picture_info = None + self.frame = None @classmethod def from_string(cls, xml, *args, **kwargs):