Exemplo n.º 1
0
 def notify_deleted(self, obj):
     object_deleted.delay(self.request.user, self.objtype, obj)
     invalidate_delete(self.request, obj)
Exemplo n.º 2
0
def remove_policies_of_computer(user, computer, auth_user):
    from gecoscc.tasks import object_deleted
    computer['user'] = user
    object_deleted.delay(auth_user, 'user', user, computers=[computer])
Exemplo n.º 3
0
 def notify_deleted(self, obj):
     object_deleted.delay(self.request.user, self.objtype, obj)
     invalidate_delete(self.request, obj)
Exemplo n.º 4
0
    def notify_deleted(self, obj):
        result = object_deleted.delay(self.objtype, obj)

        params = self._job_params(obj, 'deleted')

        self.request.jobs.create(result.task_id, **params)
Exemplo n.º 5
0
def remove_policies_of_computer(user, computer, auth_user):
    from gecoscc.tasks import object_deleted
    computer['user'] = user
    object_deleted.delay(auth_user, 'user', user, computers=[computer])