_bp = IndicoBlueprint('core', __name__, template_folder='templates', virtual_template_folder='core') _bp.add_url_rule('/admin/settings/', 'settings', RHSettings, methods=('GET', 'POST')) _bp.add_url_rule('/admin/version-check', 'version_check', RHVersionCheck) # TODO: replace with an actual admin dashboard at some point _bp.add_url_rule('/admin/', 'admin_dashboard', view_func=redirect_view('.settings')) # Global operations _bp.add_url_rule('/change-language', 'change_lang', RHChangeLanguage, methods=('POST', )) _bp.add_url_rule('/change-timezone', 'change_tz', RHChangeTimezone, methods=('POST', )) _bp.add_url_rule('/api/principals', 'principals', RHPrincipals, methods=('POST', )) _bp.add_url_rule('/api/sign-url', 'sign_url', RHSignURL, methods=('POST', ))
# Creation _bp.add_url_rule('/event/create/<any(lecture,meeting,conference):event_type>', 'create', RHCreateEvent, methods=('GET', 'POST')) # Main entry points supporting shortcut URLs # /e/ accepts slashes, /event/ doesn't - this is intended. We do not want to support slashes in the old namespace # since it's a major pain in the ass to do so (and its route would eat anything that's usually a 404) _bp.add_url_rule('/e/<path:event_id>', 'shorturl', event_or_shorturl, strict_slashes=False, defaults={'shorturl_namespace': True}) # XXX: these two entries below use a string event_id on purpose, since they need to handle shortcuts # and possibly legacy ids as well _bp.add_url_rule('/event/<event_id>/', 'display', event_or_shorturl) _bp.add_url_rule('/event/<event_id>/overview', 'display_overview', event_or_shorturl, defaults={'force_overview': True}) _bp.add_url_rule('/event/<int:event_id>/other-view', 'display_other', redirect_view('timetable.timetable')) # Misc _bp.add_url_rule('/event/<int:event_id>/key-access', 'key_access', RHEventAccessKey, methods=('POST',)) _bp.add_url_rule('/event/<int:event_id>/event.marc.xml', 'marcxml', RHEventMarcXML) # Legacy URLs _compat_bp = IndicoBlueprint('compat_events', __name__) _compat_bp.add_url_rule('/conferenceDisplay.py', 'display_modpython', make_compat_redirect_func(_bp, 'display')) _compat_bp.add_url_rule('/conferenceOtherViews.py', 'display_other_modpython', make_compat_redirect_func(_bp, 'display_other')) _compat_bp.add_url_rule('/conferenceDisplay.py/overview', 'display_overview_modpython', make_compat_redirect_func(_bp, 'display_overview')) _compat_bp.add_url_rule('/event/<int:event_id>/my-conference/', 'display_mystuff', make_compat_redirect_func(_bp, 'display'))
'shorturl', event_or_shorturl, strict_slashes=False, defaults={'shorturl_namespace': True}) # XXX: these two entries below use a string event_id on purpose, since they need to handle shortcuts # and possibly legacy ids as well _bp.add_url_rule('/event/<event_id>/', 'display', event_or_shorturl, strict_slashes=False) _bp.add_url_rule('/event/<event_id>/overview', 'display_overview', event_or_shorturl, defaults={'force_overview': True}) _bp.add_url_rule('/event/<int:event_id>/other-view', 'display_other', redirect_view('timetable.timetable')) # Misc _bp.add_url_rule('/event/<int:event_id>/key-access', 'key_access', RHEventAccessKey, methods=('POST', )) # Legacy URLs _compat_bp = IndicoBlueprint('compat_events', __name__) _compat_bp.add_url_rule( '/conferenceDisplay.py', 'display_modpython', make_compat_redirect_func(_bp, 'display', view_args_conv={'confId': 'event_id'})) _compat_bp.add_url_rule(
# 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 indico.web.flask.blueprints.event.management import event_mgmt from indico.web.flask.util import redirect_view from MaKaC.webinterface.rh import conferenceModif # Tools event_mgmt.add_url_rule( '/tools/', 'confModifTools', redirect_view('event_mgmt.confModifTools-badgePrinting')) # Tools: Clone event_mgmt.add_url_rule('/clone', 'confModifTools-clone', conferenceModif.RHConfClone) event_mgmt.add_url_rule('/clone', 'confModifTools-performCloning', conferenceModif.RHConfPerformCloning, methods=('POST', )) # Tools: Posters event_mgmt.add_url_rule('/tools/posters/', 'confModifTools-posterPrinting', conferenceModif.RHConfPosterPrinting, methods=('GET', 'POST')) event_mgmt.add_url_rule('/tools/posters/poster.pdf',
# 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 calendar, categoryDisplay from indico.web.flask.util import redirect_view from indico.web.flask.wrappers import IndicoBlueprint category = IndicoBlueprint("category", __name__, url_prefix="/category") # Short URLs category.add_url_rule("!/categ/<categId>", view_func=redirect_view(".categoryDisplay"), strict_slashes=False) category.add_url_rule("!/c/<categId>", view_func=redirect_view(".categoryDisplay"), strict_slashes=False) # Display category.add_url_rule("/<categId>/", "categoryDisplay", categoryDisplay.RHCategoryDisplay) category.add_url_rule("/<categId>/events.atom", "categoryDisplay-atom", categoryDisplay.RHCategoryToAtom) category.add_url_rule("/<categId>/events.rss", "categoryDisplay-rss", categoryDisplay.RHCategoryToRSS) category.add_url_rule("/<categId>/events.ics", "categoryDisplay-ical", categoryDisplay.RHCategoryToiCal) category.add_url_rule("/<categId>/icon", "categoryDisplay-getIcon", categoryDisplay.RHCategoryGetIcon) # Overview category.add_url_rule("/<categId>/overview", "categOverview", categoryDisplay.RHCategOverviewDisplay) category.add_url_rule("/<selCateg>/overview", "categOverview", categoryDisplay.RHCategOverviewDisplay) category.add_url_rule("/overview", "categOverview", categoryDisplay.RHCategOverviewDisplay) category.add_url_rule("/<categId>/overview.rss", "categOverview-rss", categoryDisplay.RHTodayCategoryToRSS)
## ## 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 evaluationModif from indico.web.flask.util import redirect_view from indico.web.flask.blueprints.event.management import event_mgmt # Setup event_mgmt.add_url_rule('/evaluation/', 'confModifEvaluation', redirect_view('.confModifEvaluation-setup')) event_mgmt.add_url_rule('/evaluation/setup/', 'confModifEvaluation-setup', evaluationModif.RHEvaluationSetup) event_mgmt.add_url_rule('/evaluation/setup/change-status', 'confModifEvaluation-changeStatus', evaluationModif.RHEvaluationSetupChangeStatus, methods=('POST', )) event_mgmt.add_url_rule('/evaluation/setup/modify', 'confModifEvaluation-dataModif', evaluationModif.RHEvaluationSetupDataModif, methods=('GET', 'POST')) event_mgmt.add_url_rule('/evaluation/setup/modify/save', 'confModifEvaluation-performDataModif', evaluationModif.RHEvaluationSetupPerformDataModif, methods=('POST', )) event_mgmt.add_url_rule('/evaluation/setup/special-action',
# LICENSE file for more details. from indico.modules.core.controllers import (RHChangeLanguage, RHChangeTimezone, RHConfig, RHContact, RHPrincipals, RHReportErrorAPI, RHResetSignatureTokens, RHSettings, RHSignURL, RHVersionCheck) from indico.web.flask.util import redirect_view from indico.web.flask.wrappers import IndicoBlueprint _bp = IndicoBlueprint('core', __name__, template_folder='templates', virtual_template_folder='core') _bp.add_url_rule('/admin/settings/', 'settings', RHSettings, methods=('GET', 'POST')) _bp.add_url_rule('/admin/version-check', 'version_check', RHVersionCheck) # TODO: replace with an actual admin dashboard at some point _bp.add_url_rule('/admin/', 'admin_dashboard', view_func=redirect_view('.settings')) # Global operations _bp.add_url_rule('/change-language', 'change_lang', RHChangeLanguage, methods=('POST',)) _bp.add_url_rule('/change-timezone', 'change_tz', RHChangeTimezone, methods=('POST',)) _bp.add_url_rule('/api/principals', 'principals', RHPrincipals, methods=('GET', 'POST')) _bp.add_url_rule('/api/sign-url', 'sign_url', RHSignURL, methods=('POST',)) _bp.add_url_rule('/api/reset-signature-tokens', 'reset_signature_tokens', RHResetSignatureTokens, methods=('POST',)) _bp.add_url_rule('/api/config', 'config', RHConfig) # Misc pages _bp.add_url_rule('/contact', 'contact', RHContact) _bp.add_url_rule('/report-error/api/<error_id>', 'report_error_api', RHReportErrorAPI, methods=('POST',)) # Allow loadbalancers etc to easily check whether the service is alive _bp.add_url_rule('/ping', 'ping', lambda: ('', 204))
_bp.add_url_rule('/info-from', 'info_from', RHReachableCategoriesInfo, methods=('GET', 'POST')) _bp.add_url_rule('/logo-<slug>.png', 'display_logo', RHCategoryLogo) _bp.add_url_rule('/overview', 'overview', RHCategoryOverview) _bp.add_url_rule('/show-past-events', 'show_past_events', RHShowPastEventsInCategory, methods=('DELETE', 'PUT')) _bp.add_url_rule('/statistics', 'statistics', RHCategoryStatistics) _bp.add_url_rule('/subcat-info', 'subcat_info', RHSubcatInfo) _bp.add_url_rule('/calendar', 'calendar', RHCategoryCalendarView) # Event creation - redirect to anchor page opening the dialog _bp.add_url_rule('/create/event/<any(lecture,meeting,conference):event_type>', view_func=_redirect_event_creation) # TODO: remember to refactor it at some point _bp.add_url_rule('!/xmlGateway.py/getCategoryInfo', 'category_xml_info', RHXMLExportCategoryInfo) # Short URLs _bp.add_url_rule('!/categ/<int:category_id>', view_func=redirect_view('.display'), strict_slashes=False) _bp.add_url_rule('!/c/<int:category_id>', view_func=redirect_view('.display'), strict_slashes=False) # Internal API _bp.add_url_rule('!/category/search', 'search', RHCategorySearch) # Administration _bp.add_url_rule('!/admin/upcoming-events', 'manage_upcoming', RHManageUpcomingEvents, methods=('GET', 'POST')) _compat_bp = IndicoBlueprint('compat_categories', __name__) _compat_bp.add_url_rule('/category/<legacy_category_id>/<path:path>', 'legacy_id', compat_category) _compat_bp.add_url_rule('/category/<legacy_category_id>/', 'legacy_id', compat_category) _compat_bp.add_url_rule('!/categoryDisplay.py', 'display_modpython', make_compat_redirect_func(_compat_bp, 'legacy_id', view_args_conv={'categId': 'legacy_category_id'}))
# # 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 indico.web.flask.blueprints.event.management import event_mgmt from indico.web.flask.util import redirect_view from MaKaC.webinterface.rh import conferenceModif # Tools event_mgmt.add_url_rule('/tools/', 'confModifTools', redirect_view('event_reminders.list')) # Tools: Clone event_mgmt.add_url_rule('/tools/clone', 'confModifTools-clone', conferenceModif.RHConfClone) event_mgmt.add_url_rule('/tools/clone', 'confModifTools-performCloning', conferenceModif.RHConfPerformCloning, methods=('POST',)) # Tools: Delete event_mgmt.add_url_rule('/tools/delete', 'confModifTools-delete', conferenceModif.RHConfDeletion, methods=('GET', 'POST')) # Tools: Lock event_mgmt.add_url_rule('/tools/lock', 'conferenceModification-close', conferenceModif.RHConferenceClose, methods=('GET', 'POST')) event_mgmt.add_url_rule('/tools/unlock', 'conferenceModification-open', conferenceModif.RHConferenceOpen, methods=('GET', 'POST'))
# # You should have received a copy of the GNU General Public License # along with Indico; if not, see <http://www.gnu.org/licenses/>. from __future__ import unicode_literals from indico.modules.core.controllers import (RHChangeLanguage, RHChangeTimezone, RHContact, RHReportError, RHSettings, RHVersionCheck) from indico.web.flask.util import redirect_view from indico.web.flask.wrappers import IndicoBlueprint _bp = IndicoBlueprint('core', __name__, template_folder='templates', virtual_template_folder='core') _bp.add_url_rule('/admin/settings/', 'settings', RHSettings, methods=('GET', 'POST')) _bp.add_url_rule('/admin/version-check', 'version_check', RHVersionCheck) # TODO: replace with an actual admin dashboard at some point _bp.add_url_rule('/admin/', 'admin_dashboard', view_func=redirect_view('.settings')) # Global operations _bp.add_url_rule('/change-language', 'change_lang', RHChangeLanguage, methods=('POST',)) _bp.add_url_rule('/change-timezone', 'change_tz', RHChangeTimezone, methods=('POST',)) # Misc pages _bp.add_url_rule('/contact', 'contact', RHContact) _bp.add_url_rule('/report-error/<error_id>', 'report_error', RHReportError, methods=('GET', 'POST')) # Allow loadbalancers etc to easily check whether the service is alive _bp.add_url_rule('/ping', 'ping', lambda: ('', 204))
event.add_url_rule('/registration/registrants', 'confRegistrantsDisplay-list', registrantsDisplay.RHRegistrantsList, methods=["GET", "POST"]) # Registration event.add_url_rule('/registration/', 'confRegistrationFormDisplay', registrationFormDisplay.RHRegistrationForm) event.add_url_rule('/registration/conditions', 'confRegistrationFormDisplay-conditions', registrationFormDisplay.RHRegistrationFormConditions) event.add_url_rule('/registration/register', 'confRegistrationFormDisplay-creation', registrationFormDisplay.RHRegistrationFormCreation, methods=('POST',)) event.add_url_rule('/registration/ticket.pdf', 'e-ticket-pdf', registrationFormDisplay.RHConferenceTicketPDF) event.add_url_rule('/registration/register', 'confRegistrationFormDisplay-display', registrationFormDisplay.RHRegistrationFormDisplay) event.add_url_rule('/registration/modify', 'confRegistrationFormDisplay-modify', registrationFormDisplay.RHRegistrationFormModify) event.add_url_rule('/registration/modify', 'confRegistrationFormDisplay-performModify', registrationFormDisplay.RHRegistrationFormPerformModify, methods=('POST',)) event.add_url_rule('/registration/signin', 'confRegistrationFormDisplay-signIn', registrationFormDisplay.RHRegistrationFormSignIn) event.add_url_rule('/registration/userdata', 'confRegistrationFormDisplay-userData', registrationFormDisplay.RHRegistrationFormUserData) # Legacy event.add_url_rule('/registration/register/success', 'confRegistrationFormDisplay-creationDone', redirect_view('event.confRegistrationFormDisplay')) event.add_url_rule('/registration/confirm', 'confRegistrationFormDisplay-confirmBooking', redirect_view('event.confRegistrationFormDisplay')) event.add_url_rule('/registration/pay', 'confRegistrationFormDisplay-confirmBookingDone', redirect_view('event.confRegistrationFormDisplay'))
# 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 calendar, categoryDisplay from indico.web.flask.util import redirect_view from indico.web.flask.wrappers import IndicoBlueprint category = IndicoBlueprint('category', __name__, url_prefix='/category') # Short URLs category.add_url_rule('!/categ/<categId>', view_func=redirect_view('.categoryDisplay'), strict_slashes=False) category.add_url_rule('!/c/<categId>', view_func=redirect_view('.categoryDisplay'), strict_slashes=False) # Display category.add_url_rule('/<categId>/', 'categoryDisplay', categoryDisplay.RHCategoryDisplay) category.add_url_rule('/<categId>/events.atom', 'categoryDisplay-atom', categoryDisplay.RHCategoryToAtom) category.add_url_rule('/<categId>/events.rss', 'categoryDisplay-rss', categoryDisplay.RHCategoryToRSS) category.add_url_rule('/<categId>/events.ics', 'categoryDisplay-ical', categoryDisplay.RHCategoryToiCal) category.add_url_rule('/<categId>/icon', 'categoryDisplay-getIcon',
# Registrants event.add_url_rule('/registration/registrants', 'confRegistrantsDisplay-list', registrantsDisplay.RHRegistrantsList, methods=["GET", "POST"]) # Registration event.add_url_rule('/registration/', 'confRegistrationFormDisplay', registrationFormDisplay.RHRegistrationForm) event.add_url_rule('/registration/conditions', 'confRegistrationFormDisplay-conditions', registrationFormDisplay.RHRegistrationFormConditions) event.add_url_rule('/registration/register', 'confRegistrationFormDisplay-creation', registrationFormDisplay.RHRegistrationFormCreation, methods=('POST',)) event.add_url_rule('/registration/ticket.pdf', 'e-ticket-pdf', registrationFormDisplay.RHConferenceTicketPDF) event.add_url_rule('/registration/register', 'confRegistrationFormDisplay-display', registrationFormDisplay.RHRegistrationFormDisplay) event.add_url_rule('/registration/modify', 'confRegistrationFormDisplay-modify', registrationFormDisplay.RHRegistrationFormModify) event.add_url_rule('/registration/modify', 'confRegistrationFormDisplay-performModify', registrationFormDisplay.RHRegistrationFormPerformModify, methods=('POST',)) event.add_url_rule('/registration/userdata', 'confRegistrationFormDisplay-userData', registrationFormDisplay.RHRegistrationFormUserData) # Legacy event.add_url_rule('/registration/register/success', 'confRegistrationFormDisplay-creationDone', redirect_view('event.confRegistrationFormDisplay')) event.add_url_rule('/registration/confirm', 'confRegistrationFormDisplay-confirmBooking', redirect_view('event.confRegistrationFormDisplay')) event.add_url_rule('/registration/pay', 'confRegistrationFormDisplay-confirmBookingDone', redirect_view('event.confRegistrationFormDisplay'))
## 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 calendar, categoryDisplay from indico.web.flask.util import redirect_view from indico.web.flask.wrappers import IndicoBlueprint category = IndicoBlueprint('category', __name__, url_prefix='/category') # Short URLs category.add_url_rule('!/categ/<categId>', view_func=redirect_view('.categoryDisplay'), strict_slashes=False) category.add_url_rule('!/c/<categId>', view_func=redirect_view('.categoryDisplay'), strict_slashes=False) # Display category.add_url_rule('/<categId>/', 'categoryDisplay', categoryDisplay.RHCategoryDisplay) category.add_url_rule('/<categId>/events.atom', 'categoryDisplay-atom', categoryDisplay.RHCategoryToAtom) category.add_url_rule('/<categId>/events.rss', 'categoryDisplay-rss', categoryDisplay.RHCategoryToRSS) category.add_url_rule('/<categId>/events.ics', 'categoryDisplay-ical', categoryDisplay.RHCategoryToiCal) category.add_url_rule('/<categId>/icon', 'categoryDisplay-getIcon', categoryDisplay.RHCategoryGetIcon) category.add_url_rule('/<categId>/statistics', 'categoryStatistics', categoryDisplay.RHCategoryStatistics) # Overview category.add_url_rule('/<categId>/overview', 'categOverview', categoryDisplay.RHCategOverviewDisplay) category.add_url_rule('/<selCateg>/overview', 'categOverview', categoryDisplay.RHCategOverviewDisplay) category.add_url_rule('/overview', 'categOverview', categoryDisplay.RHCategOverviewDisplay) category.add_url_rule('/<categId>/overview.rss', 'categOverview-rss', categoryDisplay.RHTodayCategoryToRSS)
methods=('DELETE',)) _bp.add_url_rule('/event/<confId>/event.ics', 'export_event_ical', RHExportEventICAL) # Creation _bp.add_url_rule('/event/create/<any(lecture,meeting,conference):event_type>', 'create', RHCreateEvent, methods=('GET', 'POST')) # Main entry points supporting shortcut URLs # /e/ accepts slashes, /event/ doesn't - this is intended. We do not want to support slashes in the old namespace # since it's a major pain in the ass to do so (and its route would eat anything that's usually a 404) _bp.add_url_rule('/e/<path:confId>', 'shorturl', event_or_shorturl, strict_slashes=False, defaults={'shorturl_namespace': True}) _bp.add_url_rule('/event/<confId>/', 'display', event_or_shorturl) _bp.add_url_rule('/event/<confId>/overview', 'display_overview', event_or_shorturl, defaults={'force_overview': True}) _bp.add_url_rule('/event/<confId>/other-view', 'display_other', redirect_view('timetable.timetable')) # Misc _bp.add_url_rule('/event/<confId>/key-access', 'key_access', RHEventAccessKey, methods=('POST',)) _bp.add_url_rule('/event/<confId>/event.marc.xml', 'marcxml', RHEventMarcXML) # Legacy URLs _compat_bp = IndicoBlueprint('compat_events', __name__) _compat_bp.add_url_rule('/conferenceDisplay.py', 'display_modpython', make_compat_redirect_func(_bp, 'display')) _compat_bp.add_url_rule('/conferenceOtherViews.py', 'display_other_modpython', make_compat_redirect_func(_bp, 'display_other')) _compat_bp.add_url_rule('/conferenceDisplay.py/overview', 'display_overview_modpython', make_compat_redirect_func(_bp, 'display_overview')) _compat_bp.add_url_rule('/event/<confId>/my-conference/', 'display_mystuff', make_compat_redirect_func(_bp, 'display')) _compat_bp.add_url_rule('/myconference.py', 'display_mystuff_modpython', make_compat_redirect_func(_bp, 'display'))
## ## 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 evaluationModif from indico.web.flask.util import redirect_view from indico.web.flask.blueprints.event.management import event_mgmt # Setup event_mgmt.add_url_rule('/evaluation/', 'confModifEvaluation', redirect_view('.confModifEvaluation-setup')) event_mgmt.add_url_rule('/evaluation/setup/', 'confModifEvaluation-setup', evaluationModif.RHEvaluationSetup) event_mgmt.add_url_rule('/evaluation/setup/change-status', 'confModifEvaluation-changeStatus', evaluationModif.RHEvaluationSetupChangeStatus, methods=('POST',)) event_mgmt.add_url_rule('/evaluation/setup/modify', 'confModifEvaluation-dataModif', evaluationModif.RHEvaluationSetupDataModif, methods=('GET', 'POST')) event_mgmt.add_url_rule('/evaluation/setup/modify/save', 'confModifEvaluation-performDataModif', evaluationModif.RHEvaluationSetupPerformDataModif, methods=('POST',)) event_mgmt.add_url_rule('/evaluation/setup/special-action', 'confModifEvaluation-specialAction', evaluationModif.RHEvaluationSetupSpecialAction, methods=('POST',)) # Edit questions event_mgmt.add_url_rule('/evaluation/edit', 'confModifEvaluation-edit', evaluationModif.RHEvaluationEdit) event_mgmt.add_url_rule('/evaluation/edit', 'confModifEvaluation-editPerformChanges', evaluationModif.RHEvaluationEditPerformChanges, methods=('POST',))
# # 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 indico.web.flask.blueprints.event.management import event_mgmt from indico.web.flask.util import redirect_view from MaKaC.webinterface.rh import conferenceModif # Tools event_mgmt.add_url_rule('/tools/', 'confModifTools', redirect_view('event_mgmt.confModifTools-badgePrinting')) # Tools: Clone event_mgmt.add_url_rule('/clone', 'confModifTools-clone', conferenceModif.RHConfClone) event_mgmt.add_url_rule('/clone', 'confModifTools-performCloning', conferenceModif.RHConfPerformCloning, methods=('POST',)) # Tools: Posters event_mgmt.add_url_rule('/tools/posters/', 'confModifTools-posterPrinting', conferenceModif.RHConfPosterPrinting, methods=('GET', 'POST')) event_mgmt.add_url_rule('/tools/posters/poster.pdf', 'confModifTools-posterPrintingPDF', conferenceModif.RHConfPosterPrintingPDF, methods=('POST',)) event_mgmt.add_url_rule('/tools/posters/design', 'confModifTools-posterDesign', conferenceModif.RHConfPosterDesign, methods=('GET', 'POST')) event_mgmt.add_url_rule('/tools/posters/background', 'confModifTools-posterGetBackground', conferenceModif.RHConfPosterGetBackground, methods=('GET', 'POST'))
RHShowPastEventsInCategory, methods=('DELETE', 'PUT')) _bp.add_url_rule('/statistics', 'statistics', RHCategoryStatistics) _bp.add_url_rule('/statistics.json', 'statistics_json', RHCategoryStatisticsJSON) _bp.add_url_rule('/subcat-info', 'subcat_info', RHSubcatInfo) _bp.add_url_rule('/calendar', 'calendar', RHCategoryCalendarView) _bp.add_url_rule('/upcoming', 'upcoming_event', RHCategoryUpcomingEvent) # Event creation - redirect to anchor page opening the dialog _bp.add_url_rule('/create/event/<any(lecture,meeting,conference):event_type>', view_func=_redirect_event_creation) # Short URLs _bp.add_url_rule('!/categ/<int:category_id>', view_func=redirect_view('.display'), strict_slashes=False) _bp.add_url_rule('!/c/<int:category_id>', view_func=redirect_view('.display'), strict_slashes=False) # Internal API _bp.add_url_rule('!/category/search', 'search', RHCategorySearch) # Administration _bp.add_url_rule('!/admin/upcoming-events', 'manage_upcoming', RHManageUpcomingEvents, methods=('GET', 'POST'))
# # 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 evaluationModif from indico.web.flask.util import redirect_view from indico.web.flask.blueprints.event.management import event_mgmt # Setup event_mgmt.add_url_rule('/evaluation/', 'confModifEvaluation', redirect_view('.confModifEvaluation-setup')) event_mgmt.add_url_rule('/evaluation/setup/', 'confModifEvaluation-setup', evaluationModif.RHEvaluationSetup) event_mgmt.add_url_rule('/evaluation/setup/change-status', 'confModifEvaluation-changeStatus', evaluationModif.RHEvaluationSetupChangeStatus, methods=('POST',)) event_mgmt.add_url_rule('/evaluation/setup/modify', 'confModifEvaluation-dataModif', evaluationModif.RHEvaluationSetupDataModif, methods=('GET', 'POST')) event_mgmt.add_url_rule('/evaluation/setup/modify/save', 'confModifEvaluation-performDataModif', evaluationModif.RHEvaluationSetupPerformDataModif, methods=('POST',)) event_mgmt.add_url_rule('/evaluation/setup/special-action', 'confModifEvaluation-specialAction', evaluationModif.RHEvaluationSetupSpecialAction, methods=('POST',)) # Edit questions event_mgmt.add_url_rule('/evaluation/edit', 'confModifEvaluation-edit', evaluationModif.RHEvaluationEdit) event_mgmt.add_url_rule('/evaluation/edit', 'confModifEvaluation-editPerformChanges', evaluationModif.RHEvaluationEditPerformChanges, methods=('POST',))