From 6b1951a4bceb1deaff10fc55b83c16515d53f9b3 Mon Sep 17 00:00:00 2001 From: Mart Lubbers Date: Wed, 24 Sep 2014 19:55:45 +0200 Subject: [PATCH] add --- program/everything/index.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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 -- 2.20.1