Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubes
tuto
Commits
18bf11c768ef
Commit
5a705ae2
authored
May 07, 2021
by
Élodie Thiéblin
Browse files
WIP: create YAMS type to show EditorJsString in schema
parent
413568b499a9
Pipeline
#54752
failed with stage
in 55 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
cubicweb_tuto/schema.py
View file @
18bf11c7
...
...
@@ -21,18 +21,32 @@ from yams.constraints import BoundaryConstraint
from
yams
import
MARKER
def
EditorJsString
(
required
:
bool
=
False
,
formula
=
MARKER
,
override
:
bool
=
False
,
**
kwargs
,
):
return
String
(
required
=
required
,
formula
=
formula
,
override
=
override
,
class
EditorJsString
(
String
):
etype
=
"EditorJsString"
def
__init__
(
required
:
bool
=
False
,
formula
=
MARKER
,
override
:
bool
=
False
,
**
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
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment