Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
3pia
VISPA
VISPA web
Commits
3eae0e0e
Commit
3eae0e0e
authored
Sep 25, 2014
by
Martin Urban
Browse files
File: remove relicts from ajax controller: exists
parent
e5a7ab51
Changes
1
Show whitespace changes
Inline
Side-by-side
vispa/controller/filesystem.py
View file @
3eae0e0e
...
...
@@ -76,13 +76,12 @@ class FSAjaxController(AbstractController):
fs
=
self
.
get
(
'fs'
)
self
.
release_database
()
# path = path
# type = type if type else type
target_type
=
fs
.
exists
(
path
,
type
=
filetype
)
if
target_type
:
return
self
.
success
(
type
=
target_type
,
encode_json
=
True
)
return
target_type
else
:
return
self
.
fail
(
encode_json
=
True
)
return
"Failed"
@
cherrypy
.
expose
@
cherrypy
.
tools
.
ajax
(
encoded
=
True
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment