| Line 9... |
Line 9... |
| 9 |
to_t_suser, to_t_ruser, to_t_report, to_t_catalog_user, to_t_quicklink
|
9 |
to_t_suser, to_t_ruser, to_t_report, to_t_catalog_user, to_t_quicklink
|
| 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
|
14 |
save_quick_link, get_quick_links, update_quicklink
|
| 15 |
from shop2020.helpers.impl.DataService import LogisticsUser, StatisticsUser, \
|
15 |
from shop2020.helpers.impl.DataService import LogisticsUser, StatisticsUser, \
|
| 16 |
ReportUser, CatalogDashboardUser
|
16 |
ReportUser, CatalogDashboardUser
|
| 17 |
from shop2020.helpers.impl.model.Agent import Agent, User_Roles, Roles_Permissions
|
17 |
from shop2020.helpers.impl.model.Agent import Agent, User_Roles, Roles_Permissions
|
| 18 |
from shop2020.thriftpy.utils.ttypes import HelperServiceException
|
18 |
from shop2020.thriftpy.utils.ttypes import HelperServiceException
|
| 19 |
|
19 |
|
| Line 301... |
Line 301... |
| 301 |
try:
|
301 |
try:
|
| 302 |
return [to_t_quicklink(quicklink) for quicklink in get_quick_links()]
|
302 |
return [to_t_quicklink(quicklink) for quicklink in get_quick_links()]
|
| 303 |
finally:
|
303 |
finally:
|
| 304 |
close_session()
|
304 |
close_session()
|
| 305 |
|
305 |
|
| - |
|
306 |
def updateQuickLink(self, id, url, text):
|
| - |
|
307 |
try:
|
| - |
|
308 |
update_quicklink(id, url, text)
|
| - |
|
309 |
finally:
|
| - |
|
310 |
close_session()
|
| - |
|
311 |
|
| 306 |
def closeSession(self, ):
|
312 |
def closeSession(self, ):
|
| 307 |
close_session()
|
313 |
close_session()
|
| 308 |
|
314 |
|
| 309 |
def isAlive(self, ):
|
315 |
def isAlive(self, ):
|
| 310 |
"""
|
316 |
"""
|