Exemplo n.º 1
0
Arquivo: utils.py Projeto: dtgit/dtedu
 def getLicenseAndHolderFromObject(self, obj):
     """ Get the copyright holder and license from an object. """
     if ILicensable.providedBy(obj):
         license = ILicense(obj)
         return license.getRightsHolder(), license.getRightsLicense()
     else:
         return None
Exemplo n.º 2
0
Arquivo: utils.py Projeto: dtgit/dtedu
 def getLicenseFromObject(self, obj):
     """ Get the copyright license for an object. """
     if ILicensable.providedBy(obj):
         license = ILicense(obj)
         return license.getRightsLicense()
     else:
         return None