Added RDBMS info

Canonical names to forced to lowercase
Made user model compatible to other DBs
CSS adjustments
Basic Firepad support (no presence info)
Cleaned up JS a bit
Added ability to remove draft from localstorage
Added support for drafts on multiple pages
Alert user if page changes, issue #1
This commit is contained in:
Matthew Scragg 2014-10-03 13:49:18 -05:00
parent d72ecf10f0
commit eb12c84e9a
21 changed files with 841 additions and 717 deletions

View file

@ -7,4 +7,4 @@ assets.register('editor.js',
'vendor/ace-builds/src/mode-markdown.js',
'vendor/ace-builds/src/ext-keybinding_menu.js',
'vendor/keymaster/keymaster.js',
'js/editor.js')
'js/aced.js')

View file

@ -36,7 +36,7 @@ def revert():
commit = request.form.get('commit')
cname = to_canonical(name)
if cname.lower() in app.config.WIKI_LOCKED_PAGES:
if cname in app.config.WIKI_LOCKED_PAGES:
flash("Page is locked")
return redirect(url_for(app.config['ROOT_ENDPOINT']))
@ -59,10 +59,10 @@ def edit(name):
if request.method == 'POST':
edit_cname = to_canonical(request.form['name'])
if edit_cname.lower() in app.config['WIKI_LOCKED_PAGES']:
if edit_cname in app.config['WIKI_LOCKED_PAGES']:
return redirect(url_for(app.config['ROOT_ENDPOINT']))
if edit_cname.lower() != cname.lower():
if edit_cname != cname.lower():
g.current_wiki.rename_page(cname, edit_cname)
g.current_wiki.write_page(edit_cname,