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
c740b85e
Commit
c740b85e
authored
Oct 24, 2012
by
Serge S. Koval
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed sphinx makefile
parent
0118dfbe
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
3 deletions
+15
-3
Makefile
Makefile
+2
-2
simple.py
examples/simple/simple.py
+3
-0
base.py
flask_admin/base.py
+9
-0
list.html
flask_admin/templates/admin/model/list.html
+1
-1
No files found.
Makefile
View file @
c740b85e
...
...
@@ -10,9 +10,9 @@ BUILDDIR = build
# Internal variables.
PAPEROPT_a4
=
-D
latex_paper_size
=
a4
PAPEROPT_letter
=
-D
latex_paper_size
=
letter
ALLSPHINXOPTS
=
-d
$(BUILDDIR)
/doctrees
$
(
PAPEROPT_
$(PAPER)
)
$(SPHINXOPTS)
source
ALLSPHINXOPTS
=
-d
$(BUILDDIR)
/doctrees
$
(
PAPEROPT_
$(PAPER)
)
$(SPHINXOPTS)
doc
# the i18n builder cannot share the environment and doctrees with the others
I18NSPHINXOPTS
=
$
(
PAPEROPT_
$(PAPER)
)
$(SPHINXOPTS)
source
I18NSPHINXOPTS
=
$
(
PAPEROPT_
$(PAPER)
)
$(SPHINXOPTS)
doc
.PHONY
:
help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext
...
...
examples/simple/simple.py
View file @
c740b85e
...
...
@@ -37,6 +37,9 @@ if __name__ == '__main__':
admin
.
add_view
(
AnotherAdminView
(
category
=
'Test'
))
admin
.
init_app
(
app
)
import
pdb
pdb
.
set_trace
()
# Start app
app
.
debug
=
True
app
.
run
()
flask_admin/base.py
View file @
c740b85e
import
sys
import
os.path
from
functools
import
wraps
from
re
import
sub
...
...
@@ -179,6 +182,12 @@ class BaseView(object):
if
self
.
name
is
None
:
self
.
name
=
self
.
_prettify_name
(
self
.
__class__
.
__name__
)
# Figure out root_path
mod_name
=
self
.
__module__
mod
=
sys
.
modules
[
mod_name
]
root_path
=
os
.
path
.
abspath
(
os
.
path
.
dirname
(
mod
.
__file__
))
print
mod_name
,
mod
.
__file__
,
root_path
# Create blueprint and register rules
self
.
blueprint
=
Blueprint
(
self
.
endpoint
,
__name__
,
url_prefix
=
self
.
url
,
...
...
flask_admin/templates/admin/model/list.html
View file @
c740b85e
...
...
@@ -138,7 +138,7 @@
</td>
{% endif %}
<td>
{% block list_row_
row_
actions scoped %}
{% block list_row_actions scoped %}
{%- if admin_view.can_edit -%}
<a
class=
"icon"
href=
"{{ url_for('.edit_view', id=get_pk_value(row), url=return_url) }}"
>
<i
class=
"icon-pencil"
></i>
...
...
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