[PYTHON] render docs
[PARSE BASE LANG & EXTRA STRINGS] utils.py
Traceback (most recent call last):
File "/Users/andy/Documents/OTTD_graphics/bin3/lib/python3.3/site-packages/chameleon/utils.py", line 402, in __getitem__
return dict.__getitem__(self, key)
KeyError: 'cargo'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/andy/Documents/OTTD_graphics/bin3/lib/python3.3/site-packages/chameleon/template.py", line 170, in render
self._render(stream, econtext, rcontext)
File "economies_4d145e78f9c7c848c1858e0a220b782b.py", line 636, in render
File "/Users/andy/Documents/OTTD_graphics/bin3/lib/python3.3/site-packages/chameleon/zpt/template.py", line 262, in include
self._render(*args, **kwargs)
File "page_with_sidebar_template_c384042458bc4b097c7af007eec21bd4.py", line 211, in render
File "/Users/andy/Documents/OTTD_graphics/bin3/lib/python3.3/site-packages/chameleon/zpt/template.py", line 262, in include
self._render(*args, **kwargs)
File "main_template_ed61a4a28724807061a2d243e8342637.py", line 890, in render
File "main_template_ed61a4a28724807061a2d243e8342637.py", line 801, in render_main
File "page_with_sidebar_template_c384042458bc4b097c7af007eec21bd4.py", line 195, in __fill_body
File "economies_4d145e78f9c7c848c1858e0a220b782b.py", line 423, in __fill_body
File "economies_4d145e78f9c7c848c1858e0a220b782b.py", line 423, in <lambda>
File "/Users/andy/Documents/OTTD_graphics/bin3/lib/python3.3/site-packages/chameleon/utils.py", line 404, in __getitem__
raise NameError(key)
NameError: cargo
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "src/render_docs.py", line 223, in <module>
main()
File "src/render_docs.py", line 216, in main
render_docs(html_docs, 'html')
File "src/render_docs.py", line 189, in render_docs
metadata=metadata, utils=utils, doc_helper=DocHelper(), doc_name=doc_name)
File "/Users/andy/Documents/OTTD_graphics/bin3/lib/python3.3/site-packages/chameleon/template.py", line 123, in __call__
return self.render(**kwargs)
File "/Users/andy/Documents/OTTD_graphics/bin3/lib/python3.3/site-packages/chameleon/zpt/template.py", line 258, in render
return super(PageTemplate, self).render(**vars)
File "/Users/andy/Documents/OTTD_graphics/bin3/lib/python3.3/site-packages/chameleon/template.py", line 188, in render
raise_with_traceback(exc, tb)
File "/Users/andy/Documents/OTTD_graphics/bin3/lib/python3.3/site-packages/chameleon/utils.py", line 73, in raise_with_traceback
raise exc
File "/Users/andy/Documents/OTTD_graphics/bin3/lib/python3.3/site-packages/chameleon/template.py", line 170, in render
self._render(stream, econtext, rcontext)
File "economies_4d145e78f9c7c848c1858e0a220b782b.py", line 636, in render
File "/Users/andy/Documents/OTTD_graphics/bin3/lib/python3.3/site-packages/chameleon/zpt/template.py", line 262, in include
self._render(*args, **kwargs)
File "page_with_sidebar_template_c384042458bc4b097c7af007eec21bd4.py", line 211, in render
File "/Users/andy/Documents/OTTD_graphics/bin3/lib/python3.3/site-packages/chameleon/zpt/template.py", line 262, in include
self._render(*args, **kwargs)
File "main_template_ed61a4a28724807061a2d243e8342637.py", line 890, in render
File "main_template_ed61a4a28724807061a2d243e8342637.py", line 801, in render_main
File "page_with_sidebar_template_c384042458bc4b097c7af007eec21bd4.py", line 195, in __fill_body
File "economies_4d145e78f9c7c848c1858e0a220b782b.py", line 423, in __fill_body
File "economies_4d145e78f9c7c848c1858e0a220b782b.py", line 423, in <lambda>
File "/Users/andy/Documents/OTTD_graphics/bin3/lib/python3.3/site-packages/chameleon/utils.py", line 404, in __getitem__
raise NameError(key)
NameError: cargo
- Expression: "sorted(economy_schemas[economy].enabled_cargos, key=lambda cargo: doc_helper.get_cargo_name(cargo))"
- Filename: ... graphics/FIRS/firs_build/src/docs_templates/economies.pt
- Location: (line 21: col 42)
- Source: ... sorted(economy_schemas[economy].enabled_cargos, key=lambda cargo: doc_helper.get_cargo_name(cargo)) ...
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- Arguments: global_constants: <module global_constants at 0x10478b830>
registered_cargos: <list - at 0x104d97290>
repeat: {...} (0)
economy_schemas: {...} (5)
utils: <module utils at 0x104cc89e0>
repo_vars: {...} (2)
doc_helper: <DocHelper - at 0x104faf390>
registered_industries: <list - at 0x104f73560>
metadata: {...} (3)
page_with_sidebar_template: <PageTemplateFile - at 0x104da9c90>
doc_name: economies