예제 #1
0
def _format_atom(atom_detail):
    return {
        'atom': atom_detail.to_dict(),
        'type': models.atom_detail_type(atom_detail),
    }
예제 #2
0
 def _insert_atom_details(self, conn, ad, parent_uuid):
     value = ad.to_dict()
     value['parent_uuid'] = parent_uuid
     value['atom_type'] = models.atom_detail_type(ad)
     conn.execute(sql.insert(self._tables.atomdetails, value))
예제 #3
0
 def _insert_atom_details(self, conn, ad, parent_uuid):
     value = ad.to_dict()
     value['parent_uuid'] = parent_uuid
     value['atom_type'] = models.atom_detail_type(ad)
     conn.execute(sql.insert(self._tables.atomdetails, value))
예제 #4
0
def _format_atom(atom_detail):
    return {
        'atom': atom_detail.to_dict(),
        'type': models.atom_detail_type(atom_detail),
    }