comparison farol/main.py @ 125:67c4b299736e

Update look-and-feel
author Benoît Allard <benoit.allard@greenbone.net>
date Thu, 23 Oct 2014 16:18:30 +0200
parents 65341d05a8f8
children 75c053bf2c3a
comparison
equal deleted inserted replaced
120:98cf4a6457f4 125:67c4b299736e
87 def makeId(string): 87 def makeId(string):
88 return secure_filename(string) 88 return secure_filename(string)
89 89
90 @app.route('/') 90 @app.route('/')
91 def welcome(): 91 def welcome():
92 return render_template('welcome.j2') 92 return render_template('welcome.j2',
93 version=__version__,
94 imports=[('New', 100), ('CVRF', 100)],
95 exports=[('CVRF', 100), ('OpenVAS NASL from RHSA', 85), ('OVAL', 5) ],
96 use_cases=[('Create a security advisory and publish as CVRF', 100),
97 ('Edit a security advisory in CVRF format', 100)]
98 )
93 99
94 def set_url(url): 100 def set_url(url):
95 try: content = urlopen(url).read() 101 try: content = urlopen(url).read()
96 except urllib2.HTTPError as e: 102 except urllib2.HTTPError as e:
97 flash('Unable to retrieve %s: %s' % (url, e)) 103 flash('Unable to retrieve %s: %s' % (url, e))

http://farol.wald.intevation.org