WIP commit. Changed routes to POST/PUT/DELETE on page name endpoint to be more RESTful. Check wiki dir permissions Add comments Add dummy favicon, robots.txt, humans.txt Remove create.html (wasn't being used) Fix version command
This commit is contained in:
parent
b99128e47a
commit
e6bc4928c9
13 changed files with 321 additions and 144 deletions
|
@ -0,0 +1,13 @@
|
|||
import os
|
||||
import sys
|
||||
from realms import app
|
||||
from realms.modules.wiki.models import Wiki
|
||||
|
||||
# Init Wiki
|
||||
Wiki(app.config['WIKI_PATH'])
|
||||
|
||||
# Check paths
|
||||
for mode in [os.W_OK, os.R_OK]:
|
||||
for dir_ in [app.config['WIKI_PATH'], os.path.join(app.config['WIKI_PATH'], '.git')]:
|
||||
if not os.access(dir_, mode):
|
||||
sys.exit('Read and write access to WIKI_PATH is required (%s)' % dir_)
|
Loading…
Add table
Add a link
Reference in a new issue