Esempio n. 1
0
    def form_to_db_schema(self):
        schema = DefaultDatasetForm.form_to_db_schema(self)

        schema.update({
            'dataset_type': [ignore_missing, unicode],
            'evaluations': evaluation_model,
        })

        return schema
Esempio n. 2
0
    def form_to_db_schema(self):
	schema = DefaultDatasetForm.form_to_db_schema(self)

        schema.update({
            'dataset_type': [ignore_missing, unicode],
	    'evaluations': evaluation_model,
        })

	return schema
Esempio n. 3
0
    def db_to_form_schema(self):
        schema = package_form_schema()

        # Configuration to get working the extension
        schema.update({
            'id': [ignore_missing, unicode],
            'isopen': [ignore_missing],
        })

        schema['groups'].update({
            'name': [not_empty, unicode],
            'title': [ignore_missing],
            'capacity': [ignore_missing, unicode]
        })

        # SourcePlanet customization
        schema.update({
            'dataset_type': [ignore_missing],
            'evaluations': evaluation_model,
        })

        return schema
Esempio n. 4
0
    def db_to_form_schema(self):
        schema = package_form_schema()

        # Configuration to get working the extension
        schema.update({
            'id': [ignore_missing, unicode],
            'isopen': [ignore_missing],
        })

        schema['groups'].update({
            'name': [not_empty, unicode],
            'title': [ignore_missing],
            'capacity': [ignore_missing, unicode]
        })

        # SourcePlanet customization
        schema.update({
            'dataset_type': [ignore_missing],
            'evaluations': evaluation_model,
        })

        return schema