Exemplo n.º 1
0
 def _update_model(tran, model):
     if model.collection_name() not in tran['update']:
         tran['update'][model.collection_name()] = []
     tran['update'][model.collection_name()].append(model)
Exemplo n.º 2
0
 def _delete_model(tran, model):
     if model.collection not in tran['del']:
         tran['del'][model.collection_name()] = []
     tran['del'][model.collection_name()].append(model.id)
Exemplo n.º 3
0
 def _insert_model(tran, model):
     if model.collection_name() not in tran['new']:
         tran['new'][model.collection_name()] = []
     tran['new'][model.collection_name()].append(model)