<s> from twisted . python import util <EOL> from nevow import inevow <EOL> from nevow import loaders <EOL> from nevow import rend <EOL> from nevow import tags <EOL> class Simple ( rend . Page ) : <EOL> addSlash = True <EOL> docFactory = loaders . xmlfile ( util . sibpath ( __file__ , '<STR_LIT>' ) ) <EOL> def render_theTitle ( self , context , data ) : <EOL> return context . tag [ "<STR_LIT>" ] <EOL> def render_sample ( self , context , data ) : <EOL> request = inevow . IRequest ( context ) <EOL> session = inevow . ISession ( context ) <EOL> count = getattr ( session , '<STR_LIT:count>' , <NUM_LIT:1> ) <EOL> session . count = count + <NUM_LIT:1> <EOL> greeting = [ "<STR_LIT>" , request . client . host , "<STR_LIT>" , <EOL> request . getHeader ( '<STR_LIT>' ) , "<STR_LIT>" , <EOL> tags . span ( id = "<STR_LIT:count>" ) [ count ] , "<STR_LIT>" ] <EOL> return context . tag [ greeting ] <EOL> def child_reset ( self , context ) : <EOL> inevow . ISession ( context ) . count = <NUM_LIT:1> <EOL> return '<STR_LIT>' </s>
