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

Method make_field

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

Source from the content-addressed store, hash-verified

152 return literal
153
154 def make_field(self, tag, value):
155 field = nodes.field()
156 field.append(nodes.field_name(text=tag))
157 body = nodes.field_body()
158 if is_string_type(value):
159 body.append(sphinx.addnodes.compact_paragraph(text=value))
160 else:
161 body.append(value)
162 field.append(body)
163 return field
164
165 # External entry point
166 def run(self):

Callers 1

runMethod · 0.95

Calls 3

fieldMethod · 0.80
is_string_typeFunction · 0.70
appendMethod · 0.45

Tested by

no test coverage detected