Пример #1
0
 def __init__(self, name):
     WebApp.__init__(self, "JournalsApp")
     self.route('/', method='GET', callback=self.journal_list)
     self.route('/detail/:uuid', method='GET', callback=self.journal_detail)
     self.route('/health/:uuid', method='GET', callback=self.journal_health)
     self.route(
         '/health/:uuid', method='POST', callback=self.journal_health_update)
     self.route(
         '/deposits/:uuid', method='GET', callback=self.journal_deposits)
Пример #2
0
 def __init__(self, name):
     WebApp.__init__(self, "SwordApp")
     self.route('/sd-iri', method='GET',
                callback=self.service_document)
     self.route('/col-iri/<journal_uuid>', method='POST',
                callback=self.create_deposit)
     self.route('/cont-iri/<journal_uuid>/<deposit_uuid>/state',
                method='GET', callback=self.sword_statement)
     self.route('/cont-iri/<journal_uuid>/<deposit_uuid_param>/edit',
                method='PUT', callback=self.edit_deposit)
Пример #3
0
 def __init__(self, name):
     WebApp.__init__(self, "TermsApp")
     self.route('/', method='GET', callback=self.terms_list)
     self.route('/list', method='GET', callback=self.terms_list)
     self.route('/list_terms', method='GET', callback=self.terms_list)
     self.route('/detail/:key_code', method='GET', callback=self.term_detail)
     self.route('/sort', method='GET', callback=self.terms_sort)
     self.route('/sort', method='POST', callback=self.terms_sort_save)
     self.route('/translate', method='GET', callback=self.terms_translate)
     self.route('/translate', method='POST', callback=self.terms_translate_save)
     self.route('/add_term', method='GET', callback=self.add_term)
     self.route('/edit_term/:key_code', method='GET', callback=self.edit_term)
     self.route('/edit_term/:key_code/:lang_code', method='GET', callback=self.edit_term)
     self.route('/save', method='POST', callback=self.save_term)