|
|
@@ -1,34 +0,0 @@
|
|
|
-from sicurezza.views import *
|
|
|
-lista=[]
|
|
|
-lista.append('store-3103')
|
|
|
-lista.append('store-3104')
|
|
|
-lista.append('store-3109')
|
|
|
-lista.append('store-3111')
|
|
|
-lista.append('store-3120')
|
|
|
-lista.append('store-3124')
|
|
|
-lista.append('store-3134')
|
|
|
-lista.append('store-3136')
|
|
|
-lista.append('store-3166')
|
|
|
-lista.append('store-3207')
|
|
|
-
|
|
|
-for l in lista:
|
|
|
- a = None
|
|
|
- try:
|
|
|
- a = Amministratore.objects.get(login=l)
|
|
|
- print("Trovato:",a.login)
|
|
|
- except Amministratore.DoesNotExist as dne:
|
|
|
- print(r"{l} non trovato")
|
|
|
-
|
|
|
- if a:
|
|
|
- st=None
|
|
|
- try:
|
|
|
- ide = l.split('-')[1]
|
|
|
- st = Sede.objects.get(identificativo=ide)
|
|
|
- except Sede.DoesNotExist as dne:
|
|
|
- print(r"Sede {ide} non trovata")
|
|
|
- if st:
|
|
|
- print('st:',st.nome)
|
|
|
- setSEP(st,a,"SEDE")
|
|
|
- setSEP(st,a,"DOCUMENTO")
|
|
|
- setSEP(st,a,"UTENTE")
|
|
|
- setAZP(st.azienda,a,"AZIENDA")
|