MCPcopy
hub / github.com/programthink/zhao / _other_names

Method _other_names

bin/make.py:187–193  ·  view source on GitHub ↗
(self, node)

Source from the content-addressed store, hash-verified

185 return (u'blue' if u'M'==node.sex else u'red')
186
187 def _other_names(self, node) :
188 other_names = ''
189 if u'person'==node.type and node.other_names :
190 other_names = u', '.join([u'%s:%s' % (k,v) for k,v in node.other_names.items()])
191 elif u'company'==node.type and node.full_name :
192 other_names = node.full_name
193 return u'<tr><td>(%s)</td></tr>' % (other_names,) if other_names else ''
194
195 def _dot_node(self, node_id) :
196 node = Node.all[node_id]

Callers 1

_dot_nodeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected