示例#1
0
文件: value.py 项目: CJTeam/mesh
def node_add_record(header, content, record):
    check_in_record("Label", record)
    check_not_in_record("Id", record)
    check_not_in_content("node", "Label", record["Label"], content)
    record_add("Id", str(next_id(content)), record)
    content.append(record)
    check_no_stragglers(record, header)
示例#2
0
文件: value.py 项目: CJTeam/mesh
def node_add_record(header, content, record):
  check_in_record("Label", record)
  check_not_in_record("Id", record)
  check_not_in_content("node", "Label", record["Label"], content)
  record_add("Id", str(next_id(content)), record)
  content.append(record)
  check_no_stragglers(record, header)
示例#3
0
文件: value.py 项目: CJTeam/mesh
def node_del_record(nheader, ncontent, eheader, econtent, label):
  record = get_record("Label", label, ncontent) 
  check_in_record("Label", record)
  check_not_in_content("edge", "Source", label, econtent)
  check_not_in_content("edge", "Target", label, econtent)
  ncontent.remove(record)
示例#4
0
文件: value.py 项目: CJTeam/mesh
def node_del_record(nheader, ncontent, eheader, econtent, label):
    record = get_record("Label", label, ncontent)
    check_in_record("Label", record)
    check_not_in_content("edge", "Source", label, econtent)
    check_not_in_content("edge", "Target", label, econtent)
    ncontent.remove(record)