| Line 10... |
Line 10... |
| 10 |
from shop2020.helpers.impl.DataAccessor import getSubstitutedMessage, getMessage, \
|
10 |
from shop2020.helpers.impl.DataAccessor import getSubstitutedMessage, getMessage, \
|
| 11 |
updateMessage, addMessage, add_user, delete_user, update_password, share_entities, \
|
11 |
updateMessage, addMessage, add_user, delete_user, update_password, share_entities, \
|
| 12 |
save_user_email_for_sending, get_emails_to_be_sent, mark_email_as_sent, \
|
12 |
save_user_email_for_sending, get_emails_to_be_sent, mark_email_as_sent, \
|
| 13 |
initialize, close_session, get_reports, authenticate_dashboard_user, is_alive,\
|
13 |
initialize, close_session, get_reports, authenticate_dashboard_user, is_alive,\
|
| 14 |
save_quick_link, get_quick_links, update_quicklink, \
|
14 |
save_quick_link, get_quick_links, update_quicklink, \
|
| 15 |
get_emails_for_notifications_sent, update_password_for_agent
|
15 |
get_emails_for_notifications_sent, update_password_for_agent, \
|
| - |
|
16 |
get_order_confirmation_mail
|
| 16 |
from shop2020.helpers.impl.DataService import LogisticsUser, StatisticsUser, \
|
17 |
from shop2020.helpers.impl.DataService import LogisticsUser, StatisticsUser, \
|
| 17 |
ReportUser, CatalogDashboardUser
|
18 |
ReportUser, CatalogDashboardUser
|
| 18 |
from shop2020.helpers.impl.model.Agent import Agent, User_Roles, Roles_Permissions
|
19 |
from shop2020.helpers.impl.model.Agent import Agent, User_Roles, Roles_Permissions
|
| 19 |
from shop2020.thriftpy.utils.ttypes import HelperServiceException
|
20 |
from shop2020.thriftpy.utils.ttypes import HelperServiceException
|
| 20 |
from shop2020.utils.Utils import to_py_date
|
21 |
from shop2020.utils.Utils import to_py_date
|
| Line 320... |
Line 321... |
| 320 |
try:
|
321 |
try:
|
| 321 |
return [notification.emailTo for notification in get_emails_for_notifications_sent(to_py_date(startDatetime), to_py_date(endDatetime))]
|
322 |
return [notification.emailTo for notification in get_emails_for_notifications_sent(to_py_date(startDatetime), to_py_date(endDatetime))]
|
| 322 |
finally:
|
323 |
finally:
|
| 323 |
close_session()
|
324 |
close_session()
|
| 324 |
|
325 |
|
| - |
|
326 |
def getOrderConfirmationMail(self, orderId):
|
| - |
|
327 |
try:
|
| - |
|
328 |
return get_order_confirmation_mail(orderId)
|
| - |
|
329 |
finally:
|
| - |
|
330 |
close_session()
|
| - |
|
331 |
|
| 325 |
def closeSession(self, ):
|
332 |
def closeSession(self, ):
|
| 326 |
close_session()
|
333 |
close_session()
|
| 327 |
|
334 |
|
| 328 |
def isAlive(self, ):
|
335 |
def isAlive(self, ):
|
| 329 |
"""
|
336 |
"""
|