MCPcopy Create free account
hub / github.com/apache/trafficserver / make_field

Method make_field

doc/ext/traffic-server.py:296–305  ·  view source on GitHub ↗
(self, tag, value)

Source from the content-addressed store, hash-verified

294 has_content = True
295
296 def make_field(self, tag, value):
297 field = nodes.field()
298 field.append(nodes.field_name(text=tag))
299 body = nodes.field_body()
300 if is_string_type(value):
301 body.append(sphinx.addnodes.compact_paragraph(text=value))
302 else:
303 body.append(value)
304 field.append(body)
305 return field
306
307 # External entry point
308 def run(self):

Callers 5

runMethod · 0.95
runMethod · 0.45
runMethod · 0.45
runMethod · 0.45
runMethod · 0.45

Calls 3

fieldMethod · 0.80
is_string_typeFunction · 0.70
appendMethod · 0.45

Tested by

no test coverage detected