Commit 16b254d1 authored by Serge S. Koval's avatar Serge S. Koval

Python 3 metaclass magic

parent 9207bdc6
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.
......
......@@ -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'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment