from vusion.persist import Model


class Template(Model):
    
    MODEL_TYPE = 'template'
    MODEL_VERSION = '1'
    
    fields = {
        'name': {
            'required': True
            },
        'type-template': {
            'required': True,
            'valid_value': lambda v: v['type-template'] in [
                'open-question',
                'closed-question',
                'unmatching-answer',
                'unmatching-keyword']
            },
        'template': {
            'required': True,
            }
        }

    def validate_fields(self):
        self._validate(self, self.fields)

3ff69d7557f82407b44df90b61c5a0212aa48660
<mask token>


class Template(Model):
    <mask token>
    <mask token>
    <mask token>
    <mask token>

<mask token>


class Template(Model):
    <mask token>
    <mask token>
    <mask token>

    def validate_fields(self):
        self._validate(self, self.fields)

<mask token>


class Template(Model):
    MODEL_TYPE = 'template'
    MODEL_VERSION = '1'
    fields = {'name': {'required': True}, 'type-template': {'required': 
        True, 'valid_value': lambda v: v['type-template'] in [
        'open-question', 'closed-question', 'unmatching-answer',
        'unmatching-keyword']}, 'template': {'required': True}}

    def validate_fields(self):
        self._validate(self, self.fields)

from vusion.persist import Model


class Template(Model):
    MODEL_TYPE = 'template'
    MODEL_VERSION = '1'
    fields = {'name': {'required': True}, 'type-template': {'required': 
        True, 'valid_value': lambda v: v['type-template'] in [
        'open-question', 'closed-question', 'unmatching-answer',
        'unmatching-keyword']}, 'template': {'required': True}}

    def validate_fields(self):
        self._validate(self, self.fields)

from vusion.persist import Model


class Template(Model):
    
    MODEL_TYPE = 'template'
    MODEL_VERSION = '1'
    
    fields = {
        'name': {
            'required': True
            },
        'type-template': {
            'required': True,
            'valid_value': lambda v: v['type-template'] in [
                'open-question',
                'closed-question',
                'unmatching-answer',
                'unmatching-keyword']
            },
        'template': {
            'required': True,
            }
        }

    def validate_fields(self):
        self._validate(self, self.fields)
