# Path: my.py
# def curdate2my():
#     t=time.localtime()
#     return str(t.tm_year)+'-'+str(t.tm_mon).rjust(2,"0")+'-'+str(t.tm_mday).rjust(2,"0")


import httplib, urllib,time
import requests
import xml.etree.ElementTree as etree
import re
import dbIceCash as db
from icelog import *
from my import curdate2my
from datetime import datetime
#!/usr/bin/python
# -*- coding: utf-8

ns={\
"c":"http://fsrar.ru/WEGAIS/Common",\
"wbr":"http://fsrar.ru/WEGAIS/TTNInformF2Reg",\
"pref":"http://fsrar.ru/WEGAIS/ProductRef_v2",\
"oref":"http://fsrar.ru/WEGAIS/ClientRef_v2",\
"rc":"http://fsrar.ru/WEGAIS/ReplyClient_v2",\
"ns":"http://fsrar.ru/WEGAIS/WB_DOC_SINGLE_01",\
"wb":"http://fsrar.ru/WEGAIS/TTNSingle_v2",\
"xsi":"http://www.w3.org/2001/XMLSchema-instance",\
"wt":"http://fsrar.ru/WEGAIS/ConfirmTicket",
"qp":"http://fsrar.ru/WEGAIS/QueryParameters",\
'tc':"http://fsrar.ru/WEGAIS/Ticket",\

# Path: my.py
# def curdate2my():
#     t=time.localtime()
#     return str(t.tm_year)+'-'+str(t.tm_mon).rjust(2,"0")+'-'+str(t.tm_mday).rjust(2,"0")


# Path: clientEgais.py
import httplib, urllib,time
import requests
import xml.etree.ElementTree as etree
import re
import dbIceCash as db
from icelog import *
from my import curdate2my
from datetime import datetime

#!/usr/bin/python
# -*- coding: utf-8

ns={\
"c":"http://fsrar.ru/WEGAIS/Common",\
"wbr":"http://fsrar.ru/WEGAIS/TTNInformF2Reg",\
"pref":"http://fsrar.ru/WEGAIS/ProductRef_v2",\
"oref":"http://fsrar.ru/WEGAIS/ClientRef_v2",\
"rc":"http://fsrar.ru/WEGAIS/ReplyClient_v2",\
"ns":"http://fsrar.ru/WEGAIS/WB_DOC_SINGLE_01",\
"wb":"http://fsrar.ru/WEGAIS/TTNSingle_v2",\
"xsi":"http://www.w3.org/2001/XMLSchema-instance",\
"wt":"http://fsrar.ru/WEGAIS/ConfirmTicket",
"qp":"http://fsrar.ru/WEGAIS/QueryParameters",\
'tc':"http://fsrar.ru/WEGAIS/Ticket",\

"rst":"http://fsrar.ru/WEGAIS/ReplyRests_v2",\