Commit 5a705ae2 authored by Élodie Thiéblin's avatar Élodie Thiéblin
Browse files

WIP: create YAMS type to show EditorJsString in schema

parent 413568b499a9
Pipeline #54752 failed with stage
in 55 seconds
...@@ -21,18 +21,32 @@ from yams.constraints import BoundaryConstraint ...@@ -21,18 +21,32 @@ from yams.constraints import BoundaryConstraint
from yams import MARKER from yams import MARKER
def EditorJsString( class EditorJsString(String):
required: bool = False, etype = "EditorJsString"
formula=MARKER,
override: bool = False, def __init__(
**kwargs, required: bool = False,
): formula=MARKER,
return String( override: bool = False,
required=required,
formula=formula,
override=override,
**kwargs, **kwargs,
) ):
super().__init__(required=required,
formula=formula,
override=override,
**kwargs)
# def EditorJsString(
# required: bool = False,
# formula=MARKER,
# override: bool = False,
# **kwargs,
# ):
# return String(
# required=required,
# formula=formula,
# override=override,
# **kwargs,
# )
class Museum(EntityType): class Museum(EntityType):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment