From 21947f0b3b30207c58c40481b14b6f18a508b4c5 Mon Sep 17 00:00:00 2001 From: Mart Lubbers Date: Thu, 25 Sep 2014 13:22:51 +0200 Subject: [PATCH] update edit --- program/everything/input_app.py | 45 ++------------------------------- 1 file changed, 2 insertions(+), 43 deletions(-) diff --git a/program/everything/input_app.py b/program/everything/input_app.py index 376f664..c13ffc8 100644 --- a/program/everything/input_app.py +++ b/program/everything/input_app.py @@ -140,7 +140,7 @@ def to_dot(q0): print '}' -def data_main(d): +def data_main(d, force=False): d = {k: str(v) for k, v in dict(d).iteritems()} structure_data(d) d['matchdata'] = [] @@ -151,51 +151,10 @@ def data_main(d): d['summarydawg'] = nodelists['Summary'] del(d['matchdata']) crawl = crawler.Crawler() - crawl.add_entry(d) - crawl.write() + crawl.add_entry(d, force) return crawl.list_names() -def eq_pre(req, args): - req.log_error('handler') - req.content_type = 'text/html' - req.send_http_header() - data = ( - '\n\n' - '\tHyperFrontend RSS feed input\n' - '\t\n\n\n' - '\t\n' - '\t\t\n' - '\t\t\n' - '\t\t\n' - '\t\t\n' - '\t\t\n' - '\t\t\n' - '\t
Venue: \n' - '\t\t\t
Frequency: \n' - '\t\t\t
Default location name: \n' - '\t\t\t
Adress: \n' - '\t\t\t
Website: \n' - '\t\t\t
RSS URL: \n' - '\t\t\t
\n' - '\tSelecteer iets en klik de link
\n' - '\t\n' - '\t\n' - '\t\n' - '\t\n').format(args['url']) - req.write(data) - - -def req_post(req): - req.write('\t\n\n') - - def feed2html(req, url, name): url = urllib.unquote(url) url = url if re.match('https?://', url) else 'http://{}'.format(url) -- 2.20.1