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*Template for the xmatches view* 

5 

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 

15 

16class templates_xmatches(object): 

17 """ 

18 The worker class for the templates_xmatches module 

19 

20 **Key Arguments** 

21 

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) 

26  

27 """ 

28 

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 

42 

43 return None 

44 

45 def get(self): 

46 """get the templates_xmatches object 

47 

48 **Return** 

49 

50 - ``webpage`` -- the webapge HTML 

51  

52 """ 

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

54 

55 from marshall_webapp.templates.commonelements.pagetemplates import defaultpagetemplate 

56 

57 maincontent = "" 

58 

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 ) 

70 

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

72 return webpage 

73 

74 # xt-class-method