provide a new RichString attribute type
The follwing declaration:
class Card(EntityType):
content = RichString(fulltextindexed=True, default_format='text/rest')
is equivalent to :
class Card(EntityType):
content_format = String(meta=True, internationalizable=True,
default='text/rest', constraints=[format_constraint])
content = String(fulltextindexed=True)
"""template automatic tests"""
from logilab.common.testlib import TestCase, unittest_main
class DefaultTC(TestCase):
def test_something(self):
self.skip('this cube has no test')
## uncomment the import if you want to activate automatic test for your
## template
# from cubicweb.devtools.testlib import AutomaticWebTest
if __name__ == '__main__':
unittest_main()