コード例 #1
0
# Contribution list
event_mgmt.add_url_rule('/contributions/', 'confModifContribList', conferenceModif.RHContributionList,
                        methods=('GET', 'POST'))
event_mgmt.add_url_rule('/contributions/direct-access', 'confModifContribList-contribQuickAccess',
                        conferenceModif.RHContribQuickAccess, methods=('GET', 'POST'))
event_mgmt.add_url_rule('/contributions/perform-action', 'confModifContribList-contribsActions',
                        conferenceModif.RHContribsActions, methods=('POST',))
event_mgmt.add_url_rule('/contributions/pdf', 'confModifContribList-contribsToPDFMenu',
                        conferenceModif.RHContribsToPDFMenu, methods=('GET', 'POST'))
event_mgmt.add_url_rule('/contributions/moveToSession', 'confModifContribList-moveToSession',
                        conferenceModif.RHMoveContribsToSession, methods=('GET', 'POST'))
event_mgmt.add_url_rule('/contributions/participants', 'confModifContribList-participantList',
                        conferenceModif.RHContribsParticipantList, methods=('GET', 'POST'))

with event_mgmt.add_prefixed_rules('/session/<sessionId>'):
    # Main
    event_mgmt.add_url_rule('/contribution/<contribId>/', 'contributionModification',
                            contribMod.RHContributionModification)
    event_mgmt.add_url_rule('/contribution/<contribId>/contribution.xml', 'contributionModification-xml',
                            contribMod.RHContributionToXML)
    event_mgmt.add_url_rule('/contribution/<contribId>/contribution.pdf', 'contributionModification-pdf',
                            contribMod.RHContributionToPDF)
    event_mgmt.add_url_rule('/contribution/<contribId>/modify', 'contributionModification-data',
                            contribMod.RHContributionData, methods=('GET', 'POST'))
    event_mgmt.add_url_rule('/contribution/<contribId>/modify/save', 'contributionModification-modifData',
                            contribMod.RHContributionModifData, methods=('POST',))
    event_mgmt.add_url_rule('/contribution/<contribId>/change-track', 'contributionModification-setTrack',
                            contribMod.RHSetTrack, methods=('POST',))
    event_mgmt.add_url_rule('/contribution/<contribId>/change-session', 'contributionModification-setSession',
                            contribMod.RHSetSession, methods=('POST',))
コード例 #2
0
ファイル: paperreviewing.py プロジェクト: wtakase/indico
                        reviewingAssignContributions.RHDownloadAcceptedPapers)

# Assess papers
event_mgmt.add_url_rule('/paper-reviewing/assess/referee',
                        'confListContribToJudge',
                        reviewingListContribToJudge.RHContribListToJudge)
event_mgmt.add_url_rule(
    '/paper-reviewing/assess/reviewer/layout',
    'confListContribToJudge-asEditor',
    reviewingListContribToJudge.RHContribListToJudgeAsEditor)
event_mgmt.add_url_rule(
    '/paper-reviewing/assess/reviewer/content',
    'confListContribToJudge-asReviewer',
    reviewingListContribToJudge.RHContribListToJudgeAsReviewer)

with event_mgmt.add_prefixed_rules('/session/<sessionId>'):
    # Contribution reviewing: team
    event_mgmt.add_url_rule('/contribution/<contrib_id>/reviewing/team/',
                            'contributionReviewing',
                            contribReviewingModif.RHContributionReviewing,
                            methods=('GET', 'POST'))
    event_mgmt.add_url_rule(
        '/contribution/<contrib_id>/reviewing/team/assign/referee',
        'contributionReviewing-assignReferee',
        contribReviewingModif.RHAssignReferee,
        methods=('POST', ))
    event_mgmt.add_url_rule(
        '/contribution/<contrib_id>/reviewing/team/unassign/referee',
        'contributionReviewing-removeAssignReferee',
        contribReviewingModif.RHRemoveAssignReferee,
        methods=('POST', ))