示例#1
0
文件: utils.py 项目: 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