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 HTML template module for the `templates_transients_history.py` resource* 

5 

6:Author: 

7 David Young 

8""" 

9from builtins import object 

10import sys 

11import os 

12import khufu 

13from marshall_webapp.models.transients_history.element import models_transients_element_history_get 

14 

15class templates_transients_history(object): 

16 """ 

17 The worker class for the templates_transients_history module 

18 

19 **Key Arguments** 

20 

21 - ``log`` -- logger 

22 - ``request`` -- the pyramid request 

23 - ``elementId`` -- the specific element requested (or False) 

24  

25 """ 

26 

27 def __init__( 

28 self, 

29 log, 

30 request, 

31 elementId=False 

32 ): 

33 self.log = log 

34 self.request = request 

35 self.elementId = elementId 

36 # xt-self-arg-tmpx 

37 

38 log.debug("instansiating a new 'templates_transients_history' object") 

39 

40 return None 

41 

42 def get(self): 

43 """get the templates_transients_history object 

44 

45 **Return** 

46 

47 - ``responseContent`` -- the response 

48  

49 """ 

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

51 

52 templates_transients_history = None 

53 

54 transients_history = models_transients_element_history_get( 

55 log=self.log, 

56 request=self.request, 

57 elementId=self.elementId 

58 ) 

59 responseContent = transients_history.get() 

60 

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

62 return responseContent 

63 

64 # method-override-tmpx