1 # This file is part of Indico.
2 # Copyright (C) 2002 - 2015 European Organization for Nuclear Research (CERN).
4 # Indico is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU General Public License as
6 # published by the Free Software Foundation; either version 3 of the
7 # License, or (at your option) any later version.
9 # Indico is distributed in the hope that it will be useful, but
10 # WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 # General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with Indico; if not, see <http://www.gnu.org/licenses/>.
17 from MaKaC
.webinterface
.rh
.conferenceDisplay
import RHConferenceBaseDisplay
18 import MaKaC
.webinterface
.rh
.base
as base
19 from MaKaC
.webinterface
.pages
.paperReviewingDisplay
import WPPaperReviewingDisplay
, \
20 WPDownloadPRTemplate
, WPUploadPaper
21 from MaKaC
.webinterface
.rh
.reviewingModif
import RHDownloadTemplate
24 class RHPaperReviewingDisplay(RHConferenceBaseDisplay
, base
.RHProtected
):
26 def _checkProtection(self
):
27 base
.RHProtected
._checkProtection
(self
)
30 p
= WPPaperReviewingDisplay( self
, self
._target
)
33 class RHDownloadPRTemplate(RHConferenceBaseDisplay
, base
.RHProtected
):
35 def _checkProtection(self
):
36 base
.RHProtected
._checkProtection
(self
)
38 def _checkParams(self
, params
):
39 RHConferenceBaseDisplay
._checkParams
(self
, params
)
40 self
._templateId
= params
.get('reviewingTemplateId')
44 self
._changeRH
(RHDownloadTemplate
, self
._reqParams
)
46 p
= WPDownloadPRTemplate( self
, self
._target
)
50 class RHUploadPaper(RHConferenceBaseDisplay
,base
.RHProtected
):
52 def _checkProtection(self
):
53 base
.RHProtected
._checkProtection
(self
)
56 p
= WPUploadPaper(self
,self
._target
)