Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1from builtins import object 

2import logging 

3import pyramid.httpexceptions as exc 

4from pyramid.response import Response 

5from pyramid.view import view_config, view_defaults 

6from pyramid.httpexceptions import HTTPFound 

7from marshall_webapp.templates.responses import templates_xmatches 

8from marshall_webapp.models.xmatches.element import models_xmatches_element_delete, models_xmatches_element_put, models_xmatches_element_post 

9from dryxPyramid.views.views_base import base_view 

10from venusian import lift 

11 

12@view_defaults(route_name='xmatches', permission="view_users") 

13@lift() 

14class views_xmatches(base_view): 

15 

16 def __init__(self, request): 

17 super().__init__(request) 

18 self.resourceName = "xmatches" 

19 

20 @view_config(request_method='GET', permission="view_users") 

21 @view_config(request_param="method=get", permission="view_users") 

22 def get(self): 

23 xmatches = templates_xmatches( 

24 log=self.log, 

25 request=self.request 

26 ) 

27 responseContent = xmatches.get() 

28 return Response(responseContent)