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
16b254d1
Commit
16b254d1
authored
Jun 13, 2013
by
Serge S. Koval
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Python 3 metaclass magic
parent
9207bdc6
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
2 deletions
+9
-2
base.py
flask_admin/base.py
+6
-1
requirements.txt
requirements.txt
+1
-0
setup.py
setup.py
+2
-1
No files found.
flask_admin/base.py
View file @
16b254d1
from
functools
import
wraps
from
re
import
sub
import
six
from
flask
import
Blueprint
,
render_template
,
url_for
,
abort
,
g
from
flask.ext.admin
import
babel
...
...
@@ -90,7 +91,11 @@ class AdminViewMeta(type):
setattr
(
cls
,
p
,
_wrap_view
(
attr
))
class
BaseView
(
object
):
class
BaseMeta
(
object
):
pass
class
BaseView
(
six
.
with_metaclass
(
AdminViewMeta
,
BaseMeta
)):
"""
Base administrative view.
...
...
requirements.txt
View file @
16b254d1
six
Flask
>=0.7
Flask-WTF
>=0.6
Flask-SQLAlchemy
>=0.15
...
...
setup.py
View file @
16b254d1
...
...
@@ -42,8 +42,9 @@ setup(
zip_safe
=
False
,
platforms
=
'any'
,
install_requires
=
[
'six>=1.2'
,
'Flask>=0.7'
,
'Flask-WTF>=0.6'
'Flask-WTF>=0.6'
,
],
tests_require
=
[
'nose>=1.0'
...
...
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