Projet

Général

Profil

« Précédent | Suivant » 

Révision 0b9f32a9

Ajouté par Serghei Mihai (congés, retour 15/05) il y a presque 9 ans

use federations upload dir in the context while removing federation file

Voir les différences:

uauth/organization/views.py
294 294
federations_add = FederationsAdd.as_view()
295 295

  
296 296

  
297
class FederationsDelete(TemplateView):
297
class FederationsDelete(FederationsView):
298 298
    def get(self, request, *args, **kwargs):
299 299
        ctx = self.get_context_data(**kwargs)
300
        s = request.GET.get('federation')
300
        f = request.GET.get('federation')
301 301
        if os.path.exists(os.path.join(ctx['federations_dir'], f)):
302 302
            try:
303 303
                os.remove(os.path.join(ctx['federations_dir'], f))

Formats disponibles : Unified diff