Skip to content

Commit

Permalink
Merge pull request #24 from gorserg/add_cancellation_view
Browse files Browse the repository at this point in the history
add cancellation and cancellation_document views
  • Loading branch information
kroman0 committed Jul 18, 2016
2 parents c44b655 + f61da72 commit 24f9183
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# -*- coding: utf-8 -*-
from openprocurement.api.utils import opresource
from openprocurement.tender.openeu.views.cancellation import TenderCancellationResource as TenderCancellationEUResource
from openprocurement.tender.openua.views.cancellation import TenderUaCancellationResource
from openprocurement.tender.competitivedialogue.models import STAGE_2_EU_TYPE, STAGE_2_UA_TYPE


@opresource(name='Competitive Dialogue stage2 EU Cancellations',
collection_path='/tenders/{tender_id}/cancellations',
path='/tenders/{tender_id}/cancellations/{cancellation_id}',
procurementMethodType=STAGE_2_EU_TYPE,
description="Competitive Dialogue stage2 UE cancellations")
class CompetitiveDialogueEUCancellationResource(TenderCancellationEUResource):
""" TenderEU Cancellations """
pass


@opresource(name='Competitive Dialogue stage2 UA Cancellations',
collection_path='/tenders/{tender_id}/cancellations',
path='/tenders/{tender_id}/cancellations/{cancellation_id}',
procurementMethodType=STAGE_2_UA_TYPE,
description="Competitive Dialogue stage2 UA cancellations")
class CompetitiveDialogueUACancellationResource(TenderUaCancellationResource):
""" TenderUA Cancellations """
pass
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# -*- coding: utf-8 -*-
from openprocurement.api.utils import opresource
from openprocurement.tender.openeu.views.cancellation_document import TenderCancellationDocumentResource as TenderCancellationDocumentEUResource
from openprocurement.tender.openua.views.cancellation_document import TenderCancellationDocumentResource as TenderCancellationDocumentUAResource
from openprocurement.tender.competitivedialogue.models import STAGE_2_EU_TYPE, STAGE_2_UA_TYPE


@opresource(name='Competitive Dialogue stage2 EU Cancellation Documents',
collection_path='/tenders/{tender_id}/cancellations/{cancellation_id}/documents',
path='/tenders/{tender_id}/cancellations/{cancellation_id}/documents/{document_id}',
procurementMethodType=STAGE_2_EU_TYPE,
description="Competitive Dialogue stage2 EU cancellation documents")
class CompetitiveDialogueEUCancellationDocumentResource(TenderCancellationDocumentEUResource):
""" Cancellation Document """
pass


@opresource(name='Competitive Dialogue stage2 UA Cancellation Documents',
collection_path='/tenders/{tender_id}/cancellations/{cancellation_id}/documents',
path='/tenders/{tender_id}/cancellations/{cancellation_id}/documents/{document_id}',
procurementMethodType=STAGE_2_UA_TYPE,
description="Competitive Dialogue stage2 UA cancellation documents")
class CompetitiveDialogueUACancellationDocumentResource(TenderCancellationDocumentUAResource):
""" Cancellation Document """
pass

0 comments on commit 24f9183

Please sign in to comment.