'Scenario' object has no attribute 'lower'
Request Method: | GET |
---|---|
Request URL: | http://tl.stop-it-project.eu/d/ST_procedure/16 |
Django Version: | 1.10 |
Exception Type: | AttributeError |
Exception Value: | 'Scenario' object has no attribute 'lower' |
Exception Location: | /home/stopit/.virtualenvs/raet/lib/python2.7/site-packages/django/apps/registry.py in get_model, line 195 |
Python Executable: | /home/stopit/.virtualenvs/raet/bin/python2 |
Python Version: | 2.7.15 |
Python Path: | ['/home/stopit/.virtualenvs/raet/bin', '/home/stopit/raet/spindle_project/settings', '/home/stopit/raet', '/home/stopit/.virtualenvs/raet/lib/python2.7/site-packages', '/home/stopit/.virtualenvs/raet/lib/python2.7', '/home/stopit/.virtualenvs/raet/lib/python2.7/plat-x86_64-linux-gnu', '/home/stopit/.virtualenvs/raet/lib/python2.7/lib-tk', '/home/stopit/.virtualenvs/raet/lib/python2.7/lib-old', '/home/stopit/.virtualenvs/raet/lib/python2.7/lib-dynload', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/home/stopit/.virtualenvs/raet/local/lib/python2.7/site-packages', '/var/www/html/subsol'] |
Server time: | Thu, 28 Mar 2024 18:29:48 +0000 |
In template /home/stopit/raet/spindle/templates/detail.html
, error at line 168
158 | </div> |
---|---|
159 | {% endif %} |
160 | </div> <!-- End id="sectionFiles" --> |
161 | |
162 | <!--Relationships--> |
163 | {% if fk_fields %} |
164 | <hr> |
165 | {% for field in fk_fields %} |
166 | {% if field.value and field.type == "ManyToManyField" or field.value and field.type == 'ForeignKey' %} |
167 | <div> |
168 | <h3>{% if field.value|length > 1 %}{% get_verbose_name_plural field.label %}{% else %}{% get_verbose_name field.label %}{% endif %}</h3> |
169 | <div class="help-text">{% if field.help_text %}{{ field.help_text|safe }}{%endif%}</div> |
170 | <ul> |
171 | {% for id, field_val in field.value %} |
172 | <li class="subsol-list-item"> |
173 | <a href="/d/{{ field.label }}/{{ id }}" {% if field.showtooltiprelations %} data-toggle="tooltip" data-placement="right" data-html="true" title="{% make_sentence_html obj_unicode field.predicate field_val %}"{% endif %}>{{ field_val|safe }}</a><br /> |
174 | </li> |
175 | {% endfor %} |
176 | </ul> |
177 | </div> |
178 | {%endif%} |
/home/stopit/.virtualenvs/raet/lib/python2.7/site-packages/django/core/handlers/exception.py
in inner
This decorator is automatically applied to all middleware to ensure that
no middleware leaks an exception and that the next middleware in the stack
can rely on getting a response instead of an exception.
"""
@wraps(get_response, assigned=available_attrs(get_response))
def inner(request):
try:
response = get_response(request)...
except Exception as exc:
response = response_for_exception(request, exc)
return response
return inner
Variable | Value |
---|---|
exc | AttributeError("'Scenario' object has no attribute 'lower'",) |
get_response | <bound method WSGIHandler._legacy_get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f52aec48850>> |
request | <WSGIRequest: GET '/d/ST_procedure/16'> |
/home/stopit/.virtualenvs/raet/lib/python2.7/site-packages/django/core/handlers/base.py
in _legacy_get_response
# Apply request middleware
for middleware_method in self._request_middleware:
response = middleware_method(request)
if response:
break
if response is None:
response = self._get_response(request)...
return response
Variable | Value |
---|---|
middleware_method | <bound method SecurityMiddleware.process_request of <django.middleware.security.SecurityMiddleware object at 0x7f5294773a50>> |
request | <WSGIRequest: GET '/d/ST_procedure/16'> |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f52aec48850> |
/home/stopit/.virtualenvs/raet/lib/python2.7/site-packages/django/core/handlers/base.py
in _get_response
break
if response is None:
wrapped_callback = self.make_view_atomic(callback)
try:
response = wrapped_callback(request, *callback_args, **callback_kwargs)
except Exception as e:
response = self.process_exception_by_middleware(e, request)...
# Complain if the view returned None (a common error).
if response is None:
if isinstance(callback, types.FunctionType): # FBV
view_name = callback.__name__
else: # CBV
Variable | Value |
---|---|
callback | <function detail at 0x7f529470e140> |
callback_args | () |
callback_kwargs | {'model_str': u'ST_procedure', 'obj_id': u'16'} |
e | AttributeError("'Scenario' object has no attribute 'lower'",) |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f529476cbd0>> |
request | <WSGIRequest: GET '/d/ST_procedure/16'> |
resolver | <RegexURLResolver 'spindle_project.urls' (None:None) ^/> |
resolver_match | ResolverMatch(func=spindle.views.detail, args=(), kwargs={'model_str': u'ST_procedure', 'obj_id': u'16'}, url_name=None, app_names=[], namespaces=[]) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f52aec48850> |
wrapped_callback | <function detail at 0x7f529470e140> |
/home/stopit/.virtualenvs/raet/lib/python2.7/site-packages/django/core/handlers/base.py
in _get_response
response = middleware_method(request, callback, callback_args, callback_kwargs)
if response:
break
if response is None:
wrapped_callback = self.make_view_atomic(callback)
try:
response = wrapped_callback(request, *callback_args, **callback_kwargs)...
except Exception as e:
response = self.process_exception_by_middleware(e, request)
# Complain if the view returned None (a common error).
if response is None:
if isinstance(callback, types.FunctionType): # FBV
Variable | Value |
---|---|
callback | <function detail at 0x7f529470e140> |
callback_args | () |
callback_kwargs | {'model_str': u'ST_procedure', 'obj_id': u'16'} |
e | AttributeError("'Scenario' object has no attribute 'lower'",) |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f529476cbd0>> |
request | <WSGIRequest: GET '/d/ST_procedure/16'> |
resolver | <RegexURLResolver 'spindle_project.urls' (None:None) ^/> |
resolver_match | ResolverMatch(func=spindle.views.detail, args=(), kwargs={'model_str': u'ST_procedure', 'obj_id': u'16'}, url_name=None, app_names=[], namespaces=[]) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f52aec48850> |
wrapped_callback | <function detail at 0x7f529470e140> |
/home/stopit/raet/spindle/views.py
in detail
response = render(request, 'detail.html', {'model_str': model_str,
'obj_unicode': obj.__unicode__(),
'fields': fields,
'fk_fields': fk_fields,
'illustrations': illustrations,
'files': files,
'geometry': geometry,
'timestamp': timestamp})...
response.content = injectTooltip(response.content)
return response
def list(request, model_str=None, layout='details'):
""" Structure of data:
Variable | Value |
---|---|
fields | [{'help_text': 'A unique name for the stress-testing precedure', 'id': 16, 'label': 'Name', 'model': 'ST_procedure', 'name': 'name', 'type': 'CharField', 'value': u'Pollution and sensor manipulation'}, {'help_text': 'Short description of the stress-testing precedure', 'id': 16, 'label': 'Description', 'model': 'ST_procedure', 'name': 'description', 'type': 'TextField', 'value': u'Examine the duration for which the sensor is manipulated'}, {'help_text': 'Scenario to be used as Base scenario for this one', 'id': 16, 'label': 'Base scenario', 'model': 'ST_procedure', 'name': 'base_scenario', 'type': 'RssForeignKey', 'value': <Scenario: Pollution and sensor manipulation>}, {'help_text': 'Current status of the ST procedure', 'id': 16, 'label': u'status', 'model': 'ST_procedure', 'name': 'status', 'type': 'SmallIntegerField', 'value': u'Idle'}] |
files | [] |
fk_fields | [{'help_text': '', 'id': 16, 'label': 'Scenario', 'model': 'ST_procedure', 'name': 'simulated_scenarios', 'predicate': 'is related to', 'showtooltiprelations': False, 'type': 'ForeignKey', 'value': [(1109, u'Pollution and sensor manipulation - clone (1109)'), (1110, u'Pollution and sensor manipulation - clone (1110)'), (1111, u'Pollution and sensor manipulation - clone (1111)'), (1112, u'Pollution and sensor manipulation - clone (1112)'), (1113, u'Pollution and sensor manipulation - clone (1113)'), (1114, u'Pollution and sensor manipulation - clone (1114)'), (1115, u'Pollution and sensor manipulation - clone (1115)'), (1116, u'Pollution and sensor manipulation - clone (1116)'), (1117, u'Pollution and sensor manipulation - clone (1117)'), (1118, u'Pollution and sensor manipulation - clone (1118)'), (1119, u'Pollution and sensor manipulation - clone (1119)'), (1120, u'Pollution and sensor manipulation - clone (1120)')]}, {'help_text': 'Scenario to be used as Base scenario for this one', 'id': 16, 'label': <class 'sp.models.Scenario'>, 'model': 'ST_procedure', 'name': 'base_scenario', 'predicate': 'is related to', 'showtooltiprelations': False, 'type': 'ForeignKey', 'value': [(1106, u'Pollution and sensor manipulation')]}] |
geometry | None |
illustrations | [] |
model_str | u'ST_procedure' |
obj | <ST_procedure: Pollution and sensor manipulation> |
obj_id | u'16' |
request | <WSGIRequest: GET '/d/ST_procedure/16'> |
spmodel | <class 'sp.models.ST_procedure'> |
timestamp | datetime.datetime(2020, 5, 5, 18, 54, 8, 728000, tzinfo=<UTC>) |
/home/stopit/.virtualenvs/raet/lib/python2.7/site-packages/django/shortcuts.py
in render
def render(request, template_name, context=None, content_type=None, status=None, using=None):
"""
Returns a HttpResponse whose content is filled with the result of calling
django.template.loader.render_to_string() with the passed arguments.
"""
content = loader.render_to_string(template_name, context, request, using=using)...
return HttpResponse(content, content_type, status)
def redirect(to, *args, **kwargs):
"""
Returns an HttpResponseRedirect to the appropriate URL for the arguments
Variable | Value |
---|---|
content_type | None |
context | {'fields': [{'help_text': 'A unique name for the stress-testing precedure', 'id': 16, 'label': 'Name', 'model': 'ST_procedure', 'name': 'name', 'type': 'CharField', 'value': u'Pollution and sensor manipulation'}, {'help_text': 'Short description of the stress-testing precedure', 'id': 16, 'label': 'Description', 'model': 'ST_procedure', 'name': 'description', 'type': 'TextField', 'value': u'Examine the duration for which the sensor is manipulated'}, {'help_text': 'Scenario to be used as Base scenario for this one', 'id': 16, 'label': 'Base scenario', 'model': 'ST_procedure', 'name': 'base_scenario', 'type': 'RssForeignKey', 'value': <Scenario: Pollution and sensor manipulation>}, {'help_text': 'Current status of the ST procedure', 'id': 16, 'label': u'status', 'model': 'ST_procedure', 'name': 'status', 'type': 'SmallIntegerField', 'value': u'Idle'}], 'files': [], 'fk_fields': [{'help_text': '', 'id': 16, 'label': 'Scenario', 'model': 'ST_procedure', 'name': 'simulated_scenarios', 'predicate': 'is related to', 'showtooltiprelations': False, 'type': 'ForeignKey', 'value': [(1109, u'Pollution and sensor manipulation - clone (1109)'), (1110, u'Pollution and sensor manipulation - clone (1110)'), (1111, u'Pollution and sensor manipulation - clone (1111)'), (1112, u'Pollution and sensor manipulation - clone (1112)'), (1113, u'Pollution and sensor manipulation - clone (1113)'), (1114, u'Pollution and sensor manipulation - clone (1114)'), (1115, u'Pollution and sensor manipulation - clone (1115)'), (1116, u'Pollution and sensor manipulation - clone (1116)'), (1117, u'Pollution and sensor manipulation - clone (1117)'), (1118, u'Pollution and sensor manipulation - clone (1118)'), (1119, u'Pollution and sensor manipulation - clone (1119)'), (1120, u'Pollution and sensor manipulation - clone (1120)')]}, {'help_text': 'Scenario to be used as Base scenario for this one', 'id': 16, 'label': <class 'sp.models.Scenario'>, 'model': 'ST_procedure', 'name': 'base_scenario', 'predicate': 'is related to', 'showtooltiprelations': False, 'type': 'ForeignKey', 'value': [(1106, u'Pollution and sensor manipulation')]}], 'geometry': None, 'illustrations': [], 'model_str': u'ST_procedure', 'obj_unicode': u'Pollution and sensor manipulation', 'timestamp': datetime.datetime(2020, 5, 5, 18, 54, 8, 728000, tzinfo=<UTC>)} |
request | <WSGIRequest: GET '/d/ST_procedure/16'> |
status | None |
template_name | 'detail.html' |
using | None |
/home/stopit/.virtualenvs/raet/lib/python2.7/site-packages/django/template/loader.py
in render_to_string
template_name may be a string or a list of strings.
"""
if isinstance(template_name, (list, tuple)):
template = select_template(template_name, using=using)
else:
template = get_template(template_name, using=using)
return template.render(context, request)...
def _engine_list(using=None):
return engines.all() if using is None else [engines[using]]
Variable | Value |
---|---|
context | {'fields': [{'help_text': 'A unique name for the stress-testing precedure', 'id': 16, 'label': 'Name', 'model': 'ST_procedure', 'name': 'name', 'type': 'CharField', 'value': u'Pollution and sensor manipulation'}, {'help_text': 'Short description of the stress-testing precedure', 'id': 16, 'label': 'Description', 'model': 'ST_procedure', 'name': 'description', 'type': 'TextField', 'value': u'Examine the duration for which the sensor is manipulated'}, {'help_text': 'Scenario to be used as Base scenario for this one', 'id': 16, 'label': 'Base scenario', 'model': 'ST_procedure', 'name': 'base_scenario', 'type': 'RssForeignKey', 'value': <Scenario: Pollution and sensor manipulation>}, {'help_text': 'Current status of the ST procedure', 'id': 16, 'label': u'status', 'model': 'ST_procedure', 'name': 'status', 'type': 'SmallIntegerField', 'value': u'Idle'}], 'files': [], 'fk_fields': [{'help_text': '', 'id': 16, 'label': 'Scenario', 'model': 'ST_procedure', 'name': 'simulated_scenarios', 'predicate': 'is related to', 'showtooltiprelations': False, 'type': 'ForeignKey', 'value': [(1109, u'Pollution and sensor manipulation - clone (1109)'), (1110, u'Pollution and sensor manipulation - clone (1110)'), (1111, u'Pollution and sensor manipulation - clone (1111)'), (1112, u'Pollution and sensor manipulation - clone (1112)'), (1113, u'Pollution and sensor manipulation - clone (1113)'), (1114, u'Pollution and sensor manipulation - clone (1114)'), (1115, u'Pollution and sensor manipulation - clone (1115)'), (1116, u'Pollution and sensor manipulation - clone (1116)'), (1117, u'Pollution and sensor manipulation - clone (1117)'), (1118, u'Pollution and sensor manipulation - clone (1118)'), (1119, u'Pollution and sensor manipulation - clone (1119)'), (1120, u'Pollution and sensor manipulation - clone (1120)')]}, {'help_text': 'Scenario to be used as Base scenario for this one', 'id': 16, 'label': <class 'sp.models.Scenario'>, 'model': 'ST_procedure', 'name': 'base_scenario', 'predicate': 'is related to', 'showtooltiprelations': False, 'type': 'ForeignKey', 'value': [(1106, u'Pollution and sensor manipulation')]}], 'geometry': None, 'illustrations': [], 'model_str': u'ST_procedure', 'obj_unicode': u'Pollution and sensor manipulation', 'timestamp': datetime.datetime(2020, 5, 5, 18, 54, 8, 728000, tzinfo=<UTC>)} |
request | <WSGIRequest: GET '/d/ST_procedure/16'> |
template | <django.template.backends.django.Template object at 0x7f5291f93bd0> |
template_name | 'detail.html' |
using | None |
/home/stopit/.virtualenvs/raet/lib/python2.7/site-packages/django/template/backends/django.py
in render
@property
def origin(self):
return self.template.origin
def render(self, context=None, request=None):
context = make_context(context, request, autoescape=self.backend.engine.autoescape)
try:
return self.template.render(context)...
except TemplateDoesNotExist as exc:
reraise(exc, self.backend)
def copy_exception(exc, backend=None):
"""
Variable | Value |
---|---|
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'files': [], 'obj_unicode': u'Pollution and sensor manipulation', 'timestamp': datetime.datetime(2020, 5, 5, 18, 54, 8, 728000, tzinfo=<UTC>), 'fk_fields': [{'predicate': 'is related to', 'name': 'simulated_scenarios', 'showtooltiprelations': False, 'help_text': '', 'model': 'ST_procedure', 'type': 'ForeignKey', 'id': 16, 'value': [(1109, u'Pollution and sensor manipulation - clone (1109)'), (1110, u'Pollution and sensor manipulation - clone (1110)'), (1111, u'Pollution and sensor manipulation - clone (1111)'), (1112, u'Pollution and sensor manipulation - clone (1112)'), (1113, u'Pollution and sensor manipulation - clone (1113)'), (1114, u'Pollution and sensor manipulation - clone (1114)'), (1115, u'Pollution and sensor manipulation - clone (1115)'), (1116, u'Pollution and sensor manipulation - clone (1116)'), (1117, u'Pollution and sensor manipulation - clone (1117)'), (1118, u'Pollution and sensor manipulation - clone (1118)'), (1119, u'Pollution and sensor manipulation - clone (1119)'), (1120, u'Pollution and sensor manipulation - clone (1120)')], 'label': 'Scenario'}, {'predicate': 'is related to', 'name': 'base_scenario', 'showtooltiprelations': False, 'help_text': 'Scenario to be used as Base scenario for this one', 'model': 'ST_procedure', 'type': 'ForeignKey', 'id': 16, 'value': [(1106, u'Pollution and sensor manipulation')], 'label': <class 'sp.models.Scenario'>}], 'geometry': None, 'fields': [{'name': 'name', 'value': u'Pollution and sensor manipulation', 'label': 'Name', 'help_text': 'A unique name for the stress-testing precedure', 'model': 'ST_procedure', 'type': 'CharField', 'id': 16}, {'name': 'description', 'value': u'Examine the duration for which the sensor is manipulated', 'label': 'Description', 'help_text': 'Short description of the stress-testing precedure', 'model': 'ST_procedure', 'type': 'TextField', 'id': 16}, {'name': 'base_scenario', 'value': <Scenario: Pollution and sensor manipulation>, 'label': 'Base scenario', 'help_text': 'Scenario to be used as Base scenario for this one', 'model': 'ST_procedure', 'type': 'RssForeignKey', 'id': 16}, {'name': 'status', 'value': u'Idle', 'label': u'status', 'help_text': 'Current status of the ST procedure', 'model': 'ST_procedure', 'type': 'SmallIntegerField', 'id': 16}], 'illustrations': [], 'model_str': u'ST_procedure'}] |
request | <WSGIRequest: GET '/d/ST_procedure/16'> |
self | <django.template.backends.django.Template object at 0x7f5291f93bd0> |
/home/stopit/.virtualenvs/raet/lib/python2.7/site-packages/django/template/base.py
in render
def render(self, context):
"Display stage -- can be called many times"
context.render_context.push()
try:
if context.template is None:
with context.bind_template(self):
context.template_name = self.name
return self._render(context)...
else:
return self._render(context)
finally:
context.render_context.pop()
def compile_nodelist(self):
Variable | Value |
---|---|
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'files': [], 'obj_unicode': u'Pollution and sensor manipulation', 'timestamp': datetime.datetime(2020, 5, 5, 18, 54, 8, 728000, tzinfo=<UTC>), 'fk_fields': [{'predicate': 'is related to', 'name': 'simulated_scenarios', 'showtooltiprelations': False, 'help_text': '', 'model': 'ST_procedure', 'type': 'ForeignKey', 'id': 16, 'value': [(1109, u'Pollution and sensor manipulation - clone (1109)'), (1110, u'Pollution and sensor manipulation - clone (1110)'), (1111, u'Pollution and sensor manipulation - clone (1111)'), (1112, u'Pollution and sensor manipulation - clone (1112)'), (1113, u'Pollution and sensor manipulation - clone (1113)'), (1114, u'Pollution and sensor manipulation - clone (1114)'), (1115, u'Pollution and sensor manipulation - clone (1115)'), (1116, u'Pollution and sensor manipulation - clone (1116)'), (1117, u'Pollution and sensor manipulation - clone (1117)'), (1118, u'Pollution and sensor manipulation - clone (1118)'), (1119, u'Pollution and sensor manipulation - clone (1119)'), (1120, u'Pollution and sensor manipulation - clone (1120)')], 'label': 'Scenario'}, {'predicate': 'is related to', 'name': 'base_scenario', 'showtooltiprelations': False, 'help_text': 'Scenario to be used as Base scenario for this one', 'model': 'ST_procedure', 'type': 'ForeignKey', 'id': 16, 'value': [(1106, u'Pollution and sensor manipulation')], 'label': <class 'sp.models.Scenario'>}], 'geometry': None, 'fields': [{'name': 'name', 'value': u'Pollution and sensor manipulation', 'label': 'Name', 'help_text': 'A unique name for the stress-testing precedure', 'model': 'ST_procedure', 'type': 'CharField', 'id': 16}, {'name': 'description', 'value': u'Examine the duration for which the sensor is manipulated', 'label': 'Description', 'help_text': 'Short description of the stress-testing precedure', 'model': 'ST_procedure', 'type': 'TextField', 'id': 16}, {'name': 'base_scenario', 'value': <Scenario: Pollution and sensor manipulation>, 'label': 'Base scenario', 'help_text': 'Scenario to be used as Base scenario for this one', 'model': 'ST_procedure', 'type': 'RssForeignKey', 'id': 16}, {'name': 'status', 'value': u'Idle', 'label': u'status', 'help_text': 'Current status of the ST procedure', 'model': 'ST_procedure', 'type': 'SmallIntegerField', 'id': 16}], 'illustrations': [], 'model_str': u'ST_procedure'}] |
self | <django.template.base.Template object at 0x7f5291df8ad0> |
/home/stopit/.virtualenvs/raet/lib/python2.7/site-packages/django/template/base.py
in _render
def __iter__(self):
for node in self.nodelist:
for subnode in node:
yield subnode
def _render(self, context):
return self.nodelist.render(context)...
def render(self, context):
"Display stage -- can be called many times"
context.render_context.push()
try:
if context.template is None:
Variable | Value |
---|---|
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'files': [], 'obj_unicode': u'Pollution and sensor manipulation', 'timestamp': datetime.datetime(2020, 5, 5, 18, 54, 8, 728000, tzinfo=<UTC>), 'fk_fields': [{'predicate': 'is related to', 'name': 'simulated_scenarios', 'showtooltiprelations': False, 'help_text': '', 'model': 'ST_procedure', 'type': 'ForeignKey', 'id': 16, 'value': [(1109, u'Pollution and sensor manipulation - clone (1109)'), (1110, u'Pollution and sensor manipulation - clone (1110)'), (1111, u'Pollution and sensor manipulation - clone (1111)'), (1112, u'Pollution and sensor manipulation - clone (1112)'), (1113, u'Pollution and sensor manipulation - clone (1113)'), (1114, u'Pollution and sensor manipulation - clone (1114)'), (1115, u'Pollution and sensor manipulation - clone (1115)'), (1116, u'Pollution and sensor manipulation - clone (1116)'), (1117, u'Pollution and sensor manipulation - clone (1117)'), (1118, u'Pollution and sensor manipulation - clone (1118)'), (1119, u'Pollution and sensor manipulation - clone (1119)'), (1120, u'Pollution and sensor manipulation - clone (1120)')], 'label': 'Scenario'}, {'predicate': 'is related to', 'name': 'base_scenario', 'showtooltiprelations': False, 'help_text': 'Scenario to be used as Base scenario for this one', 'model': 'ST_procedure', 'type': 'ForeignKey', 'id': 16, 'value': [(1106, u'Pollution and sensor manipulation')], 'label': <class 'sp.models.Scenario'>}], 'geometry': None, 'fields': [{'name': 'name', 'value': u'Pollution and sensor manipulation', 'label': 'Name', 'help_text': 'A unique name for the stress-testing precedure', 'model': 'ST_procedure', 'type': 'CharField', 'id': 16}, {'name': 'description', 'value': u'Examine the duration for which the sensor is manipulated', 'label': 'Description', 'help_text': 'Short description of the stress-testing precedure', 'model': 'ST_procedure', 'type': 'TextField', 'id': 16}, {'name': 'base_scenario', 'value': <Scenario: Pollution and sensor manipulation>, 'label': 'Base scenario', 'help_text': 'Scenario to be used as Base scenario for this one', 'model': 'ST_procedure', 'type': 'RssForeignKey', 'id': 16}, {'name': 'status', 'value': u'Idle', 'label': u'status', 'help_text': 'Current status of the ST procedure', 'model': 'ST_procedure', 'type': 'SmallIntegerField', 'id': 16}], 'illustrations': [], 'model_str': u'ST_procedure'}] |
self | <django.template.base.Template object at 0x7f5291df8ad0> |
/home/stopit/.virtualenvs/raet/lib/python2.7/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bits | [] |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'files': [], 'obj_unicode': u'Pollution and sensor manipulation', 'timestamp': datetime.datetime(2020, 5, 5, 18, 54, 8, 728000, tzinfo=<UTC>), 'fk_fields': [{'predicate': 'is related to', 'name': 'simulated_scenarios', 'showtooltiprelations': False, 'help_text': '', 'model': 'ST_procedure', 'type': 'ForeignKey', 'id': 16, 'value': [(1109, u'Pollution and sensor manipulation - clone (1109)'), (1110, u'Pollution and sensor manipulation - clone (1110)'), (1111, u'Pollution and sensor manipulation - clone (1111)'), (1112, u'Pollution and sensor manipulation - clone (1112)'), (1113, u'Pollution and sensor manipulation - clone (1113)'), (1114, u'Pollution and sensor manipulation - clone (1114)'), (1115, u'Pollution and sensor manipulation - clone (1115)'), (1116, u'Pollution and sensor manipulation - clone (1116)'), (1117, u'Pollution and sensor manipulation - clone (1117)'), (1118, u'Pollution and sensor manipulation - clone (1118)'), (1119, u'Pollution and sensor manipulation - clone (1119)'), (1120, u'Pollution and sensor manipulation - clone (1120)')], 'label': 'Scenario'}, {'predicate': 'is related to', 'name': 'base_scenario', 'showtooltiprelations': False, 'help_text': 'Scenario to be used as Base scenario for this one', 'model': 'ST_procedure', 'type': 'ForeignKey', 'id': 16, 'value': [(1106, u'Pollution and sensor manipulation')], 'label': <class 'sp.models.Scenario'>}], 'geometry': None, 'fields': [{'name': 'name', 'value': u'Pollution and sensor manipulation', 'label': 'Name', 'help_text': 'A unique name for the stress-testing precedure', 'model': 'ST_procedure', 'type': 'CharField', 'id': 16}, {'name': 'description', 'value': u'Examine the duration for which the sensor is manipulated', 'label': 'Description', 'help_text': 'Short description of the stress-testing precedure', 'model': 'ST_procedure', 'type': 'TextField', 'id': 16}, {'name': 'base_scenario', 'value': <Scenario: Pollution and sensor manipulation>, 'label': 'Base scenario', 'help_text': 'Scenario to be used as Base scenario for this one', 'model': 'ST_procedure', 'type': 'RssForeignKey', 'id': 16}, {'name': 'status', 'value': u'Idle', 'label': u'status', 'help_text': 'Current status of the ST procedure', 'model': 'ST_procedure', 'type': 'SmallIntegerField', 'id': 16}], 'illustrations': [], 'model_str': u'ST_procedure'}] |
node | <ExtendsNode: extends "base.html"> |
self | [<ExtendsNode: extends "base.html">] |
/home/stopit/.virtualenvs/raet/lib/python2.7/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)...
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'files': [], 'obj_unicode': u'Pollution and sensor manipulation', 'timestamp': datetime.datetime(2020, 5, 5, 18, 54, 8, 728000, tzinfo=<UTC>), 'fk_fields': [{'predicate': 'is related to', 'name': 'simulated_scenarios', 'showtooltiprelations': False, 'help_text': '', 'model': 'ST_procedure', 'type': 'ForeignKey', 'id': 16, 'value': [(1109, u'Pollution and sensor manipulation - clone (1109)'), (1110, u'Pollution and sensor manipulation - clone (1110)'), (1111, u'Pollution and sensor manipulation - clone (1111)'), (1112, u'Pollution and sensor manipulation - clone (1112)'), (1113, u'Pollution and sensor manipulation - clone (1113)'), (1114, u'Pollution and sensor manipulation - clone (1114)'), (1115, u'Pollution and sensor manipulation - clone (1115)'), (1116, u'Pollution and sensor manipulation - clone (1116)'), (1117, u'Pollution and sensor manipulation - clone (1117)'), (1118, u'Pollution and sensor manipulation - clone (1118)'), (1119, u'Pollution and sensor manipulation - clone (1119)'), (1120, u'Pollution and sensor manipulation - clone (1120)')], 'label': 'Scenario'}, {'predicate': 'is related to', 'name': 'base_scenario', 'showtooltiprelations': False, 'help_text': 'Scenario to be used as Base scenario for this one', 'model': 'ST_procedure', 'type': 'ForeignKey', 'id': 16, 'value': [(1106, u'Pollution and sensor manipulation')], 'label': <class 'sp.models.Scenario'>}], 'geometry': None, 'fields': [{'name': 'name', 'value': u'Pollution and sensor manipulation', 'label': 'Name', 'help_text': 'A unique name for the stress-testing precedure', 'model': 'ST_procedure', 'type': 'CharField', 'id': 16}, {'name': 'description', 'value': u'Examine the duration for which the sensor is manipulated', 'label': 'Description', 'help_text': 'Short description of the stress-testing precedure', 'model': 'ST_procedure', 'type': 'TextField', 'id': 16}, {'name': 'base_scenario', 'value': <Scenario: Pollution and sensor manipulation>, 'label': 'Base scenario', 'help_text': 'Scenario to be used as Base scenario for this one', 'model': 'ST_procedure', 'type': 'RssForeignKey', 'id': 16}, {'name': 'status', 'value': u'Idle', 'label': u'status', 'help_text': 'Current status of the ST procedure', 'model': 'ST_procedure', 'type': 'SmallIntegerField', 'id': 16}], 'illustrations': [], 'model_str': u'ST_procedure'}] |
e | AttributeError("'Scenario' object has no attribute 'lower'",) |
self | <ExtendsNode: extends "base.html"> |
/home/stopit/.virtualenvs/raet/lib/python2.7/site-packages/django/template/loader_tags.py
in render
blocks = {n.name: n for n in
compiled_parent.nodelist.get_nodes_by_type(BlockNode)}
block_context.add_blocks(blocks)
break
# Call Template._render explicitly so the parser context stays
# the same.
return compiled_parent._render(context)...
class IncludeNode(Node):
context_key = '__include_context'
def __init__(self, template, *args, **kwargs):
Variable | Value |
---|---|
block_context | <django.template.loader_tags.BlockContext object at 0x7f5291df87d0> |
compiled_parent | <django.template.base.Template object at 0x7f5291f4db90> |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'files': [], 'obj_unicode': u'Pollution and sensor manipulation', 'timestamp': datetime.datetime(2020, 5, 5, 18, 54, 8, 728000, tzinfo=<UTC>), 'fk_fields': [{'predicate': 'is related to', 'name': 'simulated_scenarios', 'showtooltiprelations': False, 'help_text': '', 'model': 'ST_procedure', 'type': 'ForeignKey', 'id': 16, 'value': [(1109, u'Pollution and sensor manipulation - clone (1109)'), (1110, u'Pollution and sensor manipulation - clone (1110)'), (1111, u'Pollution and sensor manipulation - clone (1111)'), (1112, u'Pollution and sensor manipulation - clone (1112)'), (1113, u'Pollution and sensor manipulation - clone (1113)'), (1114, u'Pollution and sensor manipulation - clone (1114)'), (1115, u'Pollution and sensor manipulation - clone (1115)'), (1116, u'Pollution and sensor manipulation - clone (1116)'), (1117, u'Pollution and sensor manipulation - clone (1117)'), (1118, u'Pollution and sensor manipulation - clone (1118)'), (1119, u'Pollution and sensor manipulation - clone (1119)'), (1120, u'Pollution and sensor manipulation - clone (1120)')], 'label': 'Scenario'}, {'predicate': 'is related to', 'name': 'base_scenario', 'showtooltiprelations': False, 'help_text': 'Scenario to be used as Base scenario for this one', 'model': 'ST_procedure', 'type': 'ForeignKey', 'id': 16, 'value': [(1106, u'Pollution and sensor manipulation')], 'label': <class 'sp.models.Scenario'>}], 'geometry': None, 'fields': [{'name': 'name', 'value': u'Pollution and sensor manipulation', 'label': 'Name', 'help_text': 'A unique name for the stress-testing precedure', 'model': 'ST_procedure', 'type': 'CharField', 'id': 16}, {'name': 'description', 'value': u'Examine the duration for which the sensor is manipulated', 'label': 'Description', 'help_text': 'Short description of the stress-testing precedure', 'model': 'ST_procedure', 'type': 'TextField', 'id': 16}, {'name': 'base_scenario', 'value': <Scenario: Pollution and sensor manipulation>, 'label': 'Base scenario', 'help_text': 'Scenario to be used as Base scenario for this one', 'model': 'ST_procedure', 'type': 'RssForeignKey', 'id': 16}, {'name': 'status', 'value': u'Idle', 'label': u'status', 'help_text': 'Current status of the ST procedure', 'model': 'ST_procedure', 'type': 'SmallIntegerField', 'id': 16}], 'illustrations': [], 'model_str': u'ST_procedure'}] |
node | <ExtendsNode: extends "base_default.html"> |
self | <ExtendsNode: extends "base.html"> |
/home/stopit/.virtualenvs/raet/lib/python2.7/site-packages/django/template/base.py
in _render
def __iter__(self):
for node in self.nodelist:
for subnode in node:
yield subnode
def _render(self, context):
return self.nodelist.render(context)...
def render(self, context):
"Display stage -- can be called many times"
context.render_context.push()
try:
if context.template is None:
Variable | Value |
---|---|
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'files': [], 'obj_unicode': u'Pollution and sensor manipulation', 'timestamp': datetime.datetime(2020, 5, 5, 18, 54, 8, 728000, tzinfo=<UTC>), 'fk_fields': [{'predicate': 'is related to', 'name': 'simulated_scenarios', 'showtooltiprelations': False, 'help_text': '', 'model': 'ST_procedure', 'type': 'ForeignKey', 'id': 16, 'value': [(1109, u'Pollution and sensor manipulation - clone (1109)'), (1110, u'Pollution and sensor manipulation - clone (1110)'), (1111, u'Pollution and sensor manipulation - clone (1111)'), (1112, u'Pollution and sensor manipulation - clone (1112)'), (1113, u'Pollution and sensor manipulation - clone (1113)'), (1114, u'Pollution and sensor manipulation - clone (1114)'), (1115, u'Pollution and sensor manipulation - clone (1115)'), (1116, u'Pollution and sensor manipulation - clone (1116)'), (1117, u'Pollution and sensor manipulation - clone (1117)'), (1118, u'Pollution and sensor manipulation - clone (1118)'), (1119, u'Pollution and sensor manipulation - clone (1119)'), (1120, u'Pollution and sensor manipulation - clone (1120)')], 'label': 'Scenario'}, {'predicate': 'is related to', 'name': 'base_scenario', 'showtooltiprelations': False, 'help_text': 'Scenario to be used as Base scenario for this one', 'model': 'ST_procedure', 'type': 'ForeignKey', 'id': 16, 'value': [(1106, u'Pollution and sensor manipulation')], 'label': <class 'sp.models.Scenario'>}], 'geometry': None, 'fields': [{'name': 'name', 'value': u'Pollution and sensor manipulation', 'label': 'Name', 'help_text': 'A unique name for the stress-testing precedure', 'model': 'ST_procedure', 'type': 'CharField', 'id': 16}, {'name': 'description', 'value': u'Examine the duration for which the sensor is manipulated', 'label': 'Description', 'help_text': 'Short description of the stress-testing precedure', 'model': 'ST_procedure', 'type': 'TextField', 'id': 16}, {'name': 'base_scenario', 'value': <Scenario: Pollution and sensor manipulation>, 'label': 'Base scenario', 'help_text': 'Scenario to be used as Base scenario for this one', 'model': 'ST_procedure', 'type': 'RssForeignKey', 'id': 16}, {'name': 'status', 'value': u'Idle', 'label': u'status', 'help_text': 'Current status of the ST procedure', 'model': 'ST_procedure', 'type': 'SmallIntegerField', 'id': 16}], 'illustrations': [], 'model_str': u'ST_procedure'}] |
self | <django.template.base.Template object at 0x7f5291f4db90> |
/home/stopit/.virtualenvs/raet/lib/python2.7/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bits | [] |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'files': [], 'obj_unicode': u'Pollution and sensor manipulation', 'timestamp': datetime.datetime(2020, 5, 5, 18, 54, 8, 728000, tzinfo=<UTC>), 'fk_fields': [{'predicate': 'is related to', 'name': 'simulated_scenarios', 'showtooltiprelations': False, 'help_text': '', 'model': 'ST_procedure', 'type': 'ForeignKey', 'id': 16, 'value': [(1109, u'Pollution and sensor manipulation - clone (1109)'), (1110, u'Pollution and sensor manipulation - clone (1110)'), (1111, u'Pollution and sensor manipulation - clone (1111)'), (1112, u'Pollution and sensor manipulation - clone (1112)'), (1113, u'Pollution and sensor manipulation - clone (1113)'), (1114, u'Pollution and sensor manipulation - clone (1114)'), (1115, u'Pollution and sensor manipulation - clone (1115)'), (1116, u'Pollution and sensor manipulation - clone (1116)'), (1117, u'Pollution and sensor manipulation - clone (1117)'), (1118, u'Pollution and sensor manipulation - clone (1118)'), (1119, u'Pollution and sensor manipulation - clone (1119)'), (1120, u'Pollution and sensor manipulation - clone (1120)')], 'label': 'Scenario'}, {'predicate': 'is related to', 'name': 'base_scenario', 'showtooltiprelations': False, 'help_text': 'Scenario to be used as Base scenario for this one', 'model': 'ST_procedure', 'type': 'ForeignKey', 'id': 16, 'value': [(1106, u'Pollution and sensor manipulation')], 'label': <class 'sp.models.Scenario'>}], 'geometry': None, 'fields': [{'name': 'name', 'value': u'Pollution and sensor manipulation', 'label': 'Name', 'help_text': 'A unique name for the stress-testing precedure', 'model': 'ST_procedure', 'type': 'CharField', 'id': 16}, {'name': 'description', 'value': u'Examine the duration for which the sensor is manipulated', 'label': 'Description', 'help_text': 'Short description of the stress-testing precedure', 'model': 'ST_procedure', 'type': 'TextField', 'id': 16}, {'name': 'base_scenario', 'value': <Scenario: Pollution and sensor manipulation>, 'label': 'Base scenario', 'help_text': 'Scenario to be used as Base scenario for this one', 'model': 'ST_procedure', 'type': 'RssForeignKey', 'id': 16}, {'name': 'status', 'value': u'Idle', 'label': u'status', 'help_text': 'Current status of the ST procedure', 'model': 'ST_procedure', 'type': 'SmallIntegerField', 'id': 16}], 'illustrations': [], 'model_str': u'ST_procedure'}] |
node | <ExtendsNode: extends "base_default.html"> |
self | [<ExtendsNode: extends "base_default.html">] |
/home/stopit/.virtualenvs/raet/lib/python2.7/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)...
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'files': [], 'obj_unicode': u'Pollution and sensor manipulation', 'timestamp': datetime.datetime(2020, 5, 5, 18, 54, 8, 728000, tzinfo=<UTC>), 'fk_fields': [{'predicate': 'is related to', 'name': 'simulated_scenarios', 'showtooltiprelations': False, 'help_text': '', 'model': 'ST_procedure', 'type': 'ForeignKey', 'id': 16, 'value': [(1109, u'Pollution and sensor manipulation - clone (1109)'), (1110, u'Pollution and sensor manipulation - clone (1110)'), (1111, u'Pollution and sensor manipulation - clone (1111)'), (1112, u'Pollution and sensor manipulation - clone (1112)'), (1113, u'Pollution and sensor manipulation - clone (1113)'), (1114, u'Pollution and sensor manipulation - clone (1114)'), (1115, u'Pollution and sensor manipulation - clone (1115)'), (1116, u'Pollution and sensor manipulation - clone (1116)'), (1117, u'Pollution and sensor manipulation - clone (1117)'), (1118, u'Pollution and sensor manipulation - clone (1118)'), (1119, u'Pollution and sensor manipulation - clone (1119)'), (1120, u'Pollution and sensor manipulation - clone (1120)')], 'label': 'Scenario'}, {'predicate': 'is related to', 'name': 'base_scenario', 'showtooltiprelations': False, 'help_text': 'Scenario to be used as Base scenario for this one', 'model': 'ST_procedure', 'type': 'ForeignKey', 'id': 16, 'value': [(1106, u'Pollution and sensor manipulation')], 'label': <class 'sp.models.Scenario'>}], 'geometry': None, 'fields': [{'name': 'name', 'value': u'Pollution and sensor manipulation', 'label': 'Name', 'help_text': 'A unique name for the stress-testing precedure', 'model': 'ST_procedure', 'type': 'CharField', 'id': 16}, {'name': 'description', 'value': u'Examine the duration for which the sensor is manipulated', 'label': 'Description', 'help_text': 'Short description of the stress-testing precedure', 'model': 'ST_procedure', 'type': 'TextField', 'id': 16}, {'name': 'base_scenario', 'value': <Scenario: Pollution and sensor manipulation>, 'label': 'Base scenario', 'help_text': 'Scenario to be used as Base scenario for this one', 'model': 'ST_procedure', 'type': 'RssForeignKey', 'id': 16}, {'name': 'status', 'value': u'Idle', 'label': u'status', 'help_text': 'Current status of the ST procedure', 'model': 'ST_procedure', 'type': 'SmallIntegerField', 'id': 16}], 'illustrations': [], 'model_str': u'ST_procedure'}] |
e | AttributeError("'Scenario' object has no attribute 'lower'",) |
self | <ExtendsNode: extends "base_default.html"> |
/home/stopit/.virtualenvs/raet/lib/python2.7/site-packages/django/template/loader_tags.py
in render
blocks = {n.name: n for n in
compiled_parent.nodelist.get_nodes_by_type(BlockNode)}
block_context.add_blocks(blocks)
break
# Call Template._render explicitly so the parser context stays
# the same.
return compiled_parent._render(context)...
class IncludeNode(Node):
context_key = '__include_context'
def __init__(self, template, *args, **kwargs):
Variable | Value |
---|---|
block_context | <django.template.loader_tags.BlockContext object at 0x7f5291df87d0> |
blocks | {u'about': <Block Node: about. Contents: [<TextNode: u'<li><a href="/about/">Abo'>]>, u'body_attributes': <Block Node: body_attributes. Contents: [<TextNode: u' '>]>, u'content': <Block Node: content. Contents: [<TextNode: u'\n '>]>, u'footer': <Block Node: footer. Contents: [<TextNode: u'\n <footer class="foote'>]>, u'google_analytics': <Block Node: google_analytics. Contents: [<TextNode: u'\n '>]>, u'header': <Block Node: header. Contents: [<TextNode: u'\n <header id="header">'>, <Block Node: logo. Contents: [<TextNode: u'\n <a class="na'>, <django.templatetags.static.StaticNode object at 0x7f5291b72d90>, <TextNode: u'" style="height:62px;" al'>]>, <TextNode: u'\n </div>\n '>, <Block Node: home. Contents: [<TextNode: u'\n <li><a hre'>]>, <TextNode: u'\n\n '>, <Block Node: lists. Contents: [<TextNode: u'\n '>, <IfNode>, <TextNode: u'\n '>]>, <TextNode: u'\n\n '>, <Block Node: pivot. Contents: [<TextNode: u'\n '>, <IfNode>, <TextNode: u'\n '>]>, <TextNode: u'\n\n '>, <Block Node: search. Contents: [<TextNode: u'<li><a href="/ssearch/"><'>]>, <TextNode: u'\n '>, <Block Node: about. Contents: [<TextNode: u'<li><a href="/about/">Abo'>]>, <TextNode: u'\n '>, <Block Node: help. Contents: []>, <TextNode: u'\n\n '>, <Block Node: login. Contents: [<TextNode: u'<li><a href="/admin/">Log'>]>, <TextNode: u'\n </ul>\n '>]>, u'help': <Block Node: help. Contents: []>, u'home': <Block Node: home. Contents: [<TextNode: u'\n <li><a hre'>]>, u'javascript': <Block Node: javascript. Contents: [<TextNode: u'\n '>]>, u'javascript_library': <Block Node: javascript_library. Contents: [<TextNode: u'\n '>]>, u'lists': <Block Node: lists. Contents: [<TextNode: u'\n '>, <IfNode>, <TextNode: u'\n '>]>, u'login': <Block Node: login. Contents: [<TextNode: u'<li><a href="/admin/">Log'>]>, u'logo': <Block Node: logo. Contents: [<TextNode: u'\n <a class="na'>, <django.templatetags.static.StaticNode object at 0x7f5291b72d90>, <TextNode: u'" style="height:62px;" al'>]>, u'messages': <Block Node: messages. Contents: [<TextNode: u'\n '>]>, u'pivot': <Block Node: pivot. Contents: [<TextNode: u'\n '>, <IfNode>, <TextNode: u'\n '>]>, u'search': <Block Node: search. Contents: [<TextNode: u'<li><a href="/ssearch/"><'>]>, u'styles': <Block Node: styles. Contents: [<TextNode: u'\n '>]>, u'styles_app': <Block Node: styles_app. Contents: [<TextNode: u'\n '>]>, u'subheader': <Block Node: subheader. Contents: [<TextNode: u'<br />'>]>, u'title': <Block Node: title. Contents: [<Variable Node: DEFAULTTITLEPAGE>]>} |
compiled_parent | <django.template.base.Template object at 0x7f5291f2e990> |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'files': [], 'obj_unicode': u'Pollution and sensor manipulation', 'timestamp': datetime.datetime(2020, 5, 5, 18, 54, 8, 728000, tzinfo=<UTC>), 'fk_fields': [{'predicate': 'is related to', 'name': 'simulated_scenarios', 'showtooltiprelations': False, 'help_text': '', 'model': 'ST_procedure', 'type': 'ForeignKey', 'id': 16, 'value': [(1109, u'Pollution and sensor manipulation - clone (1109)'), (1110, u'Pollution and sensor manipulation - clone (1110)'), (1111, u'Pollution and sensor manipulation - clone (1111)'), (1112, u'Pollution and sensor manipulation - clone (1112)'), (1113, u'Pollution and sensor manipulation - clone (1113)'), (1114, u'Pollution and sensor manipulation - clone (1114)'), (1115, u'Pollution and sensor manipulation - clone (1115)'), (1116, u'Pollution and sensor manipulation - clone (1116)'), (1117, u'Pollution and sensor manipulation - clone (1117)'), (1118, u'Pollution and sensor manipulation - clone (1118)'), (1119, u'Pollution and sensor manipulation - clone (1119)'), (1120, u'Pollution and sensor manipulation - clone (1120)')], 'label': 'Scenario'}, {'predicate': 'is related to', 'name': 'base_scenario', 'showtooltiprelations': False, 'help_text': 'Scenario to be used as Base scenario for this one', 'model': 'ST_procedure', 'type': 'ForeignKey', 'id': 16, 'value': [(1106, u'Pollution and sensor manipulation')], 'label': <class 'sp.models.Scenario'>}], 'geometry': None, 'fields': [{'name': 'name', 'value': u'Pollution and sensor manipulation', 'label': 'Name', 'help_text': 'A unique name for the stress-testing precedure', 'model': 'ST_procedure', 'type': 'CharField', 'id': 16}, {'name': 'description', 'value': u'Examine the duration for which the sensor is manipulated', 'label': 'Description', 'help_text': 'Short description of the stress-testing precedure', 'model': 'ST_procedure', 'type': 'TextField', 'id': 16}, {'name': 'base_scenario', 'value': <Scenario: Pollution and sensor manipulation>, 'label': 'Base scenario', 'help_text': 'Scenario to be used as Base scenario for this one', 'model': 'ST_procedure', 'type': 'RssForeignKey', 'id': 16}, {'name': 'status', 'value': u'Idle', 'label': u'status', 'help_text': 'Current status of the ST procedure', 'model': 'ST_procedure', 'type': 'SmallIntegerField', 'id': 16}], 'illustrations': [], 'model_str': u'ST_procedure'}] |
node | <django.template.defaulttags.LoadNode object at 0x7f5291b720d0> |
self | <ExtendsNode: extends "base_default.html"> |
/home/stopit/.virtualenvs/raet/lib/python2.7/site-packages/django/template/base.py
in _render
def __iter__(self):
for node in self.nodelist:
for subnode in node:
yield subnode
def _render(self, context):
return self.nodelist.render(context)...
def render(self, context):
"Display stage -- can be called many times"
context.render_context.push()
try:
if context.template is None:
Variable | Value |
---|---|
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'files': [], 'obj_unicode': u'Pollution and sensor manipulation', 'timestamp': datetime.datetime(2020, 5, 5, 18, 54, 8, 728000, tzinfo=<UTC>), 'fk_fields': [{'predicate': 'is related to', 'name': 'simulated_scenarios', 'showtooltiprelations': False, 'help_text': '', 'model': 'ST_procedure', 'type': 'ForeignKey', 'id': 16, 'value': [(1109, u'Pollution and sensor manipulation - clone (1109)'), (1110, u'Pollution and sensor manipulation - clone (1110)'), (1111, u'Pollution and sensor manipulation - clone (1111)'), (1112, u'Pollution and sensor manipulation - clone (1112)'), (1113, u'Pollution and sensor manipulation - clone (1113)'), (1114, u'Pollution and sensor manipulation - clone (1114)'), (1115, u'Pollution and sensor manipulation - clone (1115)'), (1116, u'Pollution and sensor manipulation - clone (1116)'), (1117, u'Pollution and sensor manipulation - clone (1117)'), (1118, u'Pollution and sensor manipulation - clone (1118)'), (1119, u'Pollution and sensor manipulation - clone (1119)'), (1120, u'Pollution and sensor manipulation - clone (1120)')], 'label': 'Scenario'}, {'predicate': 'is related to', 'name': 'base_scenario', 'showtooltiprelations': False, 'help_text': 'Scenario to be used as Base scenario for this one', 'model': 'ST_procedure', 'type': 'ForeignKey', 'id': 16, 'value': [(1106, u'Pollution and sensor manipulation')], 'label': <class 'sp.models.Scenario'>}], 'geometry': None, 'fields': [{'name': 'name', 'value': u'Pollution and sensor manipulation', 'label': 'Name', 'help_text': 'A unique name for the stress-testing precedure', 'model': 'ST_procedure', 'type': 'CharField', 'id': 16}, {'name': 'description', 'value': u'Examine the duration for which the sensor is manipulated', 'label': 'Description', 'help_text': 'Short description of the stress-testing precedure', 'model': 'ST_procedure', 'type': 'TextField', 'id': 16}, {'name': 'base_scenario', 'value': <Scenario: Pollution and sensor manipulation>, 'label': 'Base scenario', 'help_text': 'Scenario to be used as Base scenario for this one', 'model': 'ST_procedure', 'type': 'RssForeignKey', 'id': 16}, {'name': 'status', 'value': u'Idle', 'label': u'status', 'help_text': 'Current status of the ST procedure', 'model': 'ST_procedure', 'type': 'SmallIntegerField', 'id': 16}], 'illustrations': [], 'model_str': u'ST_procedure'}] |
self | <django.template.base.Template object at 0x7f5291f2e990> |
/home/stopit/.virtualenvs/raet/lib/python2.7/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | u'\n ' |
bits | [u'<!DOCTYPE HTML>\n', u'', u'\n', u'', u'\n\n\n<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang=""> <![endif]-->\n<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang=""> <![endif]-->\n<!--[if IE 8]> <html class="no-js lt-ie9" lang=""> <![endif]-->\n<!--[if gt IE 8]><!--> <html class="no-js" lang=""> <!--<![endif]-->\n<head>\n <meta charset="utf-8">\n <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">\n <meta name="description" content="django-spindle">\n <meta name="viewport" content="width=device-width, initial-scale=1">\n <link rel="stylesheet" href="', u'/static/css/bootstrap.min.css', u'">\n <link rel="stylesheet" href="', u'/static/css/open-iconic-bootstrap.css', u'" media="screen"/>\n <link rel="stylesheet" href="', u'/static/css/font-awesome.min.css', u'">\n <link rel="stylesheet" href="', u'/static/css/main.css', u'">\n\n\n ', u'\n\n <link rel="stylesheet" href="/static/css/sp.css">\n \n<link rel="stylesheet" href="/static/css/ol.css" type="text/css">\n<style>\n #detail-page ul li {\n text-indent: 0em; }\n #detail-page ul li:before {\n content: "";}\n</style>\n', u'\n ', u'\n ', u'\n\n <title>', u'\nSTOP-IT - Detail page\n', u'</title>\n</head>\n\n ', u'\n \n \n <!-- Global site tag (gtag.js) - Google Analytics -->\n <script async src="https://www.googletagmanager.com/gtag/js?id=G-9QN4EH8X17"></script>\n <script>\n window.dataLayer = window.dataLayer || [];\n function gtag(){dataLayer.push(arguments);}\n gtag(\'js\', new Date());\n\n gtag(\'config\', \'G-9QN4EH8X17\');\n </script>\n \n ', u'\n\n<body class="home" ', u' ', u'>\n<!--[if lt IE 8]>\n <p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>\n<![endif]-->\n\n<!--Notice Bar-->\n ', u'\n \n <header id="header">\n <nav class="navbar navbar-default">\n <div class="container">\n <div class="navbar-header">\n\n <div>\n <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#spindle-main-navbar">\n <span class="icon-bar"></span>\n <span class="icon-bar"></span>\n <span class="icon-bar"></span>\n </button>\n </div>\n\n <div class="collapse navbar-collapse" id="spindle-main-navbar">\n \n <a class="navbar-brand" style="padding:0;" href="/">\n <img src="/static/images/stop-it_logo.png" alt="STOP-IT Logo">\n </a>\n \n \n <form action="/search" method="GET" class="navbar-form navbar-right hidden-xs" role="search">\n <div class="form-group">\n <input type="text" name="term" value="" class="form-control" placeholder="Search...">\n </div>\n </form>\n\n <ul class="nav navbar-nav navbar-right">\n \n <li><a href="/"><span class="oi oi-account-login"></span> Home</a></li>\n \n\n <li class="dropdown">\n <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><i class="fa fa-sitemap"></i> FT<span class="caret"></span>\n </a>\n <ul class="dropdown-menu">\n \n <li><a href="/ft_viewer/96"><i>STOP-IT Quantity FT</i></a></li>\n \n <li><a href="/ft_viewer/97"><i>STOP-IT Water Quality FT</i></a></li>\n \n <li class="divider"></li>\n <li><a href="/ft/">Import</a></li>\n ... <trimmed 6152 bytes string> |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'files': [], 'obj_unicode': u'Pollution and sensor manipulation', 'timestamp': datetime.datetime(2020, 5, 5, 18, 54, 8, 728000, tzinfo=<UTC>), 'fk_fields': [{'predicate': 'is related to', 'name': 'simulated_scenarios', 'showtooltiprelations': False, 'help_text': '', 'model': 'ST_procedure', 'type': 'ForeignKey', 'id': 16, 'value': [(1109, u'Pollution and sensor manipulation - clone (1109)'), (1110, u'Pollution and sensor manipulation - clone (1110)'), (1111, u'Pollution and sensor manipulation - clone (1111)'), (1112, u'Pollution and sensor manipulation - clone (1112)'), (1113, u'Pollution and sensor manipulation - clone (1113)'), (1114, u'Pollution and sensor manipulation - clone (1114)'), (1115, u'Pollution and sensor manipulation - clone (1115)'), (1116, u'Pollution and sensor manipulation - clone (1116)'), (1117, u'Pollution and sensor manipulation - clone (1117)'), (1118, u'Pollution and sensor manipulation - clone (1118)'), (1119, u'Pollution and sensor manipulation - clone (1119)'), (1120, u'Pollution and sensor manipulation - clone (1120)')], 'label': 'Scenario'}, {'predicate': 'is related to', 'name': 'base_scenario', 'showtooltiprelations': False, 'help_text': 'Scenario to be used as Base scenario for this one', 'model': 'ST_procedure', 'type': 'ForeignKey', 'id': 16, 'value': [(1106, u'Pollution and sensor manipulation')], 'label': <class 'sp.models.Scenario'>}], 'geometry': None, 'fields': [{'name': 'name', 'value': u'Pollution and sensor manipulation', 'label': 'Name', 'help_text': 'A unique name for the stress-testing precedure', 'model': 'ST_procedure', 'type': 'CharField', 'id': 16}, {'name': 'description', 'value': u'Examine the duration for which the sensor is manipulated', 'label': 'Description', 'help_text': 'Short description of the stress-testing precedure', 'model': 'ST_procedure', 'type': 'TextField', 'id': 16}, {'name': 'base_scenario', 'value': <Scenario: Pollution and sensor manipulation>, 'label': 'Base scenario', 'help_text': 'Scenario to be used as Base scenario for this one', 'model': 'ST_procedure', 'type': 'RssForeignKey', 'id': 16}, {'name': 'status', 'value': u'Idle', 'label': u'status', 'help_text': 'Current status of the ST procedure', 'model': 'ST_procedure', 'type': 'SmallIntegerField', 'id': 16}], 'illustrations': [], 'model_str': u'ST_procedure'}] |
node | <Block Node: content. Contents: [<TextNode: u'\n '>]> |
self | [<TextNode: u'<!DOCTYPE HTML>\n'>, <django.template.defaulttags.LoadNode object at 0x7f5291b720d0>, <TextNode: u'\n'>, <django.template.defaulttags.LoadNode object at 0x7f5291b72f90>, <TextNode: u'\n\n\n<!--[if lt IE 7]> '>, <django.templatetags.static.StaticNode object at 0x7f5291b72b50>, <TextNode: u'">\n <link rel="stylesh'>, <django.templatetags.static.StaticNode object at 0x7f5291b72c50>, <TextNode: u'" media="screen"/>\n <'>, <django.templatetags.static.StaticNode object at 0x7f5291b72950>, <TextNode: u'">\n <link rel="stylesh'>, <django.templatetags.static.StaticNode object at 0x7f5291b72890>, <TextNode: u'">\n\n\n '>, <Block Node: styles. Contents: [<TextNode: u'\n '>]>, <TextNode: u'\n '>, <Block Node: styles_app. Contents: [<TextNode: u'\n '>]>, <TextNode: u'\n\n <title>'>, <Block Node: title. Contents: [<Variable Node: DEFAULTTITLEPAGE>]>, <TextNode: u'</title>\n</head>\n\n '>, <Block Node: google_analytics. Contents: [<TextNode: u'\n '>]>, <TextNode: u'\n\n<body class="home" '>, <Block Node: body_attributes. Contents: [<TextNode: u' '>]>, <TextNode: u'>\n<!--[if lt IE 8]>\n <'>, <Block Node: header. Contents: [<TextNode: u'\n <header id="header">'>, <Block Node: logo. Contents: [<TextNode: u'\n <a class="na'>, <django.templatetags.static.StaticNode object at 0x7f5291b72d90>, <TextNode: u'" style="height:62px;" al'>]>, <TextNode: u'\n </div>\n '>, <Block Node: home. Contents: [<TextNode: u'\n <li><a hre'>]>, <TextNode: u'\n\n '>, <Block Node: lists. Contents: [<TextNode: u'\n '>, <IfNode>, <TextNode: u'\n '>]>, <TextNode: u'\n\n '>, <Block Node: pivot. Contents: [<TextNode: u'\n '>, <IfNode>, <TextNode: u'\n '>]>, <TextNode: u'\n\n '>, <Block Node: search. Contents: [<TextNode: u'<li><a href="/ssearch/"><'>]>, <TextNode: u'\n '>, <Block Node: about. Contents: [<TextNode: u'<li><a href="/about/">Abo'>]>, <TextNode: u'\n '>, <Block Node: help. Contents: []>, <TextNode: u'\n\n '>, <Block Node: login. Contents: [<TextNode: u'<li><a href="/admin/">Log'>]>, <TextNode: u'\n </ul>\n '>]>, <TextNode: u'\n\n '>, <Block Node: subheader. Contents: [<TextNode: u'<br />'>]>, <TextNode: u'\n\n <div id="content">\n'>, <Block Node: messages. Contents: [<TextNode: u'\n '>]>, <TextNode: u'\n '>, <Block Node: content. Contents: [<TextNode: u'\n '>]>, <TextNode: u'\n <div class="push'>, <Block Node: footer. Contents: [<TextNode: u'\n <footer class="foote'>]>, <TextNode: u'\n\n <!--Scripts-->\n '>, <django.templatetags.static.StaticNode object at 0x7f5291dbd650>, <TextNode: u'"></script>\n <script s'>, <django.templatetags.static.StaticNode object at 0x7f5291dbda10>, <TextNode: u'"></script>\n <script s'>, <django.templatetags.static.StaticNode object at 0x7f5291ad2d50>, <TextNode: u'"></script>\n '>, <Block Node: javascript_library. Contents: [<TextNode: u'\n '>]>, <TextNode: u'\n '>, <Block Node: javascript. Contents: [<TextNode: u'\n '>]>, <TextNode: u'\n\n</body>\n</html>\n'>] |
/home/stopit/.virtualenvs/raet/lib/python2.7/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)...
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'files': [], 'obj_unicode': u'Pollution and sensor manipulation', 'timestamp': datetime.datetime(2020, 5, 5, 18, 54, 8, 728000, tzinfo=<UTC>), 'fk_fields': [{'predicate': 'is related to', 'name': 'simulated_scenarios', 'showtooltiprelations': False, 'help_text': '', 'model': 'ST_procedure', 'type': 'ForeignKey', 'id': 16, 'value': [(1109, u'Pollution and sensor manipulation - clone (1109)'), (1110, u'Pollution and sensor manipulation - clone (1110)'), (1111, u'Pollution and sensor manipulation - clone (1111)'), (1112, u'Pollution and sensor manipulation - clone (1112)'), (1113, u'Pollution and sensor manipulation - clone (1113)'), (1114, u'Pollution and sensor manipulation - clone (1114)'), (1115, u'Pollution and sensor manipulation - clone (1115)'), (1116, u'Pollution and sensor manipulation - clone (1116)'), (1117, u'Pollution and sensor manipulation - clone (1117)'), (1118, u'Pollution and sensor manipulation - clone (1118)'), (1119, u'Pollution and sensor manipulation - clone (1119)'), (1120, u'Pollution and sensor manipulation - clone (1120)')], 'label': 'Scenario'}, {'predicate': 'is related to', 'name': 'base_scenario', 'showtooltiprelations': False, 'help_text': 'Scenario to be used as Base scenario for this one', 'model': 'ST_procedure', 'type': 'ForeignKey', 'id': 16, 'value': [(1106, u'Pollution and sensor manipulation')], 'label': <class 'sp.models.Scenario'>}], 'geometry': None, 'fields': [{'name': 'name', 'value': u'Pollution and sensor manipulation', 'label': 'Name', 'help_text': 'A unique name for the stress-testing precedure', 'model': 'ST_procedure', 'type': 'CharField', 'id': 16}, {'name': 'description', 'value': u'Examine the duration for which the sensor is manipulated', 'label': 'Description', 'help_text': 'Short description of the stress-testing precedure', 'model': 'ST_procedure', 'type': 'TextField', 'id': 16}, {'name': 'base_scenario', 'value': <Scenario: Pollution and sensor manipulation>, 'label': 'Base scenario', 'help_text': 'Scenario to be used as Base scenario for this one', 'model': 'ST_procedure', 'type': 'RssForeignKey', 'id': 16}, {'name': 'status', 'value': u'Idle', 'label': u'status', 'help_text': 'Current status of the ST procedure', 'model': 'ST_procedure', 'type': 'SmallIntegerField', 'id': 16}], 'illustrations': [], 'model_str': u'ST_procedure'}] |
e | AttributeError("'Scenario' object has no attribute 'lower'",) |
self | <Block Node: content. Contents: [<TextNode: u'\n '>]> |
/home/stopit/.virtualenvs/raet/lib/python2.7/site-packages/django/template/loader_tags.py
in render
push = block = block_context.pop(self.name)
if block is None:
block = self
# Create new block so we can store context without thread-safety issues.
block = type(self)(block.name, block.nodelist)
block.context = context
context['block'] = block
result = block.nodelist.render(context)...
if push is not None:
block_context.push(self.name, push)
return result
def super(self):
if not hasattr(self, 'context'):
Variable | Value |
---|---|
block | <Block Node: content. Contents: [<TextNode: u'\n<section id="detail-page'>, <django.template.library.SimpleNode object at 0x7f5291eeeb50>, <TextNode: u': '>, <Variable Node: obj_unicode>, <TextNode: u'</h2>\n </div>\n </'>, <IfNode>, <TextNode: u'\n\n </div>\n<div id="detai'>, <IfNode>, <TextNode: u'\n </div> <!-- End '>, <django.template.defaulttags.AutoEscapeControlNode object at 0x7f5291d8ee50>, <TextNode: u'\n <br />\n '>, <For Node: for field in fields|concatenate_list:fk_fields, tail_len: 3>, <TextNode: u'\n\n <!--Files-->\n '>, <IfNode>, <TextNode: u'\n </div> <!-- End '>, <IfNode>, <TextNode: u'\n '>, <IfNode>, <TextNode: u'\n </div> <!-- class='>, <For Node: for field in fields|concatenate_list:fk_fields, tail_len: 3>, <TextNode: u'\n <p> </p>\n '>, <For Node: for field in fields|concatenate_list:fk_fields, tail_len: 3>, <TextNode: u'\n </div> <!-- class='>]> |
block_context | <django.template.loader_tags.BlockContext object at 0x7f5291df87d0> |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'files': [], 'obj_unicode': u'Pollution and sensor manipulation', 'timestamp': datetime.datetime(2020, 5, 5, 18, 54, 8, 728000, tzinfo=<UTC>), 'fk_fields': [{'predicate': 'is related to', 'name': 'simulated_scenarios', 'showtooltiprelations': False, 'help_text': '', 'model': 'ST_procedure', 'type': 'ForeignKey', 'id': 16, 'value': [(1109, u'Pollution and sensor manipulation - clone (1109)'), (1110, u'Pollution and sensor manipulation - clone (1110)'), (1111, u'Pollution and sensor manipulation - clone (1111)'), (1112, u'Pollution and sensor manipulation - clone (1112)'), (1113, u'Pollution and sensor manipulation - clone (1113)'), (1114, u'Pollution and sensor manipulation - clone (1114)'), (1115, u'Pollution and sensor manipulation - clone (1115)'), (1116, u'Pollution and sensor manipulation - clone (1116)'), (1117, u'Pollution and sensor manipulation - clone (1117)'), (1118, u'Pollution and sensor manipulation - clone (1118)'), (1119, u'Pollution and sensor manipulation - clone (1119)'), (1120, u'Pollution and sensor manipulation - clone (1120)')], 'label': 'Scenario'}, {'predicate': 'is related to', 'name': 'base_scenario', 'showtooltiprelations': False, 'help_text': 'Scenario to be used as Base scenario for this one', 'model': 'ST_procedure', 'type': 'ForeignKey', 'id': 16, 'value': [(1106, u'Pollution and sensor manipulation')], 'label': <class 'sp.models.Scenario'>}], 'geometry': None, 'fields': [{'name': 'name', 'value': u'Pollution and sensor manipulation', 'label': 'Name', 'help_text': 'A unique name for the stress-testing precedure', 'model': 'ST_procedure', 'type': 'CharField', 'id': 16}, {'name': 'description', 'value': u'Examine the duration for which the sensor is manipulated', 'label': 'Description', 'help_text': 'Short description of the stress-testing precedure', 'model': 'ST_procedure', 'type': 'TextField', 'id': 16}, {'name': 'base_scenario', 'value': <Scenario: Pollution and sensor manipulation>, 'label': 'Base scenario', 'help_text': 'Scenario to be used as Base scenario for this one', 'model': 'ST_procedure', 'type': 'RssForeignKey', 'id': 16}, {'name': 'status', 'value': u'Idle', 'label': u'status', 'help_text': 'Current status of the ST procedure', 'model': 'ST_procedure', 'type': 'SmallIntegerField', 'id': 16}], 'illustrations': [], 'model_str': u'ST_procedure'}] |
push | <Block Node: content. Contents: [<TextNode: u'\n<section id="detail-page'>, <django.template.library.SimpleNode object at 0x7f5291eeeb50>, <TextNode: u': '>, <Variable Node: obj_unicode>, <TextNode: u'</h2>\n </div>\n </'>, <IfNode>, <TextNode: u'\n\n </div>\n<div id="detai'>, <IfNode>, <TextNode: u'\n </div> <!-- End '>, <django.template.defaulttags.AutoEscapeControlNode object at 0x7f5291d8ee50>, <TextNode: u'\n <br />\n '>, <For Node: for field in fields|concatenate_list:fk_fields, tail_len: 3>, <TextNode: u'\n\n <!--Files-->\n '>, <IfNode>, <TextNode: u'\n </div> <!-- End '>, <IfNode>, <TextNode: u'\n '>, <IfNode>, <TextNode: u'\n </div> <!-- class='>, <For Node: for field in fields|concatenate_list:fk_fields, tail_len: 3>, <TextNode: u'\n <p> </p>\n '>, <For Node: for field in fields|concatenate_list:fk_fields, tail_len: 3>, <TextNode: u'\n </div> <!-- class='>]> |
self | <Block Node: content. Contents: [<TextNode: u'\n '>]> |
/home/stopit/.virtualenvs/raet/lib/python2.7/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | u'\n </div> <!-- End id="sectionFiles" -->\n\n <!--Relationships-->\n ' |
bits | [u'\n<section id="detail-page">\n <div class="container">\n <div class="row">\n <div class="col-md-12">\n <h2 class="text-center">', u'Stress-Testintg Procedure', u': ', u'Pollution and sensor manipulation', u'</h2>\n </div>\n </div>\n\n ', u'', u'\n\n </div>\n<div id="detail-main-content">\n <div class="container">\n\n <div class="tab-content">\n\n <div id="sectionMap" class="tab-pane fade" style="display:inline;">\n <div id="map" style="height: 400px; width: 100%;"></div>\n </div> <!-- End id="sectionMap" -->\n\n <div id="sectionIllustrations" class="tab-pane fade in active">\n ', u'', u'\n </div> <!-- End id="sectionIllustrations" -->\n\n </div> <!-- class="tab-content" -->\n </div> <!-- div class="container" -->\n\n\n\n <div class="container ds-tooltip">\n <div class="row">\n <!--Main Content-->\n <div class="col-md-offset-1 col-md-7">\n ', u'\n \n \n \n \n <h3>Description</h3>\n <span>Examine the duration for which the sensor is manipulated</span>\n \n \n \n \n \n \n \n \n \n \n ', u'\n <br />\n ', u'\n \n \n \n \n \n \n \n \n \n \n \n ', u'\n\n <!--Files-->\n <div id="sectionFiles">\n ', u'', u'\n </div> <!-- End id="sectionFiles" -->\n\n <!--Relationships-->\n '] |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'files': [], 'obj_unicode': u'Pollution and sensor manipulation', 'timestamp': datetime.datetime(2020, 5, 5, 18, 54, 8, 728000, tzinfo=<UTC>), 'fk_fields': [{'predicate': 'is related to', 'name': 'simulated_scenarios', 'showtooltiprelations': False, 'help_text': '', 'model': 'ST_procedure', 'type': 'ForeignKey', 'id': 16, 'value': [(1109, u'Pollution and sensor manipulation - clone (1109)'), (1110, u'Pollution and sensor manipulation - clone (1110)'), (1111, u'Pollution and sensor manipulation - clone (1111)'), (1112, u'Pollution and sensor manipulation - clone (1112)'), (1113, u'Pollution and sensor manipulation - clone (1113)'), (1114, u'Pollution and sensor manipulation - clone (1114)'), (1115, u'Pollution and sensor manipulation - clone (1115)'), (1116, u'Pollution and sensor manipulation - clone (1116)'), (1117, u'Pollution and sensor manipulation - clone (1117)'), (1118, u'Pollution and sensor manipulation - clone (1118)'), (1119, u'Pollution and sensor manipulation - clone (1119)'), (1120, u'Pollution and sensor manipulation - clone (1120)')], 'label': 'Scenario'}, {'predicate': 'is related to', 'name': 'base_scenario', 'showtooltiprelations': False, 'help_text': 'Scenario to be used as Base scenario for this one', 'model': 'ST_procedure', 'type': 'ForeignKey', 'id': 16, 'value': [(1106, u'Pollution and sensor manipulation')], 'label': <class 'sp.models.Scenario'>}], 'geometry': None, 'fields': [{'name': 'name', 'value': u'Pollution and sensor manipulation', 'label': 'Name', 'help_text': 'A unique name for the stress-testing precedure', 'model': 'ST_procedure', 'type': 'CharField', 'id': 16}, {'name': 'description', 'value': u'Examine the duration for which the sensor is manipulated', 'label': 'Description', 'help_text': 'Short description of the stress-testing precedure', 'model': 'ST_procedure', 'type': 'TextField', 'id': 16}, {'name': 'base_scenario', 'value': <Scenario: Pollution and sensor manipulation>, 'label': 'Base scenario', 'help_text': 'Scenario to be used as Base scenario for this one', 'model': 'ST_procedure', 'type': 'RssForeignKey', 'id': 16}, {'name': 'status', 'value': u'Idle', 'label': u'status', 'help_text': 'Current status of the ST procedure', 'model': 'ST_procedure', 'type': 'SmallIntegerField', 'id': 16}], 'illustrations': [], 'model_str': u'ST_procedure'}] |
node | <IfNode> |
self | [<TextNode: u'\n<section id="detail-page'>, <django.template.library.SimpleNode object at 0x7f5291eeeb50>, <TextNode: u': '>, <Variable Node: obj_unicode>, <TextNode: u'</h2>\n </div>\n </'>, <IfNode>, <TextNode: u'\n\n </div>\n<div id="detai'>, <IfNode>, <TextNode: u'\n </div> <!-- End '>, <django.template.defaulttags.AutoEscapeControlNode object at 0x7f5291d8ee50>, <TextNode: u'\n <br />\n '>, <For Node: for field in fields|concatenate_list:fk_fields, tail_len: 3>, <TextNode: u'\n\n <!--Files-->\n '>, <IfNode>, <TextNode: u'\n </div> <!-- End '>, <IfNode>, <TextNode: u'\n '>, <IfNode>, <TextNode: u'\n </div> <!-- class='>, <For Node: for field in fields|concatenate_list:fk_fields, tail_len: 3>, <TextNode: u'\n <p> </p>\n '>, <For Node: for field in fields|concatenate_list:fk_fields, tail_len: 3>, <TextNode: u'\n </div> <!-- class='>] |
/home/stopit/.virtualenvs/raet/lib/python2.7/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)...
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'files': [], 'obj_unicode': u'Pollution and sensor manipulation', 'timestamp': datetime.datetime(2020, 5, 5, 18, 54, 8, 728000, tzinfo=<UTC>), 'fk_fields': [{'predicate': 'is related to', 'name': 'simulated_scenarios', 'showtooltiprelations': False, 'help_text': '', 'model': 'ST_procedure', 'type': 'ForeignKey', 'id': 16, 'value': [(1109, u'Pollution and sensor manipulation - clone (1109)'), (1110, u'Pollution and sensor manipulation - clone (1110)'), (1111, u'Pollution and sensor manipulation - clone (1111)'), (1112, u'Pollution and sensor manipulation - clone (1112)'), (1113, u'Pollution and sensor manipulation - clone (1113)'), (1114, u'Pollution and sensor manipulation - clone (1114)'), (1115, u'Pollution and sensor manipulation - clone (1115)'), (1116, u'Pollution and sensor manipulation - clone (1116)'), (1117, u'Pollution and sensor manipulation - clone (1117)'), (1118, u'Pollution and sensor manipulation - clone (1118)'), (1119, u'Pollution and sensor manipulation - clone (1119)'), (1120, u'Pollution and sensor manipulation - clone (1120)')], 'label': 'Scenario'}, {'predicate': 'is related to', 'name': 'base_scenario', 'showtooltiprelations': False, 'help_text': 'Scenario to be used as Base scenario for this one', 'model': 'ST_procedure', 'type': 'ForeignKey', 'id': 16, 'value': [(1106, u'Pollution and sensor manipulation')], 'label': <class 'sp.models.Scenario'>}], 'geometry': None, 'fields': [{'name': 'name', 'value': u'Pollution and sensor manipulation', 'label': 'Name', 'help_text': 'A unique name for the stress-testing precedure', 'model': 'ST_procedure', 'type': 'CharField', 'id': 16}, {'name': 'description', 'value': u'Examine the duration for which the sensor is manipulated', 'label': 'Description', 'help_text': 'Short description of the stress-testing precedure', 'model': 'ST_procedure', 'type': 'TextField', 'id': 16}, {'name': 'base_scenario', 'value': <Scenario: Pollution and sensor manipulation>, 'label': 'Base scenario', 'help_text': 'Scenario to be used as Base scenario for this one', 'model': 'ST_procedure', 'type': 'RssForeignKey', 'id': 16}, {'name': 'status', 'value': u'Idle', 'label': u'status', 'help_text': 'Current status of the ST procedure', 'model': 'ST_procedure', 'type': 'SmallIntegerField', 'id': 16}], 'illustrations': [], 'model_str': u'ST_procedure'}] |
e | AttributeError("'Scenario' object has no attribute 'lower'",) |
self | <IfNode> |
/home/stopit/.virtualenvs/raet/lib/python2.7/site-packages/django/template/defaulttags.py
in render
match = condition.eval(context)
except VariableDoesNotExist:
match = None
else: # else clause
match = True
if match:
return nodelist.render(context)...
return ''
class LoremNode(Node):
def __init__(self, count, method, common):
Variable | Value |
---|---|
condition | (literal <django.template.base.FilterExpression object at 0x7f5291ef2b10>) |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'files': [], 'obj_unicode': u'Pollution and sensor manipulation', 'timestamp': datetime.datetime(2020, 5, 5, 18, 54, 8, 728000, tzinfo=<UTC>), 'fk_fields': [{'predicate': 'is related to', 'name': 'simulated_scenarios', 'showtooltiprelations': False, 'help_text': '', 'model': 'ST_procedure', 'type': 'ForeignKey', 'id': 16, 'value': [(1109, u'Pollution and sensor manipulation - clone (1109)'), (1110, u'Pollution and sensor manipulation - clone (1110)'), (1111, u'Pollution and sensor manipulation - clone (1111)'), (1112, u'Pollution and sensor manipulation - clone (1112)'), (1113, u'Pollution and sensor manipulation - clone (1113)'), (1114, u'Pollution and sensor manipulation - clone (1114)'), (1115, u'Pollution and sensor manipulation - clone (1115)'), (1116, u'Pollution and sensor manipulation - clone (1116)'), (1117, u'Pollution and sensor manipulation - clone (1117)'), (1118, u'Pollution and sensor manipulation - clone (1118)'), (1119, u'Pollution and sensor manipulation - clone (1119)'), (1120, u'Pollution and sensor manipulation - clone (1120)')], 'label': 'Scenario'}, {'predicate': 'is related to', 'name': 'base_scenario', 'showtooltiprelations': False, 'help_text': 'Scenario to be used as Base scenario for this one', 'model': 'ST_procedure', 'type': 'ForeignKey', 'id': 16, 'value': [(1106, u'Pollution and sensor manipulation')], 'label': <class 'sp.models.Scenario'>}], 'geometry': None, 'fields': [{'name': 'name', 'value': u'Pollution and sensor manipulation', 'label': 'Name', 'help_text': 'A unique name for the stress-testing precedure', 'model': 'ST_procedure', 'type': 'CharField', 'id': 16}, {'name': 'description', 'value': u'Examine the duration for which the sensor is manipulated', 'label': 'Description', 'help_text': 'Short description of the stress-testing precedure', 'model': 'ST_procedure', 'type': 'TextField', 'id': 16}, {'name': 'base_scenario', 'value': <Scenario: Pollution and sensor manipulation>, 'label': 'Base scenario', 'help_text': 'Scenario to be used as Base scenario for this one', 'model': 'ST_procedure', 'type': 'RssForeignKey', 'id': 16}, {'name': 'status', 'value': u'Idle', 'label': u'status', 'help_text': 'Current status of the ST procedure', 'model': 'ST_procedure', 'type': 'SmallIntegerField', 'id': 16}], 'illustrations': [], 'model_str': u'ST_procedure'}] |
match | [{'help_text': '', 'id': 16, 'label': 'Scenario', 'model': 'ST_procedure', 'name': 'simulated_scenarios', 'predicate': 'is related to', 'showtooltiprelations': False, 'type': 'ForeignKey', 'value': [(1109, u'Pollution and sensor manipulation - clone (1109)'), (1110, u'Pollution and sensor manipulation - clone (1110)'), (1111, u'Pollution and sensor manipulation - clone (1111)'), (1112, u'Pollution and sensor manipulation - clone (1112)'), (1113, u'Pollution and sensor manipulation - clone (1113)'), (1114, u'Pollution and sensor manipulation - clone (1114)'), (1115, u'Pollution and sensor manipulation - clone (1115)'), (1116, u'Pollution and sensor manipulation - clone (1116)'), (1117, u'Pollution and sensor manipulation - clone (1117)'), (1118, u'Pollution and sensor manipulation - clone (1118)'), (1119, u'Pollution and sensor manipulation - clone (1119)'), (1120, u'Pollution and sensor manipulation - clone (1120)')]}, {'help_text': 'Scenario to be used as Base scenario for this one', 'id': 16, 'label': <class 'sp.models.Scenario'>, 'model': 'ST_procedure', 'name': 'base_scenario', 'predicate': 'is related to', 'showtooltiprelations': False, 'type': 'ForeignKey', 'value': [(1106, u'Pollution and sensor manipulation')]}] |
nodelist | [<TextNode: u'\n <hr>\n '>, <For Node: for field in fk_fields, tail_len: 3>, <TextNode: u'\n <br />\n '>] |
self | <IfNode> |
/home/stopit/.virtualenvs/raet/lib/python2.7/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | u'\n <hr>\n ' |
bits | [u'\n <hr>\n '] |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'files': [], 'obj_unicode': u'Pollution and sensor manipulation', 'timestamp': datetime.datetime(2020, 5, 5, 18, 54, 8, 728000, tzinfo=<UTC>), 'fk_fields': [{'predicate': 'is related to', 'name': 'simulated_scenarios', 'showtooltiprelations': False, 'help_text': '', 'model': 'ST_procedure', 'type': 'ForeignKey', 'id': 16, 'value': [(1109, u'Pollution and sensor manipulation - clone (1109)'), (1110, u'Pollution and sensor manipulation - clone (1110)'), (1111, u'Pollution and sensor manipulation - clone (1111)'), (1112, u'Pollution and sensor manipulation - clone (1112)'), (1113, u'Pollution and sensor manipulation - clone (1113)'), (1114, u'Pollution and sensor manipulation - clone (1114)'), (1115, u'Pollution and sensor manipulation - clone (1115)'), (1116, u'Pollution and sensor manipulation - clone (1116)'), (1117, u'Pollution and sensor manipulation - clone (1117)'), (1118, u'Pollution and sensor manipulation - clone (1118)'), (1119, u'Pollution and sensor manipulation - clone (1119)'), (1120, u'Pollution and sensor manipulation - clone (1120)')], 'label': 'Scenario'}, {'predicate': 'is related to', 'name': 'base_scenario', 'showtooltiprelations': False, 'help_text': 'Scenario to be used as Base scenario for this one', 'model': 'ST_procedure', 'type': 'ForeignKey', 'id': 16, 'value': [(1106, u'Pollution and sensor manipulation')], 'label': <class 'sp.models.Scenario'>}], 'geometry': None, 'fields': [{'name': 'name', 'value': u'Pollution and sensor manipulation', 'label': 'Name', 'help_text': 'A unique name for the stress-testing precedure', 'model': 'ST_procedure', 'type': 'CharField', 'id': 16}, {'name': 'description', 'value': u'Examine the duration for which the sensor is manipulated', 'label': 'Description', 'help_text': 'Short description of the stress-testing precedure', 'model': 'ST_procedure', 'type': 'TextField', 'id': 16}, {'name': 'base_scenario', 'value': <Scenario: Pollution and sensor manipulation>, 'label': 'Base scenario', 'help_text': 'Scenario to be used as Base scenario for this one', 'model': 'ST_procedure', 'type': 'RssForeignKey', 'id': 16}, {'name': 'status', 'value': u'Idle', 'label': u'status', 'help_text': 'Current status of the ST procedure', 'model': 'ST_procedure', 'type': 'SmallIntegerField', 'id': 16}], 'illustrations': [], 'model_str': u'ST_procedure'}] |
node | <For Node: for field in fk_fields, tail_len: 3> |
self | [<TextNode: u'\n <hr>\n '>, <For Node: for field in fk_fields, tail_len: 3>, <TextNode: u'\n <br />\n '>] |
/home/stopit/.virtualenvs/raet/lib/python2.7/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)...
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'files': [], 'obj_unicode': u'Pollution and sensor manipulation', 'timestamp': datetime.datetime(2020, 5, 5, 18, 54, 8, 728000, tzinfo=<UTC>), 'fk_fields': [{'predicate': 'is related to', 'name': 'simulated_scenarios', 'showtooltiprelations': False, 'help_text': '', 'model': 'ST_procedure', 'type': 'ForeignKey', 'id': 16, 'value': [(1109, u'Pollution and sensor manipulation - clone (1109)'), (1110, u'Pollution and sensor manipulation - clone (1110)'), (1111, u'Pollution and sensor manipulation - clone (1111)'), (1112, u'Pollution and sensor manipulation - clone (1112)'), (1113, u'Pollution and sensor manipulation - clone (1113)'), (1114, u'Pollution and sensor manipulation - clone (1114)'), (1115, u'Pollution and sensor manipulation - clone (1115)'), (1116, u'Pollution and sensor manipulation - clone (1116)'), (1117, u'Pollution and sensor manipulation - clone (1117)'), (1118, u'Pollution and sensor manipulation - clone (1118)'), (1119, u'Pollution and sensor manipulation - clone (1119)'), (1120, u'Pollution and sensor manipulation - clone (1120)')], 'label': 'Scenario'}, {'predicate': 'is related to', 'name': 'base_scenario', 'showtooltiprelations': False, 'help_text': 'Scenario to be used as Base scenario for this one', 'model': 'ST_procedure', 'type': 'ForeignKey', 'id': 16, 'value': [(1106, u'Pollution and sensor manipulation')], 'label': <class 'sp.models.Scenario'>}], 'geometry': None, 'fields': [{'name': 'name', 'value': u'Pollution and sensor manipulation', 'label': 'Name', 'help_text': 'A unique name for the stress-testing precedure', 'model': 'ST_procedure', 'type': 'CharField', 'id': 16}, {'name': 'description', 'value': u'Examine the duration for which the sensor is manipulated', 'label': 'Description', 'help_text': 'Short description of the stress-testing precedure', 'model': 'ST_procedure', 'type': 'TextField', 'id': 16}, {'name': 'base_scenario', 'value': <Scenario: Pollution and sensor manipulation>, 'label': 'Base scenario', 'help_text': 'Scenario to be used as Base scenario for this one', 'model': 'ST_procedure', 'type': 'RssForeignKey', 'id': 16}, {'name': 'status', 'value': u'Idle', 'label': u'status', 'help_text': 'Current status of the ST procedure', 'model': 'ST_procedure', 'type': 'SmallIntegerField', 'id': 16}], 'illustrations': [], 'model_str': u'ST_procedure'}] |
e | AttributeError("'Scenario' object has no attribute 'lower'",) |
self | <For Node: for field in fk_fields, tail_len: 3> |
/home/stopit/.virtualenvs/raet/lib/python2.7/site-packages/django/template/defaulttags.py
in render
else:
pop_context = True
context.update(unpacked_vars)
else:
context[self.loopvars[0]] = item
for node in self.nodelist_loop:
nodelist.append(node.render_annotated(context))...
if pop_context:
# The loop variables were pushed on to the context so pop them
# off again. This is necessary because the tag lets the length
# of loopvars differ to the length of each set of items and we
# don't want to leave any vars from the previous loop on the
Variable | Value |
---|---|
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'files': [], 'obj_unicode': u'Pollution and sensor manipulation', 'timestamp': datetime.datetime(2020, 5, 5, 18, 54, 8, 728000, tzinfo=<UTC>), 'fk_fields': [{'predicate': 'is related to', 'name': 'simulated_scenarios', 'showtooltiprelations': False, 'help_text': '', 'model': 'ST_procedure', 'type': 'ForeignKey', 'id': 16, 'value': [(1109, u'Pollution and sensor manipulation - clone (1109)'), (1110, u'Pollution and sensor manipulation - clone (1110)'), (1111, u'Pollution and sensor manipulation - clone (1111)'), (1112, u'Pollution and sensor manipulation - clone (1112)'), (1113, u'Pollution and sensor manipulation - clone (1113)'), (1114, u'Pollution and sensor manipulation - clone (1114)'), (1115, u'Pollution and sensor manipulation - clone (1115)'), (1116, u'Pollution and sensor manipulation - clone (1116)'), (1117, u'Pollution and sensor manipulation - clone (1117)'), (1118, u'Pollution and sensor manipulation - clone (1118)'), (1119, u'Pollution and sensor manipulation - clone (1119)'), (1120, u'Pollution and sensor manipulation - clone (1120)')], 'label': 'Scenario'}, {'predicate': 'is related to', 'name': 'base_scenario', 'showtooltiprelations': False, 'help_text': 'Scenario to be used as Base scenario for this one', 'model': 'ST_procedure', 'type': 'ForeignKey', 'id': 16, 'value': [(1106, u'Pollution and sensor manipulation')], 'label': <class 'sp.models.Scenario'>}], 'geometry': None, 'fields': [{'name': 'name', 'value': u'Pollution and sensor manipulation', 'label': 'Name', 'help_text': 'A unique name for the stress-testing precedure', 'model': 'ST_procedure', 'type': 'CharField', 'id': 16}, {'name': 'description', 'value': u'Examine the duration for which the sensor is manipulated', 'label': 'Description', 'help_text': 'Short description of the stress-testing precedure', 'model': 'ST_procedure', 'type': 'TextField', 'id': 16}, {'name': 'base_scenario', 'value': <Scenario: Pollution and sensor manipulation>, 'label': 'Base scenario', 'help_text': 'Scenario to be used as Base scenario for this one', 'model': 'ST_procedure', 'type': 'RssForeignKey', 'id': 16}, {'name': 'status', 'value': u'Idle', 'label': u'status', 'help_text': 'Current status of the ST procedure', 'model': 'ST_procedure', 'type': 'SmallIntegerField', 'id': 16}], 'illustrations': [], 'model_str': u'ST_procedure'}] |
i | 1 |
item | {'help_text': 'Scenario to be used as Base scenario for this one', 'id': 16, 'label': <class 'sp.models.Scenario'>, 'model': 'ST_procedure', 'name': 'base_scenario', 'predicate': 'is related to', 'showtooltiprelations': False, 'type': 'ForeignKey', 'value': [(1106, u'Pollution and sensor manipulation')]} |
len_values | 2 |
loop_dict | {u'counter': 2, u'counter0': 1, u'first': False, u'last': True, u'parentloop': {}, u'revcounter': 1, u'revcounter0': 0} |
node | <IfNode> |
nodelist | [u'\n ', u'\n <div>\n <h3>Scenarios</h3>\n <div class="help-text"></div>\n <ul>\n \n <li class="subsol-list-item">\n <a href="/d/Scenario/1109" >Pollution and sensor manipulation - clone (1109)</a><br />\n </li>\n \n <li class="subsol-list-item">\n <a href="/d/Scenario/1110" >Pollution and sensor manipulation - clone (1110)</a><br />\n </li>\n \n <li class="subsol-list-item">\n <a href="/d/Scenario/1111" >Pollution and sensor manipulation - clone (1111)</a><br />\n </li>\n \n <li class="subsol-list-item">\n <a href="/d/Scenario/1112" >Pollution and sensor manipulation - clone (1112)</a><br />\n </li>\n \n <li class="subsol-list-item">\n <a href="/d/Scenario/1113" >Pollution and sensor manipulation - clone (1113)</a><br />\n </li>\n \n <li class="subsol-list-item">\n <a href="/d/Scenario/1114" >Pollution and sensor manipulation - clone (1114)</a><br />\n </li>\n \n <li class="subsol-list-item">\n <a href="/d/Scenario/1115" >Pollution and sensor manipulation - clone (1115)</a><br />\n </li>\n \n <li class="subsol-list-item">\n <a href="/d/Scenario/1116" >Pollution and sensor manipulation - clone (1116)</a><br />\n </li>\n \n <li class="subsol-list-item">\n <a href="/d/Scenario/1117" >Pollution and sensor manipulation - clone (1117)</a><br />\n </li>\n \n <li class="subsol-list-item">\n <a href="/d/Scenario/1118" >Pollution and sensor manipulation - clone (1118)</a><br />\n </li>\n \n <li class="subsol-list-item">\n <a href="/d/Scenario/1119" >Pollution and sensor manipulation - clone (1119)</a><br />\n </li>\n \n <li class="subsol-list-item">\n <a href="/d/Scenario/1120" >Pollution and sensor manipulation - clone (1120)</a><br />\n </li>\n \n </ul>\n </div>\n ', u'\n ', u'\n '] |
num_loopvars | 1 |
parentloop | {} |
pop_context | False |
self | <For Node: for field in fk_fields, tail_len: 3> |
unpack | False |
values | [{'help_text': '', 'id': 16, 'label': 'Scenario', 'model': 'ST_procedure', 'name': 'simulated_scenarios', 'predicate': 'is related to', 'showtooltiprelations': False, 'type': 'ForeignKey', 'value': [(1109, u'Pollution and sensor manipulation - clone (1109)'), (1110, u'Pollution and sensor manipulation - clone (1110)'), (1111, u'Pollution and sensor manipulation - clone (1111)'), (1112, u'Pollution and sensor manipulation - clone (1112)'), (1113, u'Pollution and sensor manipulation - clone (1113)'), (1114, u'Pollution and sensor manipulation - clone (1114)'), (1115, u'Pollution and sensor manipulation - clone (1115)'), (1116, u'Pollution and sensor manipulation - clone (1116)'), (1117, u'Pollution and sensor manipulation - clone (1117)'), (1118, u'Pollution and sensor manipulation - clone (1118)'), (1119, u'Pollution and sensor manipulation - clone (1119)'), (1120, u'Pollution and sensor manipulation - clone (1120)')]}, {'help_text': 'Scenario to be used as Base scenario for this one', 'id': 16, 'label': <class 'sp.models.Scenario'>, 'model': 'ST_procedure', 'name': 'base_scenario', 'predicate': 'is related to', 'showtooltiprelations': False, 'type': 'ForeignKey', 'value': [(1106, u'Pollution and sensor manipulation')]}] |
/home/stopit/.virtualenvs/raet/lib/python2.7/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)...
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'files': [], 'obj_unicode': u'Pollution and sensor manipulation', 'timestamp': datetime.datetime(2020, 5, 5, 18, 54, 8, 728000, tzinfo=<UTC>), 'fk_fields': [{'predicate': 'is related to', 'name': 'simulated_scenarios', 'showtooltiprelations': False, 'help_text': '', 'model': 'ST_procedure', 'type': 'ForeignKey', 'id': 16, 'value': [(1109, u'Pollution and sensor manipulation - clone (1109)'), (1110, u'Pollution and sensor manipulation - clone (1110)'), (1111, u'Pollution and sensor manipulation - clone (1111)'), (1112, u'Pollution and sensor manipulation - clone (1112)'), (1113, u'Pollution and sensor manipulation - clone (1113)'), (1114, u'Pollution and sensor manipulation - clone (1114)'), (1115, u'Pollution and sensor manipulation - clone (1115)'), (1116, u'Pollution and sensor manipulation - clone (1116)'), (1117, u'Pollution and sensor manipulation - clone (1117)'), (1118, u'Pollution and sensor manipulation - clone (1118)'), (1119, u'Pollution and sensor manipulation - clone (1119)'), (1120, u'Pollution and sensor manipulation - clone (1120)')], 'label': 'Scenario'}, {'predicate': 'is related to', 'name': 'base_scenario', 'showtooltiprelations': False, 'help_text': 'Scenario to be used as Base scenario for this one', 'model': 'ST_procedure', 'type': 'ForeignKey', 'id': 16, 'value': [(1106, u'Pollution and sensor manipulation')], 'label': <class 'sp.models.Scenario'>}], 'geometry': None, 'fields': [{'name': 'name', 'value': u'Pollution and sensor manipulation', 'label': 'Name', 'help_text': 'A unique name for the stress-testing precedure', 'model': 'ST_procedure', 'type': 'CharField', 'id': 16}, {'name': 'description', 'value': u'Examine the duration for which the sensor is manipulated', 'label': 'Description', 'help_text': 'Short description of the stress-testing precedure', 'model': 'ST_procedure', 'type': 'TextField', 'id': 16}, {'name': 'base_scenario', 'value': <Scenario: Pollution and sensor manipulation>, 'label': 'Base scenario', 'help_text': 'Scenario to be used as Base scenario for this one', 'model': 'ST_procedure', 'type': 'RssForeignKey', 'id': 16}, {'name': 'status', 'value': u'Idle', 'label': u'status', 'help_text': 'Current status of the ST procedure', 'model': 'ST_procedure', 'type': 'SmallIntegerField', 'id': 16}], 'illustrations': [], 'model_str': u'ST_procedure'}] |
e | AttributeError("'Scenario' object has no attribute 'lower'",) |
self | <IfNode> |
/home/stopit/.virtualenvs/raet/lib/python2.7/site-packages/django/template/defaulttags.py
in render
match = condition.eval(context)
except VariableDoesNotExist:
match = None
else: # else clause
match = True
if match:
return nodelist.render(context)...
return ''
class LoremNode(Node):
def __init__(self, count, method, common):
Variable | Value |
---|---|
condition | (or (and (literal <django.template.base.FilterExpression object at 0x7f5291ef2790>) (== (literal <django.template.base.FilterExpression object at 0x7f5291ef22d0>) (literal <django.template.base.FilterExpression object at 0x7f5291ef2590>))) (and (literal <django.template.base.FilterExpression object at 0x7f5291ef2c10>) (== (literal <django.template.base.FilterExpression object at 0x7f5291ef2190>) (literal <django.template.base.FilterExpression object at 0x7f5291ef2810>)))) |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'files': [], 'obj_unicode': u'Pollution and sensor manipulation', 'timestamp': datetime.datetime(2020, 5, 5, 18, 54, 8, 728000, tzinfo=<UTC>), 'fk_fields': [{'predicate': 'is related to', 'name': 'simulated_scenarios', 'showtooltiprelations': False, 'help_text': '', 'model': 'ST_procedure', 'type': 'ForeignKey', 'id': 16, 'value': [(1109, u'Pollution and sensor manipulation - clone (1109)'), (1110, u'Pollution and sensor manipulation - clone (1110)'), (1111, u'Pollution and sensor manipulation - clone (1111)'), (1112, u'Pollution and sensor manipulation - clone (1112)'), (1113, u'Pollution and sensor manipulation - clone (1113)'), (1114, u'Pollution and sensor manipulation - clone (1114)'), (1115, u'Pollution and sensor manipulation - clone (1115)'), (1116, u'Pollution and sensor manipulation - clone (1116)'), (1117, u'Pollution and sensor manipulation - clone (1117)'), (1118, u'Pollution and sensor manipulation - clone (1118)'), (1119, u'Pollution and sensor manipulation - clone (1119)'), (1120, u'Pollution and sensor manipulation - clone (1120)')], 'label': 'Scenario'}, {'predicate': 'is related to', 'name': 'base_scenario', 'showtooltiprelations': False, 'help_text': 'Scenario to be used as Base scenario for this one', 'model': 'ST_procedure', 'type': 'ForeignKey', 'id': 16, 'value': [(1106, u'Pollution and sensor manipulation')], 'label': <class 'sp.models.Scenario'>}], 'geometry': None, 'fields': [{'name': 'name', 'value': u'Pollution and sensor manipulation', 'label': 'Name', 'help_text': 'A unique name for the stress-testing precedure', 'model': 'ST_procedure', 'type': 'CharField', 'id': 16}, {'name': 'description', 'value': u'Examine the duration for which the sensor is manipulated', 'label': 'Description', 'help_text': 'Short description of the stress-testing precedure', 'model': 'ST_procedure', 'type': 'TextField', 'id': 16}, {'name': 'base_scenario', 'value': <Scenario: Pollution and sensor manipulation>, 'label': 'Base scenario', 'help_text': 'Scenario to be used as Base scenario for this one', 'model': 'ST_procedure', 'type': 'RssForeignKey', 'id': 16}, {'name': 'status', 'value': u'Idle', 'label': u'status', 'help_text': 'Current status of the ST procedure', 'model': 'ST_procedure', 'type': 'SmallIntegerField', 'id': 16}], 'illustrations': [], 'model_str': u'ST_procedure'}] |
match | True |
nodelist | [<TextNode: u'\n <div'>, <IfNode>, <TextNode: u'</h3>\n '>, <IfNode>, <TextNode: u'</div>\n '>, <For Node: for id, field_val in field.value, tail_len: 9>, <TextNode: u'\n '>] |
self | <IfNode> |
/home/stopit/.virtualenvs/raet/lib/python2.7/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | u'\n <div>\n <h3>' |
bits | [u'\n <div>\n <h3>'] |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'files': [], 'obj_unicode': u'Pollution and sensor manipulation', 'timestamp': datetime.datetime(2020, 5, 5, 18, 54, 8, 728000, tzinfo=<UTC>), 'fk_fields': [{'predicate': 'is related to', 'name': 'simulated_scenarios', 'showtooltiprelations': False, 'help_text': '', 'model': 'ST_procedure', 'type': 'ForeignKey', 'id': 16, 'value': [(1109, u'Pollution and sensor manipulation - clone (1109)'), (1110, u'Pollution and sensor manipulation - clone (1110)'), (1111, u'Pollution and sensor manipulation - clone (1111)'), (1112, u'Pollution and sensor manipulation - clone (1112)'), (1113, u'Pollution and sensor manipulation - clone (1113)'), (1114, u'Pollution and sensor manipulation - clone (1114)'), (1115, u'Pollution and sensor manipulation - clone (1115)'), (1116, u'Pollution and sensor manipulation - clone (1116)'), (1117, u'Pollution and sensor manipulation - clone (1117)'), (1118, u'Pollution and sensor manipulation - clone (1118)'), (1119, u'Pollution and sensor manipulation - clone (1119)'), (1120, u'Pollution and sensor manipulation - clone (1120)')], 'label': 'Scenario'}, {'predicate': 'is related to', 'name': 'base_scenario', 'showtooltiprelations': False, 'help_text': 'Scenario to be used as Base scenario for this one', 'model': 'ST_procedure', 'type': 'ForeignKey', 'id': 16, 'value': [(1106, u'Pollution and sensor manipulation')], 'label': <class 'sp.models.Scenario'>}], 'geometry': None, 'fields': [{'name': 'name', 'value': u'Pollution and sensor manipulation', 'label': 'Name', 'help_text': 'A unique name for the stress-testing precedure', 'model': 'ST_procedure', 'type': 'CharField', 'id': 16}, {'name': 'description', 'value': u'Examine the duration for which the sensor is manipulated', 'label': 'Description', 'help_text': 'Short description of the stress-testing precedure', 'model': 'ST_procedure', 'type': 'TextField', 'id': 16}, {'name': 'base_scenario', 'value': <Scenario: Pollution and sensor manipulation>, 'label': 'Base scenario', 'help_text': 'Scenario to be used as Base scenario for this one', 'model': 'ST_procedure', 'type': 'RssForeignKey', 'id': 16}, {'name': 'status', 'value': u'Idle', 'label': u'status', 'help_text': 'Current status of the ST procedure', 'model': 'ST_procedure', 'type': 'SmallIntegerField', 'id': 16}], 'illustrations': [], 'model_str': u'ST_procedure'}] |
node | <IfNode> |
self | [<TextNode: u'\n <div'>, <IfNode>, <TextNode: u'</h3>\n '>, <IfNode>, <TextNode: u'</div>\n '>, <For Node: for id, field_val in field.value, tail_len: 9>, <TextNode: u'\n '>] |
/home/stopit/.virtualenvs/raet/lib/python2.7/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)...
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'files': [], 'obj_unicode': u'Pollution and sensor manipulation', 'timestamp': datetime.datetime(2020, 5, 5, 18, 54, 8, 728000, tzinfo=<UTC>), 'fk_fields': [{'predicate': 'is related to', 'name': 'simulated_scenarios', 'showtooltiprelations': False, 'help_text': '', 'model': 'ST_procedure', 'type': 'ForeignKey', 'id': 16, 'value': [(1109, u'Pollution and sensor manipulation - clone (1109)'), (1110, u'Pollution and sensor manipulation - clone (1110)'), (1111, u'Pollution and sensor manipulation - clone (1111)'), (1112, u'Pollution and sensor manipulation - clone (1112)'), (1113, u'Pollution and sensor manipulation - clone (1113)'), (1114, u'Pollution and sensor manipulation - clone (1114)'), (1115, u'Pollution and sensor manipulation - clone (1115)'), (1116, u'Pollution and sensor manipulation - clone (1116)'), (1117, u'Pollution and sensor manipulation - clone (1117)'), (1118, u'Pollution and sensor manipulation - clone (1118)'), (1119, u'Pollution and sensor manipulation - clone (1119)'), (1120, u'Pollution and sensor manipulation - clone (1120)')], 'label': 'Scenario'}, {'predicate': 'is related to', 'name': 'base_scenario', 'showtooltiprelations': False, 'help_text': 'Scenario to be used as Base scenario for this one', 'model': 'ST_procedure', 'type': 'ForeignKey', 'id': 16, 'value': [(1106, u'Pollution and sensor manipulation')], 'label': <class 'sp.models.Scenario'>}], 'geometry': None, 'fields': [{'name': 'name', 'value': u'Pollution and sensor manipulation', 'label': 'Name', 'help_text': 'A unique name for the stress-testing precedure', 'model': 'ST_procedure', 'type': 'CharField', 'id': 16}, {'name': 'description', 'value': u'Examine the duration for which the sensor is manipulated', 'label': 'Description', 'help_text': 'Short description of the stress-testing precedure', 'model': 'ST_procedure', 'type': 'TextField', 'id': 16}, {'name': 'base_scenario', 'value': <Scenario: Pollution and sensor manipulation>, 'label': 'Base scenario', 'help_text': 'Scenario to be used as Base scenario for this one', 'model': 'ST_procedure', 'type': 'RssForeignKey', 'id': 16}, {'name': 'status', 'value': u'Idle', 'label': u'status', 'help_text': 'Current status of the ST procedure', 'model': 'ST_procedure', 'type': 'SmallIntegerField', 'id': 16}], 'illustrations': [], 'model_str': u'ST_procedure'}] |
e | AttributeError("'Scenario' object has no attribute 'lower'",) |
self | <IfNode> |
/home/stopit/.virtualenvs/raet/lib/python2.7/site-packages/django/template/defaulttags.py
in render
match = condition.eval(context)
except VariableDoesNotExist:
match = None
else: # else clause
match = True
if match:
return nodelist.render(context)...
return ''
class LoremNode(Node):
def __init__(self, count, method, common):
Variable | Value |
---|---|
condition | None |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'files': [], 'obj_unicode': u'Pollution and sensor manipulation', 'timestamp': datetime.datetime(2020, 5, 5, 18, 54, 8, 728000, tzinfo=<UTC>), 'fk_fields': [{'predicate': 'is related to', 'name': 'simulated_scenarios', 'showtooltiprelations': False, 'help_text': '', 'model': 'ST_procedure', 'type': 'ForeignKey', 'id': 16, 'value': [(1109, u'Pollution and sensor manipulation - clone (1109)'), (1110, u'Pollution and sensor manipulation - clone (1110)'), (1111, u'Pollution and sensor manipulation - clone (1111)'), (1112, u'Pollution and sensor manipulation - clone (1112)'), (1113, u'Pollution and sensor manipulation - clone (1113)'), (1114, u'Pollution and sensor manipulation - clone (1114)'), (1115, u'Pollution and sensor manipulation - clone (1115)'), (1116, u'Pollution and sensor manipulation - clone (1116)'), (1117, u'Pollution and sensor manipulation - clone (1117)'), (1118, u'Pollution and sensor manipulation - clone (1118)'), (1119, u'Pollution and sensor manipulation - clone (1119)'), (1120, u'Pollution and sensor manipulation - clone (1120)')], 'label': 'Scenario'}, {'predicate': 'is related to', 'name': 'base_scenario', 'showtooltiprelations': False, 'help_text': 'Scenario to be used as Base scenario for this one', 'model': 'ST_procedure', 'type': 'ForeignKey', 'id': 16, 'value': [(1106, u'Pollution and sensor manipulation')], 'label': <class 'sp.models.Scenario'>}], 'geometry': None, 'fields': [{'name': 'name', 'value': u'Pollution and sensor manipulation', 'label': 'Name', 'help_text': 'A unique name for the stress-testing precedure', 'model': 'ST_procedure', 'type': 'CharField', 'id': 16}, {'name': 'description', 'value': u'Examine the duration for which the sensor is manipulated', 'label': 'Description', 'help_text': 'Short description of the stress-testing precedure', 'model': 'ST_procedure', 'type': 'TextField', 'id': 16}, {'name': 'base_scenario', 'value': <Scenario: Pollution and sensor manipulation>, 'label': 'Base scenario', 'help_text': 'Scenario to be used as Base scenario for this one', 'model': 'ST_procedure', 'type': 'RssForeignKey', 'id': 16}, {'name': 'status', 'value': u'Idle', 'label': u'status', 'help_text': 'Current status of the ST procedure', 'model': 'ST_procedure', 'type': 'SmallIntegerField', 'id': 16}], 'illustrations': [], 'model_str': u'ST_procedure'}] |
match | True |
nodelist | [<django.template.library.SimpleNode object at 0x7f5291ef2150>] |
self | <IfNode> |
/home/stopit/.virtualenvs/raet/lib/python2.7/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bits | [] |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'files': [], 'obj_unicode': u'Pollution and sensor manipulation', 'timestamp': datetime.datetime(2020, 5, 5, 18, 54, 8, 728000, tzinfo=<UTC>), 'fk_fields': [{'predicate': 'is related to', 'name': 'simulated_scenarios', 'showtooltiprelations': False, 'help_text': '', 'model': 'ST_procedure', 'type': 'ForeignKey', 'id': 16, 'value': [(1109, u'Pollution and sensor manipulation - clone (1109)'), (1110, u'Pollution and sensor manipulation - clone (1110)'), (1111, u'Pollution and sensor manipulation - clone (1111)'), (1112, u'Pollution and sensor manipulation - clone (1112)'), (1113, u'Pollution and sensor manipulation - clone (1113)'), (1114, u'Pollution and sensor manipulation - clone (1114)'), (1115, u'Pollution and sensor manipulation - clone (1115)'), (1116, u'Pollution and sensor manipulation - clone (1116)'), (1117, u'Pollution and sensor manipulation - clone (1117)'), (1118, u'Pollution and sensor manipulation - clone (1118)'), (1119, u'Pollution and sensor manipulation - clone (1119)'), (1120, u'Pollution and sensor manipulation - clone (1120)')], 'label': 'Scenario'}, {'predicate': 'is related to', 'name': 'base_scenario', 'showtooltiprelations': False, 'help_text': 'Scenario to be used as Base scenario for this one', 'model': 'ST_procedure', 'type': 'ForeignKey', 'id': 16, 'value': [(1106, u'Pollution and sensor manipulation')], 'label': <class 'sp.models.Scenario'>}], 'geometry': None, 'fields': [{'name': 'name', 'value': u'Pollution and sensor manipulation', 'label': 'Name', 'help_text': 'A unique name for the stress-testing precedure', 'model': 'ST_procedure', 'type': 'CharField', 'id': 16}, {'name': 'description', 'value': u'Examine the duration for which the sensor is manipulated', 'label': 'Description', 'help_text': 'Short description of the stress-testing precedure', 'model': 'ST_procedure', 'type': 'TextField', 'id': 16}, {'name': 'base_scenario', 'value': <Scenario: Pollution and sensor manipulation>, 'label': 'Base scenario', 'help_text': 'Scenario to be used as Base scenario for this one', 'model': 'ST_procedure', 'type': 'RssForeignKey', 'id': 16}, {'name': 'status', 'value': u'Idle', 'label': u'status', 'help_text': 'Current status of the ST procedure', 'model': 'ST_procedure', 'type': 'SmallIntegerField', 'id': 16}], 'illustrations': [], 'model_str': u'ST_procedure'}] |
node | <django.template.library.SimpleNode object at 0x7f5291ef2150> |
self | [<django.template.library.SimpleNode object at 0x7f5291ef2150>] |
/home/stopit/.virtualenvs/raet/lib/python2.7/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)...
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'files': [], 'obj_unicode': u'Pollution and sensor manipulation', 'timestamp': datetime.datetime(2020, 5, 5, 18, 54, 8, 728000, tzinfo=<UTC>), 'fk_fields': [{'predicate': 'is related to', 'name': 'simulated_scenarios', 'showtooltiprelations': False, 'help_text': '', 'model': 'ST_procedure', 'type': 'ForeignKey', 'id': 16, 'value': [(1109, u'Pollution and sensor manipulation - clone (1109)'), (1110, u'Pollution and sensor manipulation - clone (1110)'), (1111, u'Pollution and sensor manipulation - clone (1111)'), (1112, u'Pollution and sensor manipulation - clone (1112)'), (1113, u'Pollution and sensor manipulation - clone (1113)'), (1114, u'Pollution and sensor manipulation - clone (1114)'), (1115, u'Pollution and sensor manipulation - clone (1115)'), (1116, u'Pollution and sensor manipulation - clone (1116)'), (1117, u'Pollution and sensor manipulation - clone (1117)'), (1118, u'Pollution and sensor manipulation - clone (1118)'), (1119, u'Pollution and sensor manipulation - clone (1119)'), (1120, u'Pollution and sensor manipulation - clone (1120)')], 'label': 'Scenario'}, {'predicate': 'is related to', 'name': 'base_scenario', 'showtooltiprelations': False, 'help_text': 'Scenario to be used as Base scenario for this one', 'model': 'ST_procedure', 'type': 'ForeignKey', 'id': 16, 'value': [(1106, u'Pollution and sensor manipulation')], 'label': <class 'sp.models.Scenario'>}], 'geometry': None, 'fields': [{'name': 'name', 'value': u'Pollution and sensor manipulation', 'label': 'Name', 'help_text': 'A unique name for the stress-testing precedure', 'model': 'ST_procedure', 'type': 'CharField', 'id': 16}, {'name': 'description', 'value': u'Examine the duration for which the sensor is manipulated', 'label': 'Description', 'help_text': 'Short description of the stress-testing precedure', 'model': 'ST_procedure', 'type': 'TextField', 'id': 16}, {'name': 'base_scenario', 'value': <Scenario: Pollution and sensor manipulation>, 'label': 'Base scenario', 'help_text': 'Scenario to be used as Base scenario for this one', 'model': 'ST_procedure', 'type': 'RssForeignKey', 'id': 16}, {'name': 'status', 'value': u'Idle', 'label': u'status', 'help_text': 'Current status of the ST procedure', 'model': 'ST_procedure', 'type': 'SmallIntegerField', 'id': 16}], 'illustrations': [], 'model_str': u'ST_procedure'}] |
e | AttributeError("'Scenario' object has no attribute 'lower'",) |
self | <django.template.library.SimpleNode object at 0x7f5291ef2150> |
/home/stopit/.virtualenvs/raet/lib/python2.7/site-packages/django/template/library.py
in render
def __init__(self, func, takes_context, args, kwargs, target_var):
super(SimpleNode, self).__init__(func, takes_context, args, kwargs)
self.target_var = target_var
def render(self, context):
resolved_args, resolved_kwargs = self.get_resolved_arguments(context)
output = self.func(*resolved_args, **resolved_kwargs)...
if self.target_var is not None:
context[self.target_var] = output
return ''
if context.autoescape:
output = conditional_escape(output)
return output
Variable | Value |
---|---|
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'files': [], 'obj_unicode': u'Pollution and sensor manipulation', 'timestamp': datetime.datetime(2020, 5, 5, 18, 54, 8, 728000, tzinfo=<UTC>), 'fk_fields': [{'predicate': 'is related to', 'name': 'simulated_scenarios', 'showtooltiprelations': False, 'help_text': '', 'model': 'ST_procedure', 'type': 'ForeignKey', 'id': 16, 'value': [(1109, u'Pollution and sensor manipulation - clone (1109)'), (1110, u'Pollution and sensor manipulation - clone (1110)'), (1111, u'Pollution and sensor manipulation - clone (1111)'), (1112, u'Pollution and sensor manipulation - clone (1112)'), (1113, u'Pollution and sensor manipulation - clone (1113)'), (1114, u'Pollution and sensor manipulation - clone (1114)'), (1115, u'Pollution and sensor manipulation - clone (1115)'), (1116, u'Pollution and sensor manipulation - clone (1116)'), (1117, u'Pollution and sensor manipulation - clone (1117)'), (1118, u'Pollution and sensor manipulation - clone (1118)'), (1119, u'Pollution and sensor manipulation - clone (1119)'), (1120, u'Pollution and sensor manipulation - clone (1120)')], 'label': 'Scenario'}, {'predicate': 'is related to', 'name': 'base_scenario', 'showtooltiprelations': False, 'help_text': 'Scenario to be used as Base scenario for this one', 'model': 'ST_procedure', 'type': 'ForeignKey', 'id': 16, 'value': [(1106, u'Pollution and sensor manipulation')], 'label': <class 'sp.models.Scenario'>}], 'geometry': None, 'fields': [{'name': 'name', 'value': u'Pollution and sensor manipulation', 'label': 'Name', 'help_text': 'A unique name for the stress-testing precedure', 'model': 'ST_procedure', 'type': 'CharField', 'id': 16}, {'name': 'description', 'value': u'Examine the duration for which the sensor is manipulated', 'label': 'Description', 'help_text': 'Short description of the stress-testing precedure', 'model': 'ST_procedure', 'type': 'TextField', 'id': 16}, {'name': 'base_scenario', 'value': <Scenario: Pollution and sensor manipulation>, 'label': 'Base scenario', 'help_text': 'Scenario to be used as Base scenario for this one', 'model': 'ST_procedure', 'type': 'RssForeignKey', 'id': 16}, {'name': 'status', 'value': u'Idle', 'label': u'status', 'help_text': 'Current status of the ST procedure', 'model': 'ST_procedure', 'type': 'SmallIntegerField', 'id': 16}], 'illustrations': [], 'model_str': u'ST_procedure'}] |
resolved_args | [<Scenario: >] |
resolved_kwargs | {} |
self | <django.template.library.SimpleNode object at 0x7f5291ef2150> |
/home/stopit/raet/spindle/templatetags/app_register.py
in get_verbose_name
@register.filter
def multiply(value, arg):
return value*arg
@register.simple_tag
def get_verbose_name(model_str):
model_cls = apps.get_model('sp', model_str)...
if model_cls:
return model_cls._meta.verbose_name
else: return model_str
@register.simple_tag
def get_verbose_name_plural(model_str):
Variable | Value |
---|---|
model_str | <Scenario: > |
/home/stopit/.virtualenvs/raet/lib/python2.7/site-packages/django/apps/registry.py
in get_model
Raises LookupError if no application exists with this label, or no
model exists with this name in the application. Raises ValueError if
called with a single argument that doesn't contain exactly one dot.
"""
self.check_models_ready()
if model_name is None:
app_label, model_name = app_label.split('.')
return self.get_app_config(app_label).get_model(model_name.lower())...
def register_model(self, app_label, model):
# Since this method is called when models are imported, it cannot
# perform imports because of the risk of import loops. It mustn't
# call get_app_config().
model_name = model._meta.model_name
Variable | Value |
---|---|
app_label | 'sp' |
model_name | <Scenario: > |
self | <django.apps.registry.Apps object at 0x7f52aecebbd0> |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
HTTP_ACCEPT | '*/*' |
HTTP_CONNECTION | 'close' |
HTTP_HOST | 'tl.stop-it-project.eu' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_X_FORWARDED_FOR | '3.235.139.122' |
HTTP_X_FORWARDED_PROTO | 'http' |
PATH_INFO | u'/d/ST_procedure/16' |
QUERY_STRING | '' |
RAW_URI | '/d/ST_procedure/16' |
REMOTE_ADDR | '::1' |
REMOTE_PORT | '56822' |
REQUEST_METHOD | 'GET' |
SCRIPT_NAME | u'' |
SERVER_NAME | '::1' |
SERVER_PORT | '8014' |
SERVER_PROTOCOL | 'HTTP/1.0' |
SERVER_SOFTWARE | 'gunicorn/19.10.0' |
gunicorn.socket | <socket._socketobject object at 0x7f52929b2c90> |
wsgi.errors | <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7f5291f4be90> |
wsgi.file_wrapper | '' |
wsgi.input | <gunicorn.http.body.Body object at 0x7f5291df8c90> |
wsgi.input_terminated | True |
wsgi.multiprocess | True |
wsgi.multithread | False |
wsgi.run_once | False |
wsgi.url_scheme | 'http' |
wsgi.version | (1, 0) |
spindle_project.settings.local
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | [] |
ALLOWED_HOSTS | ['*'] |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | [u'django.contrib.auth.backends.ModelBackend'] |
AUTH_PASSWORD_VALIDATORS | u'********************' |
AUTH_USER_MODEL | u'auth.User' |
CACHES | {u'default': {u'BACKEND': u'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | u'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | u'********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CSRF_COOKIE_AGE | 31449600 |
CSRF_COOKIE_DOMAIN | None |
CSRF_COOKIE_HTTPONLY | False |
CSRF_COOKIE_NAME | u'csrftoken' |
CSRF_COOKIE_PATH | u'/' |
CSRF_COOKIE_SECURE | False |
CSRF_FAILURE_VIEW | u'django.views.csrf.csrf_failure' |
CSRF_HEADER_NAME | u'HTTP_X_CSRFTOKEN' |
CSRF_TRUSTED_ORIGINS | [] |
DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.sqlite3', 'HOST': '', 'NAME': '/home/stopit/raet/spindle_project/spindle.sqlite3', 'OPTIONS': {}, 'PASSWORD': u'********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': ''}, 'sqlite': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.sqlite3', 'HOST': '', 'NAME': '/home/stopit/raet/spindle_project/spindle.sqlite3', 'OPTIONS': {}, 'PASSWORD': u'********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': ''}} |
DATABASE_DIR | '/home/stopit/raet/spindle_project' |
DATABASE_ROUTERS | [] |
DATA_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
DATA_UPLOAD_MAX_NUMBER_FIELDS | 1000 |
DATETIME_FORMAT | u'N j, Y, P' |
DATETIME_INPUT_FORMATS | [u'%Y-%m-%d %H:%M:%S', u'%Y-%m-%d %H:%M:%S.%f', u'%Y-%m-%d %H:%M', u'%Y-%m-%d', u'%m/%d/%Y %H:%M:%S', u'%m/%d/%Y %H:%M:%S.%f', u'%m/%d/%Y %H:%M', u'%m/%d/%Y', u'%m/%d/%y %H:%M:%S', u'%m/%d/%y %H:%M:%S.%f', u'%m/%d/%y %H:%M', u'%m/%d/%y'] |
DATE_FORMAT | u'N j, Y' |
DATE_INPUT_FORMATS | [u'%Y-%m-%d', u'%m/%d/%Y', u'%m/%d/%y', u'%b %d %Y', u'%b %d, %Y', u'%d %b %Y', u'%d %b, %Y', u'%B %d %Y', u'%B %d, %Y', u'%d %B %Y', u'%d %B, %Y'] |
DEBUG | True |
DEBUG_PROPAGATE_EXCEPTIONS | False |
DECIMAL_SEPARATOR | u'.' |
DEFAULTTITLEPAGE | 'STOP-IT' |
DEFAULT_CHARSET | u'utf-8' |
DEFAULT_CONTENT_TYPE | u'text/html' |
DEFAULT_EXCEPTION_REPORTER_FILTER | u'django.views.debug.SafeExceptionReporterFilter' |
DEFAULT_FILE_STORAGE | u'django.core.files.storage.FileSystemStorage' |
DEFAULT_FROM_EMAIL | u'webmaster@localhost' |
DEFAULT_INDEX_TABLESPACE | u'' |
DEFAULT_PIVOT_MODEL | '' |
DEFAULT_TABLESPACE | u'' |
DISALLOWED_USER_AGENTS | [] |
DJANGO_ROOT | '/home/stopit/raet' |
EMAIL_BACKEND | u'django.core.mail.backends.smtp.EmailBackend' |
EMAIL_HOST | u'localhost' |
EMAIL_HOST_PASSWORD | u'********************' |
EMAIL_HOST_USER | u'' |
EMAIL_PORT | 25 |
EMAIL_SSL_CERTFILE | None |
EMAIL_SSL_KEYFILE | u'********************' |
EMAIL_SUBJECT_PREFIX | u'[Django] ' |
EMAIL_TIMEOUT | None |
EMAIL_USE_SSL | False |
EMAIL_USE_TLS | False |
EPANET_CPA_EXE | None |
EXCLUDEFIELDS | [] |
EXCLUDEFIELDTYPES | ['AutoField', 'URLField', 'PointField', 'DateTimeField', 'NullBooleanField', 'BooleanField'] |
EXCLUDEINTROSPECTIONFIELDS | ['id'] |
EXCLUDESEARCHFIELDS | ['id'] |
FILE_CHARSET | u'utf-8' |
FILE_UPLOAD_DIRECTORY_PERMISSIONS | None |
FILE_UPLOAD_HANDLERS | [u'django.core.files.uploadhandler.MemoryFileUploadHandler', u'django.core.files.uploadhandler.TemporaryFileUploadHandler'] |
FILE_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
FILE_UPLOAD_PERMISSIONS | None |
FILE_UPLOAD_TEMP_DIR | None |
FIRST_DAY_OF_WEEK | 0 |
FIXTURE_DIRS | [] |
FORCE_SCRIPT_NAME | None |
FORMAT_MODULE_PATH | None |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | ('django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.humanize', 'spindle', 'sp', 'stp') |
INTERNAL_IPS | [] |
IS_TOOLKIT | True |
KPI_TOOL_EXE | None |
LANGUAGES | [(u'af', u'Afrikaans'), (u'ar', u'Arabic'), (u'ast', u'Asturian'), (u'az', u'Azerbaijani'), (u'bg', u'Bulgarian'), (u'be', u'Belarusian'), (u'bn', u'Bengali'), (u'br', u'Breton'), (u'bs', u'Bosnian'), (u'ca', u'Catalan'), (u'cs', u'Czech'), (u'cy', u'Welsh'), (u'da', u'Danish'), (u'de', u'German'), (u'dsb', u'Lower Sorbian'), (u'el', u'Greek'), (u'en', u'English'), (u'en-au', u'Australian English'), (u'en-gb', u'British English'), (u'eo', u'Esperanto'), (u'es', u'Spanish'), (u'es-ar', u'Argentinian Spanish'), (u'es-co', u'Colombian Spanish'), (u'es-mx', u'Mexican Spanish'), (u'es-ni', u'Nicaraguan Spanish'), (u'es-ve', u'Venezuelan Spanish'), (u'et', u'Estonian'), (u'eu', u'Basque'), (u'fa', u'Persian'), (u'fi', u'Finnish'), (u'fr', u'French'), (u'fy', u'Frisian'), (u'ga', u'Irish'), (u'gd', u'Scottish Gaelic'), (u'gl', u'Galician'), (u'he', u'Hebrew'), (u'hi', u'Hindi'), (u'hr', u'Croatian'), (u'hsb', u'Upper Sorbian'), (u'hu', u'Hungarian'), (u'ia', u'Interlingua'), (u'id', u'Indonesian'), (u'io', u'Ido'), (u'is', u'Icelandic'), (u'it', u'Italian'), (u'ja', u'Japanese'), (u'ka', u'Georgian'), (u'kk', u'Kazakh'), (u'km', u'Khmer'), (u'kn', u'Kannada'), (u'ko', u'Korean'), (u'lb', u'Luxembourgish'), (u'lt', u'Lithuanian'), (u'lv', u'Latvian'), (u'mk', u'Macedonian'), (u'ml', u'Malayalam'), (u'mn', u'Mongolian'), (u'mr', u'Marathi'), (u'my', u'Burmese'), (u'nb', u'Norwegian Bokm\xe5l'), (u'ne', u'Nepali'), (u'nl', u'Dutch'), (u'nn', u'Norwegian Nynorsk'), (u'os', u'Ossetic'), (u'pa', u'Punjabi'), (u'pl', u'Polish'), (u'pt', u'Portuguese'), (u'pt-br', u'Brazilian Portuguese'), (u'ro', u'Romanian'), (u'ru', u'Russian'), (u'sk', u'Slovak'), (u'sl', u'Slovenian'), (u'sq', u'Albanian'), (u'sr', u'Serbian'), (u'sr-latn', u'Serbian Latin'), (u'sv', u'Swedish'), (u'sw', u'Swahili'), (u'ta', u'Tamil'), (u'te', u'Telugu'), (u'th', u'Thai'), (u'tr', u'Turkish'), (u'tt', u'Tatar'), (u'udm', u'Udmurt'), (u'uk', u'Ukrainian'), (u'ur', u'Urdu'), (u'vi', u'Vietnamese'), (u'zh-hans', u'Simplified Chinese'), (u'zh-hant', u'Traditional Chinese')] |
LANGUAGES_BIDI | [u'he', u'ar', u'fa', u'ur'] |
LANGUAGE_CODE | 'en-us' |
LANGUAGE_COOKIE_AGE | None |
LANGUAGE_COOKIE_DOMAIN | None |
LANGUAGE_COOKIE_NAME | u'django_language' |
LANGUAGE_COOKIE_PATH | u'/' |
LOCALE_PATHS | [] |
LOGGING | {} |
LOGGING_CONFIG | u'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | u'/accounts/profile/' |
LOGIN_URL | u'/accounts/login/' |
LOGOUT_REDIRECT_URL | None |
MANAGERS | [] |
MAXLISTDISPLAYWORDS | 20 |
MAXNRFIELDS | 6 |
MAXSEARCHDISPLAYWORDS | 100 |
MAXSEARCHTERMS | 3 |
MAXSIMULATIONS | 10000 |
MEDIA_ROOT | 'site_media' |
MEDIA_URL | '/media/' |
MESSAGE_STORAGE | u'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE | None |
MIDDLEWARE_CLASSES | ('django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.locale.LocaleMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.auth.middleware.SessionAuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'django.middleware.security.SecurityMiddleware') |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | u'F j' |
NUMBER_GROUPING | 0 |
ONLYLISTMAINMODELS | True |
ONLYPIVOTLISTMODELS | True |
ONLYPIVOTSEARCHMODELS | True |
PASSWORD_HASHERS | u'********************' |
PASSWORD_RESET_TIMEOUT_DAYS | u'********************' |
PREPEND_WWW | False |
ROOT_URLCONF | 'spindle_project.urls' |
SECRET_KEY | u'********************' |
SECURE_BROWSER_XSS_FILTER | False |
SECURE_CONTENT_TYPE_NOSNIFF | False |
SECURE_HSTS_INCLUDE_SUBDOMAINS | False |
SECURE_HSTS_SECONDS | 0 |
SECURE_PROXY_SSL_HEADER | None |
SECURE_REDIRECT_EXEMPT | [] |
SECURE_SSL_HOST | None |
SECURE_SSL_REDIRECT | False |
SERVER_EMAIL | u'root@localhost' |
SESSION_CACHE_ALIAS | u'default' |
SESSION_COOKIE_AGE | 1209600 |
SESSION_COOKIE_DOMAIN | None |
SESSION_COOKIE_HTTPONLY | True |
SESSION_COOKIE_NAME | u'sessionid' |
SESSION_COOKIE_PATH | u'/' |
SESSION_COOKIE_SECURE | False |
SESSION_ENGINE | u'django.contrib.sessions.backends.db' |
SESSION_EXPIRE_AT_BROWSER_CLOSE | False |
SESSION_FILE_PATH | None |
SESSION_SAVE_EVERY_REQUEST | False |
SESSION_SERIALIZER | u'django.contrib.sessions.serializers.JSONSerializer' |
SETTINGS_MODULE | 'spindle_project.settings.local' |
SHORT_DATETIME_FORMAT | u'm/d/Y P' |
SHORT_DATE_FORMAT | u'm/d/Y' |
SHOWTOOLTIPRELATIONS | False |
SHOWTOOLTIPTERMS | False |
SIGNING_BACKEND | u'django.core.signing.TimestampSigner' |
SILENCED_SYSTEM_CHECKS | [] |
STATICFILES_DIRS | ('/home/stopit/raet/sp/static', '/home/stopit/raet/spindle/static') |
STATICFILES_FINDERS | [u'django.contrib.staticfiles.finders.FileSystemFinder', u'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | u'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | '/home/stopit/raet_static/' |
STATIC_URL | '/static/' |
SUPPORTAPI | u'********************' |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/home/stopit/raet/sp/templates'], 'OPTIONS': {'context_processors': ['spindle.context_processors.main_models', 'spindle.context_processors.pivot_models', 'spindle.context_processors.API_support', 'spindle.context_processors.global_settings', 'django.template.context_processors.debug', 'django.template.context_processors.request', 'django.template.context_processors.media', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', 'sp.context_processors.scenario_planner'], 'libraries': {'app_register': 'spindle.templatetags.app_register', 'sp_register': 'sp.templatetags.app_register'}}}] |
TEST_NON_SERIALIZED_APPS | [] |
TEST_RUNNER | u'django.test.runner.DiscoverRunner' |
THOUSAND_SEPARATOR | u',' |
TIME_FORMAT | u'P' |
TIME_INPUT_FORMATS | [u'%H:%M:%S', u'%H:%M:%S.%f', u'%H:%M'] |
TIME_ZONE | 'UTC' |
TOOL_AVAT_EXE | None |
TOOL_FTEDITOR_EXE | None |
USE_ETAGS | False |
USE_I18N | True |
USE_L10N | True |
USE_THOUSAND_SEPARATOR | False |
USE_TZ | True |
USE_X_FORWARDED_HOST | False |
USE_X_FORWARDED_PORT | False |
VERSION_EPANET_CPA_ID | 3 |
VERSION_RISKNOUGHT_ID | 4 |
WSGI_APPLICATION | 'spindle_project.wsgi.application' |
X_FRAME_OPTIONS | u'SAMEORIGIN' |
YEAR_MONTH_FORMAT | u'F Y' |
You're seeing this error because you have DEBUG = True
in your
Django settings file. Change that to False
, and Django will
display a standard page generated by the handler for this status code.