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_comments.py` resource*
6:Author:
7 David Young
8"""
9from builtins import object
10import sys
11import os
12import khufu
13from marshall_webapp.models.transients_comments import models_transients_comments_get
14from marshall_webapp.models.transients_comments.element import models_transients_element_comments_get
16class templates_transients_comments(object):
17 """
18 The worker class for the templates_transients_comments module
20 **Key Arguments**
22 - ``log`` -- logger
23 - ``request`` -- the pyramid request
24 - ``elementId`` -- the element id of the resource requested (or false)
26 """
28 def __init__(
29 self,
30 log,
31 request,
32 elementId=False
33 ):
34 self.log = log
35 self.request = request
36 self.elementId = elementId
37 # xt-self-arg-tmpx
39 log.debug("instansiating a new 'templates_transients_comments' object")
41 return None
43 def get(self):
44 """get the templates_transients_comments object
46 **Return**
48 - ``responseContent`` -- the response
50 """
51 self.log.debug('starting the ``get`` method')
53 templates_transients_comments = None
55 # grab the comments from the database
56 transients_comments = models_transients_comments_get(
57 log=self.log,
58 request=self.request,
59 elementId=self.elementId
60 )
61 responseContent = transients_comments.get()
63 self.log.debug('completed the ``get`` method')
64 return responseContent
65 # xt-class-method