Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def write_cldf(req, contrib, valuesets, features, outdir):
ds = Dataset('wals-chapter-%s' % contrib.id)
ds.fields = (
'ID',
'Language_ID',
'Language_name',
'Parameter_ID',
'Value',
'DomainElement',
'Source',
'Comment')
ds.table.schema.aboutUrl = url_template(req, 'valueset', 'ID')
ds.table.schema.columns['Language_ID'].valueUrl = Identifier(
type='glottolog', name='{Language_ID}').url()
ds.table.schema.columns['Parameter_ID'].valueUrl = url_template(
req, 'parameter', 'Parameter_ID')
ds.metadata['dc:bibliographicCitation '] = text_citation(req, contrib)