Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
3pia
VISPA
VISPA web
Commits
024cbecc
Commit
024cbecc
authored
Jun 09, 2017
by
Benjamin Fischer
Browse files
[controller] filelist got a hide_hidden option
parent
b80c066a
Changes
1
Hide whitespace changes
Inline
Side-by-side
vispa/controller/filesystem.py
View file @
024cbecc
...
...
@@ -146,16 +146,18 @@ class FSAjaxController(AbstractController):
@
cherrypy
.
expose
@
cherrypy
.
tools
.
ajax
(
encoded
=
True
)
@
cherrypy
.
tools
.
method
(
accept
=
"GET"
)
def
filelist
(
self
,
path
,
filefilter
=
None
,
reverse
=
False
,
watch_id
=
None
):
def
filelist
(
self
,
path
,
filefilter
=
None
,
reverse
=
False
,
watch_id
=
None
,
hide_hidden
=
True
):
self
.
release_session
()
fs
=
self
.
get
(
'fs'
)
self
.
release_database
()
reverse
=
self
.
convert
(
reverse
,
bool
)
hide_hidden
=
self
.
convert
(
hide_hidden
,
bool
)
# get the files with the filter
return
fs
.
get_file_list
(
path
,
filter
=
filefilter
,
reverse
=
reverse
,
encode_json
=
True
,
hide_hidden
=
hide_hidden
,
window_id
=
self
.
get
(
'window_id'
),
view_id
=
self
.
get
(
'view_id'
),
watch_id
=
watch_id
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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