Subversion Repositories SmartDukaan

Rev

Rev 581 | Rev 3005 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 581 Rev 1891
Line 4... Line 4...
4
@author: rajveer
4
@author: rajveer
5
'''
5
'''
6
 
6
 
7
from shop2020.clients.HelperClient import HelperClient
7
from shop2020.clients.HelperClient import HelperClient
8
from shop2020.thriftpy.utils.ttypes import *
8
from shop2020.thriftpy.utils.ttypes import *
-
 
9
from shop2020.helpers.impl.DataAccessor import get_reports
9
 
10
 
10
 
11
 
11
 
12
"""
12
helper_client = HelperClient()
13
helper_client = HelperClient()
13
 
14
 
14
helper_client.__start__()
15
helper_client.__start__()
15
 
16
 
16
client = helper_client.get_client()
17
client = helper_client.get_client()
Line 19... Line 20...
19
mail.to = ["rajveer.singh@shop2020.in","rajveer.singh@shop2020.in"]
20
mail.to = ["rajveer.singh@shop2020.in","rajveer.singh@shop2020.in"]
20
mail.subject = "Test mail subject"
21
mail.subject = "Test mail subject"
21
mail.data = "Mail text"
22
mail.data = "Mail text"
22
mail.password = "dummy"
23
mail.password = "dummy"
23
mail.sender="rajveer.singh@shop2020.in"
24
mail.sender="rajveer.singh@shop2020.in"
24
client.sendMail(mail)
-
 
25
25
client.sendMail(mail)
-
 
26
"""
-
 
27
 
-
 
28
client = HelperClient().get_client()
-
 
29
reports = client.getReports(2)
-
 
30
for r in reports:
-
 
31
    print r.description
-
 
32
    
-
 
33