示例#1
0
class CompetitiveDialogueEUBidResource(BaseResourceEU):
    """ Tender EU bids """

    patch = json_view(
        content_type="application/json",
        permission='edit_bid',
        validators=(validate_patch_bid_data, ))(patch_bid_first_stage)
class CompetitiveDialogueUABidResource(BaseResourceEU):
    """ Tender UA bids """

    patch = json_view(
        content_type="application/json",
        permission='edit_bid',
        validators=(
            validate_patch_bid_data, validate_bid_operation_not_in_tendering,
            validate_bid_operation_period, validate_update_deleted_bid,
            validate_bid_status_update_not_to_pending))(patch_bid_first_stage)
class TenderESCOResource(TenderEUResource):
    """ Resource handler for Tender ESCO """

    # TODO: remove this method after adding auction
    patch = json_view(
        content_type="application/json",
        validators=(validate_patch_tender_ua_data,
                    validate_tender_status_update_in_terminated_status,
                    validate_tender_status_update_not_in_pre_qualificaton,
                    validate_submission_method_details),
        permission='edit_tender')(TenderEUResource.patch)