afficher nb de mails à importer
This commit is contained in:
@@ -1,17 +1,10 @@
|
||||
# -*- coding: utf8 -*-
|
||||
from pyramid.response import Response
|
||||
from pyramid.renderers import render, get_renderer
|
||||
from pyramid.view import (
|
||||
view_config,
|
||||
forbidden_view_config,
|
||||
)
|
||||
from pyramid.httpexceptions import (
|
||||
HTTPFound,
|
||||
HTTPNotFound,
|
||||
HTTPForbidden,
|
||||
)
|
||||
from pyramid_mailer import get_mailer
|
||||
from pyramid_mailer.message import Message, Attachment
|
||||
from datetime import *
|
||||
|
||||
|
||||
@@ -20,7 +13,6 @@ import os
|
||||
import io
|
||||
import shutil
|
||||
import pdfkit
|
||||
import imaplib
|
||||
import base64
|
||||
import email
|
||||
|
||||
@@ -56,11 +48,9 @@ def dossier_lookup(request):
|
||||
member = get_member_by_id(request, logged_in)
|
||||
societe_defaut = member.societe
|
||||
societe = societe_defaut
|
||||
access_defaut = member.access
|
||||
liste=[]
|
||||
name = ''
|
||||
cb_tous = "non"
|
||||
|
||||
|
||||
if 'form.submitted' in request.params:
|
||||
name = request.params['name']
|
||||
societe = request.params['societe']
|
||||
@@ -959,8 +949,6 @@ def demandes(request):
|
||||
for societe in societes:
|
||||
emails = emails + demandes_lister(societe, search_criteria)
|
||||
|
||||
# messages lus
|
||||
msglus = bool(emails)
|
||||
dossiers_traites = get_dossiers_importes(request)
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user