removing some old unused functions

This commit is contained in:
Andrew Davidson 2012-03-12 19:22:40 -07:00
parent c401953ff4
commit ade6c0bd66

View file

@ -122,34 +122,6 @@ class index:
return render.page('create',''.join(body))
if method == 'create':
i = web.input()
exists = db.select('passwords', where='username="'+i.username+'" and password="' +\
i.password+'" and base_url="'+i.base_url+'"')
if not exists:
n = db.insert('passwords', username=i.username, password=i.password, \
base_url=i.base_url)
selected = get_pair_from_url(i.base_url)
body = ['<h1>'+i.base_url+'</h1>','']
for pair in selected:
body.append('('+pair.username+', '+pair.password+')')
return render.page('Created', ''.join(body))
if method == 'generate':
i = web.input()
body = '<h1>'+i.base_url+'</h1>\n<p> '+get_generated_from_url(i.base_url)[0].password+'</p>'
return render.page('Generated', body)
if method == 'js-overlay':
return '''\
(function() {