linkahead.yamlapi module

!!! Deprecated !!! YAML interface for the database (LinkAhead)

linkahead.yamlapi.append_sublist(v, newel, def_entity_type)
linkahead.yamlapi.dict_to_xml(d)
d: The dictionary (possibly loaded from yaml)

to convert to linkahead-xml.

linkahead.yamlapi.insert_yaml_file(yamlfilename, simulate=False)

Inserts the contents of ‘yamlfilename’ into the database.

Set ‘simulate’ to True if you don’t actually want to insert the xml, but only receive what would be sent.

linkahead.yamlapi.kv_to_xml(k, v)
linkahead.yamlapi.process(text)

Do some replacements on the original file to obtain valid yaml.

linkahead.yamlapi.yaml_file_to_xml(yamlfilename)
linkahead.yamlapi.yaml_to_xml(yamlstr)