Kenneth Love avatar Kenneth Love committed 0090937 Merge

merge

Comments (0)

Files changed (1)

         return render_template('no_key.html', key=key)
 
 # Read/write views
-@app.route('/new', methods=['GET', 'POST'])
-def new_key():
-    form = StringForm(request.form or None)
-    if form.validate_on_submit():
-        key = request.form['key_name']
-        value = request.form['key_value']
-
-        r = get_redis_connection(session)
-        if not r:
-            return redirect(url_for('setup'))
-
-        if r.exists(key):
-            return jsonify(flash=key + ' already exists.')
-
-        try:
-            r.set(key, value)
-            flash('%s was saved successfully.' % key)
-            return redirect('#%s' % key)
-        except:
-            return jsonify(flash=key + ' was not saved successfully.')
-
-    return render_template('new_key.html', form=form)
-
 @app.route('/key/save/<key>', methods=['POST'])
 def save(key):
     """ Update the value of a key. """
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.