(self, node)
| 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] |