Beispiel #1
0
def _format_atom(atom_detail):
    return {
        'atom': atom_detail.to_dict(),
        'type': models.atom_detail_type(atom_detail),
    }
 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))
 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))
Beispiel #4
0
def _format_atom(atom_detail):
    return {
        'atom': atom_detail.to_dict(),
        'type': models.atom_detail_type(atom_detail),
    }