Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
flask-admin
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Python-Dev
flask-admin
Commits
9acdd763
Commit
9acdd763
authored
Mar 22, 2015
by
Serge S. Koval
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #820 from freeznet/master
add menu item settings for FileAdmin
parents
591f7b46
a5e03f8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
fileadmin.py
flask_admin/contrib/fileadmin.py
+4
-2
No files found.
flask_admin/contrib/fileadmin.py
View file @
9acdd763
...
@@ -138,7 +138,7 @@ class FileAdmin(BaseView, ActionsMixin):
...
@@ -138,7 +138,7 @@ class FileAdmin(BaseView, ActionsMixin):
def
__init__
(
self
,
base_path
,
base_url
=
None
,
def
__init__
(
self
,
base_path
,
base_url
=
None
,
name
=
None
,
category
=
None
,
endpoint
=
None
,
url
=
None
,
name
=
None
,
category
=
None
,
endpoint
=
None
,
url
=
None
,
verify_path
=
True
):
verify_path
=
True
,
menu_class_name
=
None
,
menu_icon_type
=
None
,
menu_icon_value
=
None
):
"""
"""
Constructor.
Constructor.
...
@@ -179,7 +179,9 @@ class FileAdmin(BaseView, ActionsMixin):
...
@@ -179,7 +179,9 @@ class FileAdmin(BaseView, ActionsMixin):
if
not
op
.
exists
(
base_path
):
if
not
op
.
exists
(
base_path
):
raise
IOError
(
'FileAdmin path "
%
s" does not exist or is not accessible'
%
base_path
)
raise
IOError
(
'FileAdmin path "
%
s" does not exist or is not accessible'
%
base_path
)
super
(
FileAdmin
,
self
)
.
__init__
(
name
,
category
,
endpoint
,
url
)
super
(
FileAdmin
,
self
)
.
__init__
(
name
,
category
,
endpoint
,
url
,
menu_class_name
=
menu_class_name
,
menu_icon_type
=
menu_icon_type
,
menu_icon_value
=
menu_icon_value
)
def
is_accessible_path
(
self
,
path
):
def
is_accessible_path
(
self
,
path
):
"""
"""
...
...
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