Loading
#openttdcoop - Paste
Archives
Trending
Docs
Login
ABAP
ActionScript
ActionScript 3
Ada
AIMMS3
ALGOL 68
Apache configuration
AppleScript
Apt sources
ARM ASSEMBLER
ASM
ASP
asymptote
Autoconf
Autohotkey
AutoIt
AviSynth
awk
BASCOM AVR
Bash
Basic4GL
BibTeX
BlitzBasic
bnf
Boo
Brainfuck
C
C#
C (LoadRunner)
C (Mac)
C (WinAPI)
C++
C++ (Qt)
C++ (WinAPI)
CAD DCL
CAD Lisp
CFDG
ChaiScript
Chapel
CIL
Clojure
CMake
COBOL
CoffeeScript
ColdFusion
CSS
Cuesheet
D
Dart
DCL
DCPU-16 Assembly
DCS
Delphi
Diff
DIV
DOS
dot
E
ECMAScript
Eiffel
eMail (mbox)
EPC
Erlang
Euphoria
EZT
F#
Falcon
FO (abas-ERP)
Formula One
Fortran
FreeBasic
FreeSWITCH
GADV 4CS
GAMBAS
GDB
genero
Genie
glSlang
GML
GNU/Octave
GNU Gettext
GNU make
Gnuplot
Go
Groovy
GwBasic
Haskell
Haxe
HicEst
HQ9+
HTML
HTML5
Icon
INI
Inno
INTERCAL
Io
ISPF Panel
J
Java
Java(TM) 2 Platform Standard Edition 5.0
Javascript
JCL
jQuery
KiXtart
KLone C
KLone C++
LaTeX
LDIF
Liberty BASIC
Lisp
LLVM Intermediate Representation
Locomotive Basic
Logtalk
LOLcode
Lotus Notes @Formulas
LotusScript
LScript
LSL2
Lua
MagikSF
MapBasic
Matlab M
Microchip Assembler
Microsoft Registry
mIRC Scripting
MMIX
Modula-2
Modula-3
MOS 6502 (6510) ACME Cross Assembler format
MOS 6502 (6510) Kick Assembler format
MOS 6502 (6510) TASM/64TASS 1.46 Assembler format
Motorola 68000 - HiSoft Devpac ST 2 Assembler format
Motorola 68000 Assembler
MXML
MySQL
Nagios
NetRexx
newlisp
nginx
Nimrod
NML NewGRF Meta Language
NSIS
Oberon-2
Objeck Programming Language
Objective-C
OCaml
OCaml (brief)
ooRexx
OpenBSD Packet Filter
OpenOffice.org Basic
Oracle 8 SQL
Oracle 11 SQL
Oxygene
OZ
ParaSail
PARI/GP
Pascal
PCRE
per
Perl
Perl 6
PHP
PHP (brief)
PIC16
Pike
Pixel Bender 1.0
PL/I
PL/SQL
PostgreSQL
PostScript
POVRAY
PowerBuilder
PowerShell
ProFTPd configuration
Progress
Prolog
PROPERTIES
ProvideX
Puppet
PureBasic
Python
Python for S60
q/kdb+
QBasic/QuickBASIC
QML
R / S+
Racket
Rails
RBScript
REBOL
rexx
robots.txt
RPM Specification File
Ruby
Rust
SAS
Scala
Scheme
SciLab
SCL
sdlBasic
Smalltalk
Smarty
SPARK
SPARQL
SQL
Squirrel Script
Squirrel Script with OpenTTD AI/GS
StandardML
StoneScript
SystemVerilog
T-SQL
TCL
Tera Term Macro
Text
thinBasic
TypoScript
Unicon (Unified Extended Dialect of Icon)
Uno Idl
Unreal Script
UPC
Urbi
Vala
vb.net
VBScript
Vedit macro language
Verilog
VHDL
Vim Script
Visual Basic
Visual Fox Pro
Visual Prolog
Whitespace
Whois (RPSL format)
Winbatch
X++
XBasic
XML
Xorg configuration
YAML
ZiLOG Z80 Assembler
ZXBasic
[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
Mark as private
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
forever