Skip to content

Commit cb4e025

Browse files
author
Kiran Kumaraswamy
committed
add schema to webform converter
1 parent 4cf5c73 commit cb4e025

2 files changed

Lines changed: 566 additions & 24 deletions

File tree

dsms/knowledge/kitem.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -883,7 +883,7 @@ def populate_schema(
883883
the k-type has no v2 spec.
884884
RuntimeError: If the schema cannot be fetched or the transform fails.
885885
"""
886-
from dsms.knowledge.semantics import schema_to_oold
886+
from dsms.knowledge.semantics import schema_to_webform
887887

888888
ktype_v2 = self.dsms.get_ktype(str(self.ktype_id))
889889
if not ktype_v2 or not ktype_v2.spec:
@@ -905,7 +905,7 @@ def populate_schema(
905905
f"'{self.ktype_id}'. Available schema IDs: {valid}"
906906
)
907907

908-
oold_doc = schema_to_oold(schema_ref.url, input_data)
908+
oold_doc = schema_to_webform(schema_ref.url, input_data)
909909

910910
new_entry = KItemSchemaData(schema_id=schema_id, content=oold_doc)
911911

0 commit comments

Comments
 (0)