Coverage for marshall_webapp/templates/responses/templates_xmatches.py : 45%

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*Template for the xmatches view*
6:Author:
7 David Young
8"""
9from builtins import object
10import sys
11import os
12from marshall_webapp.models.xmatches import models_xmatches_get
13from pyramid.path import AssetResolver
14import khufu
16class templates_xmatches(object):
17 """
18 The worker class for the templates_xmatches module
20 **Key Arguments**
22 - ``log`` -- logger
23 - ``request`` -- the pyramid/WebObs request object
24 - ``elementId`` -- the specific element requested (or False)
25 - ``search`` -- is this a search? (boolean)
27 """
29 def __init__(
30 self,
31 log,
32 request,
33 elementId=False,
34 search=False
35 ):
36 self.log = log
37 self.request = request
38 log.debug("instansiating a new 'templates_xmatches' object")
39 self.elementId = elementId
40 self.search = search
41 # xt-self-arg-tmpx
43 return None
45 def get(self):
46 """get the templates_xmatches object
48 **Return**
50 - ``webpage`` -- the webapge HTML
52 """
53 self.log.debug('starting the ``get`` method')
55 from marshall_webapp.templates.commonelements.pagetemplates import defaultpagetemplate
57 maincontent = ""
59 webpage = defaultpagetemplate(
60 log=self.log,
61 request=self.request,
62 bodyId=False,
63 pageTitle="ePESSTO+ Marshall",
64 topNavBar=False,
65 sideBar="xmatches",
66 mainContent=maincontent,
67 relativePathFromDocRoot=False,
68 thisPageName="xmatches"
69 )
71 self.log.debug('completed the ``get`` method')
72 return webpage
74 # xt-class-method