예제 #1
0
class Topic(ADT_WITH_ID):
    assessment_id = IntField()
    stakeholder_id = IntField()
    slug = StrField()
    code = StrField()
    name = StrField()
    description = StrField()
예제 #2
0
class SubQuestion(ADT_WITH_ID):
    sub_form_id = IntField()
    order = IntField()
    columns = IntField()
    slug = StrField()
    title = StrField()
    description = StrField()
    data_type = StrField()
    options = DictField(null=True)
예제 #3
0
class Aspect(ADT_WITH_ID):
    topic_id = IntField()
    order = IntField()
    slug = StrField()
    code = StrField()
    title = StrField()
    quick_description = StrField()
    valorative_questions = StrField()
    mandatory_indicators = StrField()
    evaluation_levels = StrField()
    explanatory_notes = StrField()
    is_negative = BoolField()
예제 #4
0
class OrganizationForUpdate(ADT):
    address = StrField()
    state = StrField()
    country = StrField()
    sector = StrField()
    web = StrField()
    description = StrField()
예제 #5
0
class Question(ADT_WITH_ID):
    form_id = IntField()
    order = IntField()
    slug = StrField()
    title = StrField()
    quick_description = StrField()
    full_description = StrField()
    examples = StrField()
    data_type = StrField()
    options = DictField(null=True)
예제 #6
0
class Organization(ADT_WITH_ID):
    name = StrField()
    address = StrField()
    state = StrField()
    country = StrField()
    sector = StrField()
    web = StrField()
    description = StrField()

    def edit(self, organization_for_update):
        self.address = organization_for_update.address
        self.state = organization_for_update.address
        self.country = organization_for_update.country
        self.sector = organization_for_update.address
        self.web = organization_for_update.address
        self.description = organization_for_update.address
class Assessment(ADT_WITH_ID):
    name = StrField()
    slug = StrField()
    version = StrField()
    year = StrField()
    description = StrField()
예제 #8
0
class Form(ADT_WITH_ID):
    assessment_id = IntField()
    stakeholder_id = IntField(null=True)
    slug = StrField()
    name = StrField()
    description = StrField()
예제 #9
0
class SubForm(ADT_WITH_ID):
    form_id = IntField()
    order = IntField()
    slug = StrField()
    caption = StrField()
    description = StrField()
class Card(ADT_WITH_ID):
    deck_id = IntField()
    title = StrField()
    strength = IntField()
    defense = IntField()
class Deck(ADT_WITH_ID):
    name = StrField()
예제 #12
0
class Mineral(ADT_WITH_ID):
    name = StrField()
    description = StrField()
    hardness = IntField()
예제 #13
0
class OrganizationForCreate(ADT):
    name = StrField()