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

1#!/usr/local/bin/python 

2# encoding: utf-8 

3""" 

4*The model get for the `models_xmatches_get.py` resource* 

5 

6:Author: 

7 David Young 

8""" 

9from future import standard_library 

10standard_library.install_aliases() 

11from builtins import object 

12import sys 

13import os 

14import khufu 

15import collections 

16import urllib.request 

17import urllib.parse 

18import urllib.error 

19import re 

20from dryxPyramid.models.models_base import base_model 

21 

22class models_xmatches_get(base_model): 

23 """ 

24 The worker class for the models_xmatches_get module 

25 

26 **Key Arguments** 

27 

28 - ``log`` -- logger 

29 - ``request`` -- the pyramid request 

30 - ``elementId`` -- the specific element id requests (or False) 

31  

32 """ 

33 

34 def __init__(self, log, request, elementId=False, search=False): 

35 super().__init__(log, request, elementId, search) 

36 self.resourceName = "xmatches" 

37 self._set_default_parameters() 

38 

39 log.debug( 

40 "instansiating a new 'models_xmatches_get' object") 

41 return None 

42 

43 def get(self): 

44 """execute the get method on the models_xmatches_get object 

45 

46 **Return** 

47 

48 - ``responseContent`` -- the reponse to send to the browser 

49  

50 """ 

51 self.log.debug('starting the ``get`` method') 

52 

53 responseContent = self.elementId 

54 

55 self.log.debug('completed the ``get`` method') 

56 return responseContent 

57 

58 # xt-class-method