/
abstracts.py
163 lines (147 loc) · 11.6 KB
/
abstracts.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
# This file is part of Indico.
# Copyright (C) 2002 - 2016 European Organization for Nuclear Research (CERN).
#
# Indico is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 3 of the
# License, or (at your option) any later version.
#
# Indico is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Indico; if not, see <http://www.gnu.org/licenses/>.
from MaKaC.webinterface.rh import abstractModif, abstractReviewing, conferenceModif
from indico.web.flask.blueprints.event.management import event_mgmt
# Setup
event_mgmt.add_url_rule('/call-for-abstracts-old/setup/', 'confModifCFA', conferenceModif.RHConfModifCFA)
event_mgmt.add_url_rule('/call-for-abstracts-old/setup/toggle', 'confModifCFA-changeStatus',
conferenceModif.RHConfModifCFAStatus, methods=('POST',))
event_mgmt.add_url_rule('/call-for-abstracts-old/setup/modify', 'confModifCFA-modifyData',
conferenceModif.RHCFADataModification, methods=('GET', 'POST'))
event_mgmt.add_url_rule('/call-for-abstracts-old/setup/modify/save', 'confModifCFA-performModifyData',
conferenceModif.RHCFAPerformDataModification, methods=('POST',))
# Setup: misc options
event_mgmt.add_url_rule('/call-for-abstracts-old/setup/options/attach-files', 'confModifCFA-switchAttachFiles',
conferenceModif.RHConfModifCFASwitchAttachFiles)
event_mgmt.add_url_rule('/call-for-abstracts-old/setup/options/multiple-tracks', 'confModifCFA-switchMultipleTracks',
conferenceModif.RHConfModifCFASwitchMultipleTracks)
event_mgmt.add_url_rule('/call-for-abstracts-old/setup/options/mandatory-speaker',
'confModifCFA-switchSelectSpeakerMandatory',
conferenceModif.RHConfModifCFASwitchSelectSpeakerMandatory)
event_mgmt.add_url_rule('/call-for-abstracts-old/setup/options/show-attachments',
'confModifCFA-switchShowAttachedFiles',
conferenceModif.RHConfModifCFASwitchShowAttachedFilesContribList)
event_mgmt.add_url_rule('/call-for-abstracts-old/setup/options/select-speaker', 'confModifCFA-switchShowSelectSpeaker',
conferenceModif.RHConfModifCFASwitchShowSelectAsSpeaker)
event_mgmt.add_url_rule('/call-for-abstracts-old/setup/options/mandatory-tracks', 'confModifCFA-makeTracksMandatory',
conferenceModif.RHConfModifCFAMakeTracksMandatory)
# Preview
event_mgmt.add_url_rule('/call-for-abstracts-old/preview', 'confModifCFA-preview',
conferenceModif.RHConfModifCFAPreview, methods=('GET', 'POST'))
# List of abstracts
event_mgmt.add_url_rule('/call-for-abstracts-old/abstracts/', 'abstractsManagment', conferenceModif.RHAbstractList,
methods=('GET', 'POST'))
event_mgmt.add_url_rule('/call-for-abstracts-old/abstracts/direct-access', 'abstractManagment-directAccess',
abstractModif.RHAbstractDirectAccess, methods=('GET', 'POST'))
event_mgmt.add_url_rule('/call-for-abstracts-old/abstracts/new', 'abstractsManagment-newAbstract',
conferenceModif.RHNewAbstract, methods=('POST',))
event_mgmt.add_url_rule('/call-for-abstracts-old/abstracts/perform-action', 'abstractsManagment-abstractsActions',
conferenceModif.RHAbstractsActions, methods=('POST',))
event_mgmt.add_url_rule('/call-for-abstracts-old/abstracts/merge', 'abstractsManagment-mergeAbstracts',
conferenceModif.RHAbstractsMerge, methods=('POST',))
event_mgmt.add_url_rule('/call-for-abstracts-old/abstracts/participants', 'abstractsManagment-participantList',
conferenceModif.RHAbstractsParticipantList, methods=('GET', 'POST'))
event_mgmt.add_url_rule('/call-for-abstracts-old/abstracts/accept', 'abstractManagment-acceptMultiple',
conferenceModif.RHAbstractManagmentAcceptMultiple, methods=('POST',))
event_mgmt.add_url_rule('/call-for-abstracts-old/abstracts/reject', 'abstractManagment-rejectMultiple',
conferenceModif.RHAbstractManagmentRejectMultiple, methods=('POST',))
# Abstract: main
event_mgmt.add_url_rule('/call-for-abstracts-old/abstracts/<abstractId>/', 'abstractManagment',
abstractModif.RHAbstractManagment, methods=('GET', 'POST'))
event_mgmt.add_url_rule('/call-for-abstracts-old/abstracts/<abstractId>/abstract.pdf',
'abstractManagment-abstractToPDF', abstractModif.RHAbstractToPDF)
event_mgmt.add_url_rule('/call-for-abstracts-old/abstracts/<abstractId>/abstract.xml', 'abstractManagment-xml',
abstractModif.RHAbstractToXML)
event_mgmt.add_url_rule('/call-for-abstracts-old/abstracts/<abstractId>/modify', 'abstractManagment-editData',
abstractModif.RHEditData, methods=('POST',))
event_mgmt.add_url_rule('/call-for-abstracts-old/abstracts/<abstractId>/change-track', 'abstractManagment-changeTrack',
abstractModif.RHAbstractManagmentChangeTrack, methods=('POST',))
event_mgmt.add_url_rule('/call-for-abstracts-old/abstracts/<abstractId>/reset-status',
'abstractManagment-backToSubmitted', abstractModif.RHBackToSubmitted)
event_mgmt.add_url_rule('/call-for-abstracts-old/abstracts/<abstractId>/accept', 'abstractManagment-accept',
abstractModif.RHAbstractManagmentAccept, methods=('POST',))
event_mgmt.add_url_rule('/call-for-abstracts-old/abstracts/<abstractId>/reject', 'abstractManagment-reject',
abstractModif.RHAbstractManagmentReject, methods=('POST',))
event_mgmt.add_url_rule('/call-for-abstracts-old/abstracts/<abstractId>/dupe', 'abstractManagment-markAsDup',
abstractModif.RHMarkAsDup, methods=('POST',))
event_mgmt.add_url_rule('/call-for-abstracts-old/abstracts/<abstractId>/dupe/undo', 'abstractManagment-unMarkAsDup',
abstractModif.RHUnMarkAsDup, methods=('POST',))
event_mgmt.add_url_rule('/call-for-abstracts-old/abstracts/<abstractId>/merge', 'abstractManagment-mergeInto',
abstractModif.RHMergeInto, methods=('POST',))
event_mgmt.add_url_rule('/call-for-abstracts-old/abstracts/<abstractId>/merge/undo', 'abstractManagment-unmerge',
abstractModif.RHUnMerge, methods=('POST',))
event_mgmt.add_url_rule('/call-for-abstracts-old/abstracts/<abstractId>/propose/accept', 'abstractManagment-propToAcc',
abstractModif.RHPropToAcc, methods=('POST',))
event_mgmt.add_url_rule('/call-for-abstracts-old/abstracts/<abstractId>/propose/reject', 'abstractManagment-propToRej',
abstractModif.RHPropToRej, methods=('POST',))
event_mgmt.add_url_rule('/call-for-abstracts-old/abstracts/<abstractId>/withdraw', 'abstractManagment-withdraw',
abstractModif.RHWithdraw, methods=('POST',))
# Abstract: Track judgments
event_mgmt.add_url_rule('/call-for-abstracts-old/abstracts/<abstractId>/tracks/judgements',
'abstractManagment-trackProposal', abstractModif.RHAbstractTrackManagment,
methods=('GET', 'POST'))
event_mgmt.add_url_rule('/call-for-abstracts-old/abstracts/<abstractId>/tracks/ratings',
'abstractManagment-orderByRating', abstractModif.RHAbstractTrackOrderByRating)
# Abstract: Internal comments
event_mgmt.add_url_rule('/call-for-abstracts-old/abstracts/<abstractId>/comments/', 'abstractManagment-comments',
abstractModif.RHIntComments)
event_mgmt.add_url_rule('/call-for-abstracts-old/abstracts/<abstractId>/comments/add', 'abstractManagment-newComment',
abstractModif.RHNewIntComment, methods=('POST',))
event_mgmt.add_url_rule('/call-for-abstracts-old/abstracts/<abstractId>/comments/<intCommentId>/edit',
'abstractManagment-editComment', abstractModif.RHIntCommentEdit, methods=('POST',))
event_mgmt.add_url_rule('/call-for-abstracts-old/abstracts/<abstractId>/comments/<intCommentId>/delete',
'abstractManagment-remComment', abstractModif.RHIntCommentRem, methods=('POST',))
# Abstract: Notification log
event_mgmt.add_url_rule('/call-for-abstracts-old/abstracts/<abstractId>/notifications', 'abstractManagment-notifLog',
abstractModif.RHNotifLog)
# Abstract: Tools
event_mgmt.add_url_rule('/call-for-abstracts-old/abstracts/<abstractId>/tools/', 'abstractTools', abstractModif.RHTools)
event_mgmt.add_url_rule('/call-for-abstracts-old/abstracts/<abstractId>/tools/delete', 'abstractTools-delete',
abstractModif.RHAbstractDelete, methods=('GET', 'POST'))
# Book of abstracts
event_mgmt.add_url_rule('/call-for-abstracts-old/book/', 'confModBOA', conferenceModif.RHAbstractBook,
methods=('GET', 'POST'))
event_mgmt.add_url_rule('/call-for-abstracts-old/book/options/show-ids', 'confModBOA-toogleShowIds',
conferenceModif.RHAbstractBookToogleShowIds)
# Reviewing: setup
event_mgmt.add_url_rule('/call-for-abstracts-old/reviewing/setup', 'abstractReviewing-reviewingSetup',
abstractReviewing.RHAbstractReviewingSetup)
# Reviewing: team
event_mgmt.add_url_rule('/call-for-abstracts-old/reviewing/team', 'abstractReviewing-reviewingTeam',
abstractReviewing.RHAbstractReviewingTeam)
# Reviewing: notification templates
event_mgmt.add_url_rule('/call-for-abstracts-old/reviewing/notifications/', 'abstractReviewing-notifTpl',
abstractReviewing.RHNotifTpl)
event_mgmt.add_url_rule('/call-for-abstracts-old/reviewing/notifications/add', 'abstractReviewing-notifTplNew',
abstractReviewing.RHCFANotifTplNew, methods=('GET', 'POST'))
event_mgmt.add_url_rule('/call-for-abstracts-old/reviewing/notifications/remove', 'abstractReviewing-notifTplRem',
abstractReviewing.RHCFANotifTplRem, methods=('POST',))
event_mgmt.add_url_rule('/call-for-abstracts-old/reviewing/notifications/<notifTplId>/',
'abstractReviewing-notifTplDisplay', abstractReviewing.RHCFANotifTplDisplay)
event_mgmt.add_url_rule('/call-for-abstracts-old/reviewing/notifications/<notifTplId>/down',
'abstractReviewing-notifTplDown', abstractReviewing.RHCFANotifTplDown)
event_mgmt.add_url_rule('/call-for-abstracts-old/reviewing/notifications/<notifTplId>/up',
'abstractReviewing-notifTplUp', abstractReviewing.RHCFANotifTplUp)
event_mgmt.add_url_rule('/call-for-abstracts-old/reviewing/notifications/<notifTplId>/modify',
'abstractReviewing-notifTplEdit', abstractReviewing.RHCFANotifTplEdit, methods=('GET', 'POST'))
event_mgmt.add_url_rule('/call-for-abstracts-old/reviewing/notifications/<notifTplId>/preview',
'abstractReviewing-notifTplPreview', abstractReviewing.RHCFANotifTplPreview)
event_mgmt.add_url_rule('/call-for-abstracts-old/reviewing/notifications/<notifTplId>/condition/add',
'abstractReviewing-notifTplCondNew', abstractReviewing.RHNotifTplConditionNew,
methods=('GET', 'POST'))
event_mgmt.add_url_rule('/call-for-abstracts-old/reviewing/notifications/<notifTplId>/condition/remove',
'abstractReviewing-notifTplCondRem', abstractReviewing.RHNotifTplConditionRem,
methods=('GET', 'POST'))