Skip to content
Snippets Groups Projects
Commit e7a4b8c0 authored by Graziano Scalamera's avatar Graziano Scalamera
Browse files

Remove prints

parent 887f5658
No related branches found
Tags 1.2.0
No related merge requests found
......@@ -172,7 +172,8 @@ class AlarmMail (PyTango.Device_4Impl):
prev_key=param.split('=',1)[0]
prev_value=param.split('=',1)[1]
except IndexError, e:
print('Error splitting ' + param + ' pre key=' + prev_key + ' prev_value='+prev_value)
#print('Error splitting ' + param + ' pre key=' + prev_key + ' prev_value='+prev_value)
self.debug_stream('Error splitting ' + param + ' pre key=' + prev_key + ' prev_value='+prev_value)
params[prev_key] += ';'+param
#print('looping param=' + param)
#print(params)
......@@ -234,8 +235,9 @@ class AlarmMail (PyTango.Device_4Impl):
att_conf_str += ';' + str(att_conf_id)+',1,1'
except Exception, e:
print 'Cannot find att_conf_id for ', att
print e
#print 'Cannot find att_conf_id for ', att
self.debug_stream('Cannot find att_conf_id for ' + att)
#print e
if len(att_conf_str) > 0 and len(self.egiga_url) > 0:
link = self.egiga_url+'&start='+start_date+'&stop='+stop_date+'&ts='+att_conf_str+'&show_error='
......@@ -255,7 +257,7 @@ class AlarmMail (PyTango.Device_4Impl):
url=params['url']
except KeyError, e:
url=''
print e
#print e
handler_text=''
handler_html=''
try:
......@@ -285,7 +287,7 @@ class AlarmMail (PyTango.Device_4Impl):
try:
time_text='\nTime: ' + params['time']
time_html='<br>Time: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' + params['time']
print time_html
#print time_html
except KeyError, e:
time_text=''
time_html=''
......@@ -362,7 +364,8 @@ class AlarmMail (PyTango.Device_4Impl):
prev_key=param.split('=',1)[0]
prev_value=param.split('=',1)[1]
except IndexError, e:
print('Error splitting ' + param + ' pre key=' + prev_key + ' prev_value='+prev_value)
#print('Error splitting ' + param + ' pre key=' + prev_key + ' prev_value='+prev_value)
self.debug_stream('Error splitting ' + param + ' pre key=' + prev_key + ' prev_value='+prev_value)
params[prev_key] += ';'+param
handler=''
......@@ -413,12 +416,13 @@ class AlarmMail (PyTango.Device_4Impl):
prev_key=param.split('=',1)[0]
prev_value=param.split('=',1)[1]
except IndexError, e:
print('Error splitting ' + param + ' pre key=' + prev_key + ' prev_value='+prev_value)
#print('Error splitting ' + param + ' pre key=' + prev_key + ' prev_value='+prev_value)
self.debug_stream('Error splitting ' + param + ' pre key=' + prev_key + ' prev_value='+prev_value)
params[prev_key] += ';'+param
att_list=[]
err_list=[]
hdbppes=''
print(params)
#print(params)
word = '([a-zA-Z0-9\+\._\*\#\-]+)'
word2 = '([a-zA-Z0-9\+\.\*\#\-]+)'
m = re.compile(word+"/"+word+"/"+word+"/"+word).match(params['name'])
......@@ -508,9 +512,10 @@ class AlarmMail (PyTango.Device_4Impl):
prev_key=param.split('=',1)[0]
prev_value=param.split('=',1)[1]
except IndexError, e:
print('Error splitting ' + param + ' pre key=' + prev_key + ' prev_value='+prev_value)
#print('Error splitting ' + param + ' pre key=' + prev_key + ' prev_value='+prev_value)
self.debug_stream('Error splitting ' + param + ' pre key=' + prev_key + ' prev_value='+prev_value)
params[prev_key] += ';'+param
print(params)
#print(params)
name=params['name']
state=params['state']
......@@ -556,7 +561,8 @@ class AlarmMail (PyTango.Device_4Impl):
prev_key=param.split('=',1)[0]
prev_value=param.split('=',1)[1]
except IndexError, e:
print('Error splitting ' + param + ' pre key=' + prev_key + ' prev_value='+prev_value)
#print('Error splitting ' + param + ' pre key=' + prev_key + ' prev_value='+prev_value)
self.debug_stream('Error splitting ' + param + ' pre key=' + prev_key + ' prev_value='+prev_value)
params[prev_key] += ';'+param
disbled_type=''
if params['state'] in ['OOSRV']:
......@@ -611,7 +617,8 @@ class AlarmMail (PyTango.Device_4Impl):
prev_key=param.split('=',1)[0]
prev_value=param.split('=',1)[1]
except IndexError, e:
print('Error splitting ' + param + ' pre key=' + prev_key + ' prev_value='+prev_value)
#print('Error splitting ' + param + ' pre key=' + prev_key + ' prev_value='+prev_value)
self.debug_stream('Error splitting ' + param + ' pre key=' + prev_key + ' prev_value='+prev_value)
params[prev_key] += ';'+param
handler=''
try:
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment