Subversion Repositories SmartDukaan

Rev

Rev 581 | Rev 3005 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

'''
Created on 5-Jan-2011

@author: rajveer
'''

from shop2020.clients.HelperClient import HelperClient
from shop2020.thriftpy.utils.ttypes import *
from shop2020.helpers.impl.DataAccessor import get_reports


"""
helper_client = HelperClient()

helper_client.__start__()

client = helper_client.get_client()

mail = Mail()
mail.to = ["rajveer.singh@shop2020.in","rajveer.singh@shop2020.in"]
mail.subject = "Test mail subject"
mail.data = "Mail text"
mail.password = "dummy"
mail.sender="rajveer.singh@shop2020.in"
client.sendMail(mail)
"""

client = HelperClient().get_client()
reports = client.getReports(2)
for r in reports:
    print r.description