0001-backoffice-add-formdef-substitution-variables-to-ins.patch
wcs/backoffice/management.py | ||
---|---|---|
1812 | 1812 |
r += htmltext('<h2>%s</h2>') % _('Form Inspector') |
1813 | 1813 |
r += htmltext('<ul class="biglist form-inspector">') |
1814 | 1814 |
r += htmltext(' <li><h3>%s</h3></li>') % _('Substitution variables') |
1815 |
for k, v in sorted(self.filled.get_substitution_variables().items()): |
|
1815 |
substvars = self.filled.get_substitution_variables() |
|
1816 |
substvars.update(self.filled.formdef.get_substitution_variables()) |
|
1817 |
for k, v in sorted(substvars.items()): |
|
1816 | 1818 |
r += htmltext('<li><code>%s</code>') % k |
1817 | 1819 |
r += htmltext(' <div class="value"><span>%s</span>') % v |
1818 | 1820 |
if not isinstance(v, basestring): |
1819 |
- |