status = 'Other exception thrown: {}<br />'.format(e)
req.write(status)
elif args['action'] == 'edit':
- req.write('Edit {}\n'.format(args['name']))
+ cr = crawler.Crawler()
+ req.write('<table>')
+ req.write(''.join(
+ '<tr><td>{}</td><td>{}</td></tr>'.format(a[0], a[1])
+ for a in cr.entries[args['name']]['content']))
+ req.write('</table>')
else:
req.write('Unknown editing action: {}'.format(args['action']))
- req.write('<a href="index.py">Go back</a>')
+ req.write('<br/><a href="index.py">Go back</a>')
return apok