def license(self): # doing this to avoid accidentally annotate. uri = None if self.available: note = zope.component.queryAdapter(self.context, name='license_citation') if note: uri = note.dcterms_license return getLicensePortletText(self.context, uri)
def update(self): self.license_uri = self.note.dcterms_license self.license_description = getLicensePortletText( self.context, self.license_uri)