[[ for i in range(0,len(row)-1): ]]
[[ col = row[i] ]]
[[ col_show = "show_" + str(table['column_show'][i]) ]]
[[ if re.match(r'.*\*[\w]+$',col):
# if * used and only alphanumeric characters follow then probably a
# class tag, this is not a perfect test and may need refining for some
# table situations
v, c = col.split('*')
c = c + " status"
else:
v = col
c = ''
pass]]
[[if dosub:
v = re.sub(old,new,v)
pass]]
[[if newline_replace:
v = v.replace(newline_replace,'
')
pass]]
[[=XML(v.replace('~',' '))]] |
[[pass]]
[[if not 'actions_bulk' in table:]]
[[if url_object:
row_action = form_action + '/' + row[object_col]
else:
row_action = form_action
pass]]
[[for act in row[-1]:]]
[[if long:
vars = {'1':act.replace('!',''),'2':row[0].replace('~',''),'long': long }
else:
vars = {'1':act.replace('!',''),'2':row[0].replace('~','') }
pass]]
[[if act and act[0] == "!":
aClass="action double_check"
act=act[1:]
else:
aClass="action"
pass]]
[[ show_act = re.sub('^[!?~]*([^+]*\+)?','',act) ]]
[[if act:]]
[[ if act == '~download': ]]
download
[[ elif act[0] == '~': ]]
[[ =show_act.replace('_',' ') ]]
[[ elif act[0] == '?': ]]
[[ if use_second_col:]]
[[ =show_act.replace('_',' ') ]]
[[ else: ]]
[[ =show_act.replace('_',' ').replace('+','_') ]]
[[ pass ]]
[[ else: ]]
[[ pass ]]
[[pass]]
[[pass]]
|
[[pass]]
[[pass]]
[[pass]]