def example_type(): return TypeModel(public_id=1, name='test', label='Test', author_id=1, creation_time=datetime.now(), active=True, version=None, description='Test type', render_meta=TypeRenderMeta( sections=[ TypeFieldSection( type='section', name='test-section', label='TEST', fields=['dummy-field-1', 'dummy-field-2']) ], summary=TypeSummary(fields=['dummy-field-1'])), fields=[{ "type": "text", "name": "dummy-field-1", "label": "Test" }, { "type": "text", "name": "dummy-field-2", "label": "Test" }], acl=AccessControlList(activated=False, groups=GroupACL(includes=None)))
def example_type(): return TypeModel( public_id=1, name='test', label='Test', author_id=1, creation_time=datetime.now(), active=True, version=None, description='Test type', render_meta=TypeRenderMeta( sections=[ TypeFieldSection(type='section', name='test-section', label='TEST', fields=['test-field']) ], summary=TypeSummary(fields=['test-field']) ), fields=[{ "type": "text", "name": "test-field", "label": "Test", "required": False, "description": "Description", "regex": "TEST .*", "placeholder": "entre you value", "value": "this ist the default value", "helperText": "Help, i need somebody" }], acl=AccessControlList(activated=False, groups=GroupACL(includes=None)) )