Exemplo n.º 1
0
def __pub_subj(model, username):
    models.publish_subject(model.pk)
    oplogtrack(12, username)
Exemplo n.º 2
0
def __drop_subj(model, username):
    models.drop_subject(model.pk)
    oplogtrack(13, username)
Exemplo n.º 3
0
def __remove_subj(model, username):
    models.delete_subject(model.pk)
    oplogtrack(11, username, model)
Exemplo n.º 4
0
def __sort_subj(username, pks):
    models.sort_subjects(pks)
    oplogtrack(14, username)
Exemplo n.º 5
0
def __add_subj(model, username):
    oplogtrack(9, username, model)
Exemplo n.º 6
0
def __edit_subj(model, username):
    oplogtrack(10, username, model)
Exemplo n.º 7
0
def __drop_app(model, username):
    _drop_app(model.pk)
    oplogtrack(8, username, model)
Exemplo n.º 8
0
def __pub_app(model, username):
    model.online = True
    model.save()
    oplogtrack(7, username, model)
Exemplo n.º 9
0
def __remove_app(model, username):
    model.delete()
    oplogtrack(6, username, model)
Exemplo n.º 10
0
def __edit_app(model, username):
    app_stored = App.objects.get(pk=model.pk)
    model.create_date = app_stored.create_date
    model.online = app_stored.online
    model.save()
    oplogtrack(5, username, model)
Exemplo n.º 11
0
def __add_app(model, username):
    model.online = True
    model.save()
    oplogtrack(4, username, model)