1 # This file is part of Librarian, licensed under GNU Affero GPLv3 or later.
2 # Copyright © Fundacja Wolne Lektury. See NOTICE for more information.
4 from ..base import WLElement
5 from ..masters import Master
8 class Utwor(WLElement):
13 if self.meta_object is not None:
14 return self.meta_object
16 # Deprecated: allow RDF record in master.
18 if isinstance(c, Master) and c.meta_object is not None:
20 # This should not generally happen.
21 if self.getparent() is not None:
22 return self.getparent().meta
24 return self.document.base_meta
29 if isinstance(c, Master):