I am trying to set up a debugging page with a list of objects, object property names, and object property values. I am trying to obtain the value of an particular property of a particular object type. Neither the object type or the property are know when I'm coding.
Here are the relevant sections I've got so for:
In my test.py
if self.request.get('objID'):
qGet = self.request.get
thisObj = db.get(db.Key(qGet('objID')))
template_values = { 'thisObj' : thisObj }
template = JINJA_ENVIRONMENT.get_template('objProp.html')
self.response.write(template.render(template_values))
and in my objProp.html template
{% if thisObj %}
<ul>List of properties
{% for p in thisObj.properties() %}
<li>{{ p }} : {{ thisObj.p }}</li>
{% endfor %}
</ul>
{% endif %}
However since there is no property p in thisObj it always prints out a null value, really what I want so to print out the value of whatever property p is referring to at that particular point in the loop
Any help would be very much appreciated!