-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from gorserg/add_cancellation_view
add cancellation and cancellation_document views
- Loading branch information
Showing
2 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
openprocurement/tender/competitivedialogue/views/stage2/cancellation.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
25 changes: 25 additions & 0 deletions
25
openprocurement/tender/competitivedialogue/views/stage2/cancellation_document.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |