Skip to content
Snippets Groups Projects

F deprecate yamlapi

Merged Alexander Kreft requested to merge f-deprecate-yamlapi into dev
1 file
+ 1
0
Compare changes
  • Side-by-side
  • Inline
+ 1
0
@@ -102,7+102,7 @@
@@ -102,7+102,7 @@
def process(text):
def process(text):
"""Do some replacements on the original file to obtain valid yaml."""
"""Do some replacements on the original file to obtain valid yaml."""
warnings.warn("""
warnings.warn("""
This function is deprecated and will be removed with the next release.
This function is deprecated and will be removed with the next release.
Please use caosdb-advanced-user-tools/models/data_model.py for a
Please use caosdb-advanced-user-tools/models/data_model.py for a
@@ -137,7+137,7 @@
@@ -137,7+137,7 @@
This function is deprecated and will be removed with the next release.
This function is deprecated and will be removed with the next release.
Please use caosdb-advanced-user-tools/models/data_model.py for a
Please use caosdb-advanced-user-tools/models/data_model.py for a
similar functionality.""", DeprecationWarning)
similar functionality.""", DeprecationWarning)
 
con = get_connection()
prs = etree.XMLParser(remove_blank_text=True)
prs = etree.XMLParser(remove_blank_text=True)
sent_xml = etree.tostring(
sent_xml = etree.tostring(
etree.fromstring(
etree.fromstring(
Loading