ccpnmodel.ccpncore.memops.license package

Submodules

ccpnmodel.ccpncore.memops.license.data module

Module Documentation here

ccpnmodel.ccpncore.memops.license.headers module

Module Documentation here

ccpnmodel.ccpncore.memops.license.headers.addHeader(directory, fName, paramIndex, infoModule, mode)[source]

set or replace license header in file fName from directory ‘directory’, using parameters ‘paramIndex’ from ‘infoModule’.

ccpnmodel.ccpncore.memops.license.headers.doSetLicenses(curDir, licenseDir, infoModule, level, warnSkippedFiles, mode)[source]

set license header for a directory and all subdirectories

licenseDir is the relative path from the level 0 directory to the directory with license texts

ccpnmodel.ccpncore.memops.license.headers.getFormat(fName)[source]

find corrent format

ccpnmodel.ccpncore.memops.license.headers.getHeader(**parameters)[source]

function to produce header. Parameters are (all keyword) :

mandatory : author, organization, useLicense, licenseLocation, fileName,

optional: programFunction, programType, stdContact, extraContact, references, credits

ccpnmodel.ccpncore.memops.license.headers.setLicenses(directory=None, licenseDir=None, warnSkippedFiles=True, mode='act')[source]

wrapper - set license header for ‘directory’ and all subdirectories

licenseDir is the relative path from ‘directory’ to the directory with license texts

ccpnmodel.ccpncore.memops.license.headers.showTestInfo()[source]

return formatted string with test info summary

Using global testInfo dictionary for input