forked from elmau/empresa-libre
commit
92ff62d9f0
|
@ -325,19 +325,8 @@ class Certificado(object):
|
||||||
self._path_key = paths['path_key']
|
self._path_key = paths['path_key']
|
||||||
self._path_cer = paths['path_cer']
|
self._path_cer = paths['path_cer']
|
||||||
self._modulus = ''
|
self._modulus = ''
|
||||||
#~ self._save_files()
|
|
||||||
self.error = ''
|
self.error = ''
|
||||||
|
|
||||||
#~ def _save_files(self):
|
|
||||||
#~ try:
|
|
||||||
#~ self._path_key = _save_temp(bytes(self._key))
|
|
||||||
#~ self._path_cer = _save_temp(bytes(self._cer))
|
|
||||||
#~ except Exception as e:
|
|
||||||
#~ log.error(e)
|
|
||||||
#~ self._path_key = ''
|
|
||||||
#~ self._path_cer = ''
|
|
||||||
#~ return
|
|
||||||
|
|
||||||
def _kill(self, path):
|
def _kill(self, path):
|
||||||
try:
|
try:
|
||||||
os.remove(path)
|
os.remove(path)
|
||||||
|
@ -1699,6 +1688,7 @@ class ImportFacturaLibre(object):
|
||||||
'0': 0.0,
|
'0': 0.0,
|
||||||
'-2/3': 0.106667,
|
'-2/3': 0.106667,
|
||||||
'-0.5': 0.005,
|
'-0.5': 0.005,
|
||||||
|
'-10.6666': 0.106667,
|
||||||
}
|
}
|
||||||
|
|
||||||
data = []
|
data = []
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
[uwsgi]
|
||||||
|
http = 127.0.0.1:8000
|
||||||
|
wsgi-file = main.py
|
||||||
|
callable = app
|
||||||
|
master = true
|
||||||
|
processes = 4
|
||||||
|
threads = 4
|
||||||
|
|
|
@ -3479,6 +3479,9 @@ def authenticate(args):
|
||||||
obj = Usuarios.get(usuario=args['usuario'], es_activo=True)
|
obj = Usuarios.get(usuario=args['usuario'], es_activo=True)
|
||||||
except Usuarios.DoesNotExist:
|
except Usuarios.DoesNotExist:
|
||||||
return respuesta, None
|
return respuesta, None
|
||||||
|
except ProgrammingError as e:
|
||||||
|
log.error(e)
|
||||||
|
return respuesta, None
|
||||||
|
|
||||||
if not obj.contraseña.check_password(args['contra']):
|
if not obj.contraseña.check_password(args['contra']):
|
||||||
return respuesta, None
|
return respuesta, None
|
||||||
|
|
Loading…
Reference in New Issue