def _formatRouteBody(data, schema_store):
 baseSubstitutions = {u'DOMAIN': u'example.com', u'NODE_0': u'cf0f0346-17b2-4812-beca-1434997d6c3f', u'NODE_1': u'7ec3c4eb-6b1c-43da-8015-a163f7d15244'}
 for line in data['description']:
  (yield line)
 if ('input' in data):
  for line in _formatActualSchema(data['input_schema'], '+ Request JSON Schema', schema_store):
   (yield line)
 if ('output' in data):
  for line in _formatActualSchema(data['output_schema'], '+ Response JSON Schema', schema_store):
   (yield line)
 for example in data['examples']:
  substitutions = baseSubstitutions.copy()
  for line in _formatExample(example, substitutions):
   (yield line)
 if ('input' in data):
  for line in _formatSchema(data['input'], True):
   (yield line)
 if ('output' in data):
  for line in _formatSchema(data['output'], False):
   (yield line)

def _formatRouteBody ( data , schema_store ) : baseSubstitutions = { u'DOMAIN' : u'example.com' , u'NODE_0' : u'cf0f0346-17b2-4812-beca-1434997d6c3f' , u'NODE_1' : u'7ec3c4eb-6b1c-43da-8015-a163f7d15244' } for line in data [ 'description' ] : ( yield line ) if ( 'input' in data ) : for line in _formatActualSchema ( data [ 'input_schema' ] , '+ Request JSON Schema' , schema_store ) : ( yield line ) if ( 'output' in data ) : for line in _formatActualSchema ( data [ 'output_schema' ] , '+ Response JSON Schema' , schema_store ) : ( yield line ) for example in data [ 'examples' ] : substitutions = baseSubstitutions . copy ( ) for line in _formatExample ( example , substitutions ) : ( yield line ) if ( 'input' in data ) : for line in _formatSchema ( data [ 'input' ] , True ) : ( yield line ) if ( 'output' in data ) : for line in _formatSchema ( data [ 'output' ] , False ) : ( yield line )
generate the description of a l{klein} route .