From: Mart Lubbers Date: Wed, 24 Sep 2014 17:55:45 +0000 (+0200) Subject: add X-Git-Url: https://git.martlubbers.net/?a=commitdiff_plain;h=6b1951a4bceb1deaff10fc55b83c16515d53f9b3;p=bsc-thesis1415.git add --- diff --git a/program/everything/index.py b/program/everything/index.py index 5143402..1c66e28 100644 --- a/program/everything/index.py +++ b/program/everything/index.py @@ -39,10 +39,15 @@ def crawler_edit(req, args, apok): status = 'Other exception thrown: {}
'.format(e) req.write(status) elif args['action'] == 'edit': - req.write('Edit {}\n'.format(args['name'])) + cr = crawler.Crawler() + req.write('') + req.write(''.join( + ''.format(a[0], a[1]) + for a in cr.entries[args['name']]['content'])) + req.write('
{}{}
') else: req.write('Unknown editing action: {}'.format(args['action'])) - req.write('Go back') + req.write('
Go back') return apok