コード例 #1
0
ファイル: application.py プロジェクト: parc-jason/mds
    class _ModelSchema(Base._ModelSchema):
        application_guid = fields.String(dump_only=True)
        now_application_guid = fields.String(dump_only=True)
        mine_guid = fields.String(dump_only=True)
        sandgrvqrytotalmineresunits = fields.String(validate=validate.OneOf(
            choices=unit_type_map.keys()))
        underexptotaloreunits = fields.String(validate=validate.OneOf(
            choices=unit_type_map.keys()))
        underexptotalwasteunits = fields.String(validate=validate.OneOf(
            choices=unit_type_map.keys()))
        sandgrvqryannualextrestunits = fields.String(validate=validate.OneOf(
            choices=unit_type_map.keys()))
        typeofpermit = fields.String(validate=validate.OneOf(
            choices=type_of_permit_map.keys()))
        landcommunitywatershed = fields.String(validate=validate.OneOf(
            choices=NOW_SUBMISSIONS_YES_NO))
        archsitesaffected = fields.String(validate=validate.OneOf(
            choices=NOW_SUBMISSIONS_YES_NO))
        fuellubstoreonsite = fields.String(validate=validate.OneOf(
            choices=NOW_SUBMISSIONS_YES_NO))
        placerundergroundoperations = fields.String(validate=validate.OneOf(
            choices=NOW_SUBMISSIONS_YES_NO))
        placerhandoperations = fields.String(validate=validate.OneOf(
            choices=NOW_SUBMISSIONS_YES_NO))
        pondsexfiltratedtoground = fields.String(validate=validate.OneOf(
            choices=NOW_SUBMISSIONS_YES_NO))
        pondsrecycled = fields.String(validate=validate.OneOf(
            choices=NOW_SUBMISSIONS_YES_NO))
        pondsdischargedtoenv = fields.String(validate=validate.OneOf(
            choices=NOW_SUBMISSIONS_YES_NO))
        bcexplosivespermitissued = fields.String(validate=validate.OneOf(
            choices=NOW_SUBMISSIONS_YES_NO))
        storeexplosivesonsite = fields.String(validate=validate.OneOf(
            choices=NOW_SUBMISSIONS_YES_NO))
        sandgrvqrywithinaglandres = fields.String(validate=validate.OneOf(
            choices=NOW_SUBMISSIONS_YES_NO))
        sandgrvqrylocalgovsoilrembylaw = fields.String(validate=validate.OneOf(
            choices=NOW_SUBMISSIONS_YES_NO))
        sandgrvqrygrdwtrexistingareas = fields.String(validate=validate.OneOf(
            choices=NOW_SUBMISSIONS_YES_NO))
        sandgrvqrygrdwtrtestpits = fields.String(validate=validate.OneOf(
            choices=NOW_SUBMISSIONS_YES_NO))
        sandgrvqrygrdwtrtestwells = fields.String(validate=validate.OneOf(
            choices=NOW_SUBMISSIONS_YES_NO))

        noticeofworktype = FieldTemplate(
            field=fields.String, one_of='NOWApplicationType_description')
        status = FieldTemplate(field=fields.String,
                               one_of='NOWApplicationStatus_description')
コード例 #2
0
ファイル: application_nda.py プロジェクト: parc-jason/mds
 class _ModelSchema(Base._ModelSchema):
     application_nda_guid = fields.String(dump_only=True)
     mine_guid = fields.String(dump_only=True)
     status = FieldTemplate(field=fields.String,
                            one_of='NOWApplicationStatus_description')
コード例 #3
0
 class _ModelSchema(Base._ModelSchema):
     bond_id = fields.Integer(dump_only=True)
     bond_guid = fields.String(dump_only=True)
     bond_type_code = FieldTemplate(field=fields.String, one_of='BondType')
     bond_status_code = FieldTemplate(field=fields.String,
                                      one_of='BondStatus')
コード例 #4
0
ファイル: bond_document.py プロジェクト: cryptobuks1/mds
 class _ModelSchema(Base._ModelSchema):
     bond_document_type_code = FieldTemplate(field=fields.String,
                                             one_of='BondDocumentType')