| 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, update_quicklink,\
|
14 |
save_quick_link, get_quick_links, update_quicklink, \
|
| 15 |
get_emails_for_notifications_sent
|
15 |
get_emails_for_notifications_sent, update_password_for_agent
|
| 16 |
from shop2020.helpers.impl.DataService import LogisticsUser, StatisticsUser, \
|
16 |
from shop2020.helpers.impl.DataService import LogisticsUser, StatisticsUser, \
|
| 17 |
ReportUser, CatalogDashboardUser
|
17 |
ReportUser, CatalogDashboardUser
|
| 18 |
from shop2020.helpers.impl.model.Agent import Agent, User_Roles, Roles_Permissions
|
18 |
from shop2020.helpers.impl.model.Agent import Agent, User_Roles, Roles_Permissions
|
| 19 |
from shop2020.thriftpy.utils.ttypes import HelperServiceException
|
19 |
from shop2020.thriftpy.utils.ttypes import HelperServiceException
|
| 20 |
from shop2020.utils.Utils import to_py_date
|
20 |
from shop2020.utils.Utils import to_py_date
|
| Line 268... |
Line 268... |
| 268 |
"""
|
268 |
"""
|
| 269 |
Parameters:
|
269 |
Parameters:
|
| 270 |
- agentEmailId
|
270 |
- agentEmailId
|
| 271 |
- password
|
271 |
- password
|
| 272 |
"""
|
272 |
"""
|
| 273 |
pass
|
273 |
try:
|
| - |
|
274 |
update_password_for_agent(agentEmailId, password)
|
| - |
|
275 |
finally:
|
| - |
|
276 |
close_session()
|
| 274 |
|
277 |
|
| 275 |
def getRoleNamesForAgent(self, agentEmailId):
|
278 |
def getRoleNamesForAgent(self, agentEmailId):
|
| 276 |
"""
|
279 |
"""
|
| 277 |
Parameters:
|
280 |
Parameters:
|
| 278 |
- agentEmailId
|
281 |
- agentEmailId
|