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*
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
22class models_xmatches_get(base_model):
23 """
24 The worker class for the models_xmatches_get module
26 **Key Arguments**
28 - ``log`` -- logger
29 - ``request`` -- the pyramid request
30 - ``elementId`` -- the specific element id requests (or False)
32 """
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()
39 log.debug(
40 "instansiating a new 'models_xmatches_get' object")
41 return None
43 def get(self):
44 """execute the get method on the models_xmatches_get object
46 **Return**
48 - ``responseContent`` -- the reponse to send to the browser
50 """
51 self.log.debug('starting the ``get`` method')
53 responseContent = self.elementId
55 self.log.debug('completed the ``get`` method')
56 return responseContent
58 # xt-class-method