<s> import random <EOL> from twisted . python import util <EOL> from nevow import loaders <EOL> from nevow import rend <EOL> class Table ( rend . Page ) : <EOL> addSlash = True <EOL> docFactory = loaders . xmlfile ( util . sibpath ( __file__ , '<STR_LIT>' ) ) <EOL> def data_theList ( self , context , data ) : <EOL> return [ ( x , random . randint ( <NUM_LIT:0> , <NUM_LIT> ) ) for x in range ( random . randint ( <NUM_LIT:0> , <NUM_LIT:10> ) ) ] <EOL> def render_row ( self , context , data ) : <EOL> context . fillSlots ( '<STR_LIT>' , data [ <NUM_LIT:0> ] ) <EOL> context . fillSlots ( '<STR_LIT>' , data [ <NUM_LIT:1> ] ) <EOL> return context . tag </s>
