fixing some issues with that last commit
This commit is contained in:
parent
b6ca2d0fa4
commit
9527898ef4
1 changed files with 9 additions and 9 deletions
18
brain.py
18
brain.py
|
@ -146,7 +146,7 @@ def raw(path=False):
|
|||
@route('/upload', method="GET")
|
||||
def upload(path=''):
|
||||
|
||||
path = stanitize_path(path)
|
||||
path = sanitize_path(path)
|
||||
|
||||
body = []
|
||||
|
||||
|
@ -183,7 +183,7 @@ def do_upload():
|
|||
|
||||
path = request.forms.path
|
||||
|
||||
path = stanitize_path(path)
|
||||
path = sanitize_path(path)
|
||||
|
||||
message = request.forms.message
|
||||
|
||||
|
@ -233,7 +233,7 @@ def do_upload():
|
|||
def delete(path = ''):
|
||||
body = []
|
||||
|
||||
path = stanitize_path(path)
|
||||
path = sanitize_path(path)
|
||||
|
||||
body.append('<style type="text/css">\
|
||||
td.r { text-align: left; }\
|
||||
|
@ -265,7 +265,7 @@ def delete():
|
|||
body = []
|
||||
repo = Repo(conf['repo'])
|
||||
path = request.forms.path
|
||||
path = stanitize_path(path)
|
||||
path = sanitize_path(path)
|
||||
directory,filename = os.path.split(path)
|
||||
directory = '/'+directory
|
||||
message = request.forms.message
|
||||
|
@ -297,7 +297,7 @@ def edit(path=''):
|
|||
if not path and request.query.path:
|
||||
path = request.query.path
|
||||
|
||||
path = stanitize_path(path)
|
||||
path = sanitize_path(path)
|
||||
|
||||
body = []
|
||||
if path:
|
||||
|
@ -375,7 +375,7 @@ def edit():
|
|||
@route('/new/<path:path>', method='GET')
|
||||
def new(path = ''):
|
||||
|
||||
path = stanitize_path(path)
|
||||
path = sanitize_path(path)
|
||||
|
||||
body = []
|
||||
|
||||
|
@ -445,7 +445,7 @@ def new():
|
|||
def rename(path = ''):
|
||||
body = []
|
||||
|
||||
path = stanitize_path(path)
|
||||
path = sanitize_path(path)
|
||||
|
||||
body.append('<style type="text/css">\
|
||||
td.r { text-align: left; vertical-align:top;}\
|
||||
|
@ -507,7 +507,7 @@ def rename():
|
|||
@route('/mkdir', method="GET")
|
||||
def mkdir(path=''):
|
||||
body = []
|
||||
path = stanitize_path(path)
|
||||
path = sanitize_path(path)
|
||||
|
||||
body.append('<style type="text/css">\
|
||||
td.r { text-align: left; vertical-align:top;}\
|
||||
|
@ -534,7 +534,7 @@ def mkdir(path=''):
|
|||
def mkdir():
|
||||
body = []
|
||||
path = request.forms.path
|
||||
path = stanitize_path(path)
|
||||
path = sanitize_path(path)
|
||||
|
||||
if not os.path.exists(os.path.join(conf['repo'],path)):
|
||||
os.mkdir(os.path.join(conf['repo'],path))
|
||||
|
|
Loading…
Reference in a new issue