# -*- coding: utf-8 -*-
+#
+# This file is part of Librarian, licensed under GNU Affero GPLv3 or later.
+# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
+#
from xml.parsers.expat import ExpatError
from datetime import date
import time
Field( DCNS('rights.license'), 'license', required=False),
Field( DCNS('rights'), 'license_description'),
)
+
+ @property
+ def slug(self):
+ return self.url.rsplit('/', 1)[1]
@classmethod
def from_string(cls, xml):