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
basket
Commits
cf10e2d662da
Commit
ce8393fc
authored
Jul 23, 2009
by
Sylvain Thénault
Browse files
use RichString
parent
42abf849d107
Changes
1
Hide whitespace changes
Inline
Side-by-side
schema.py
View file @
cf10e2d6
from
cubicweb.schema
import
format_cons
tr
a
in
t
from
cubicweb.schema
import
RichS
trin
g
class
Basket
(
MetaUserEntityType
):
"""a basket contains a set of other entities"""
...
...
@@ -11,9 +11,7 @@ class Basket(MetaUserEntityType):
name
=
String
(
required
=
True
,
indexed
=
True
,
internationalizable
=
True
,
maxsize
=
128
)
description_format
=
String
(
meta
=
True
,
internationalizable
=
True
,
maxsize
=
50
,
default
=
'text/rest'
,
constraints
=
[
format_constraint
])
description
=
String
(
fulltextindexed
=
True
)
description
=
RichString
(
fulltextindexed
=
True
)
in_basket
=
ObjectRelation
(
'*'
)
...
...
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