changeset 1767:54be46b8a0b4

flask ext import change Flask extensions should urge users to import from flask.ext.foo instead of flask_foo or flaskext_foo.
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Sun, 02 Sep 2012 21:53:25 +0200
parents b78098593483
children 52c5fb040ac4
files MoinMoin/app.py MoinMoin/apps/frontend/views.py MoinMoin/i18n/__init__.py MoinMoin/macro/Date.py MoinMoin/macro/DateTime.py MoinMoin/macro/_tests/test_Date.py MoinMoin/script/__init__.py MoinMoin/script/account/create.py MoinMoin/script/account/disable.py MoinMoin/script/account/resetpw.py MoinMoin/script/maint/index.py MoinMoin/script/maint/modified_systemitems.py MoinMoin/script/maint/modify_item.py MoinMoin/script/maint/moinshell.py MoinMoin/script/maint/reduce_revisions.py MoinMoin/script/maint/serialization.py MoinMoin/script/maint/set_meta.py MoinMoin/script/migration/moin19/import19.py MoinMoin/themes/__init__.py
diffstat 19 files changed, 21 insertions(+), 21 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/app.py	Sat Sep 01 20:58:26 2012 +0800
+++ b/MoinMoin/app.py	Sun Sep 02 21:53:25 2012 +0200
@@ -20,8 +20,8 @@
 from flask import current_app as app
 from flask import g as flaskg
 
-from flaskext.cache import Cache
-from flaskext.themes import setup_themes
+from flask.ext.cache import Cache
+from flask.ext.themes import setup_themes
 
 from jinja2 import ChoiceLoader, FileSystemLoader
 
--- a/MoinMoin/apps/frontend/views.py	Sat Sep 01 20:58:26 2012 +0800
+++ b/MoinMoin/apps/frontend/views.py	Sun Sep 02 21:53:25 2012 +0200
@@ -28,8 +28,8 @@
 from flask import request, url_for, flash, Response, make_response, redirect, session, abort, jsonify
 from flask import current_app as app
 from flask import g as flaskg
-from flaskext.babel import format_date
-from flaskext.themes import get_themes_list
+from flask.ext.babel import format_date
+from flask.ext.themes import get_themes_list
 
 from flatland import Form, Enum
 from flatland.validation import Validator
--- a/MoinMoin/i18n/__init__.py	Sat Sep 01 20:58:26 2012 +0800
+++ b/MoinMoin/i18n/__init__.py	Sun Sep 02 21:53:25 2012 +0200
@@ -18,7 +18,7 @@
 
 from flask import current_app, request
 from flask import g as flaskg
-from flaskext.babel import Babel, gettext, ngettext, lazy_gettext
+from flask.ext.babel import Babel, gettext, ngettext, lazy_gettext
 
 _ = gettext
 N_ = ngettext
--- a/MoinMoin/macro/Date.py	Sat Sep 01 20:58:26 2012 +0800
+++ b/MoinMoin/macro/Date.py	Sun Sep 02 21:53:25 2012 +0200
@@ -11,7 +11,7 @@
 from datetime import datetime
 
 from flask import g as flaskg
-from flaskext.babel import format_date
+from flask.ext.babel import format_date
 
 from MoinMoin.macro._base import MacroInlineBase
 
--- a/MoinMoin/macro/DateTime.py	Sat Sep 01 20:58:26 2012 +0800
+++ b/MoinMoin/macro/DateTime.py	Sun Sep 02 21:53:25 2012 +0200
@@ -10,7 +10,7 @@
 from datetime import datetime
 
 from flask import g as flaskg
-from flaskext.babel import format_datetime
+from flask.ext.babel import format_datetime
 
 from MoinMoin.macro.Date import MacroDateTimeBase
 
--- a/MoinMoin/macro/_tests/test_Date.py	Sat Sep 01 20:58:26 2012 +0800
+++ b/MoinMoin/macro/_tests/test_Date.py	Sun Sep 02 21:53:25 2012 +0200
@@ -8,7 +8,7 @@
 import time
 from datetime import datetime
 
-from flaskext.babel import format_date, format_datetime
+from flask.ext.babel import format_date, format_datetime
 
 from MoinMoin.macro.Date import MacroDateTimeBase, Macro
 import pytest
--- a/MoinMoin/script/__init__.py	Sat Sep 01 20:58:26 2012 +0800
+++ b/MoinMoin/script/__init__.py	Sun Sep 02 21:53:25 2012 +0200
@@ -14,7 +14,7 @@
     console_script entry point
     """
     from MoinMoin.app import create_app
-    from flaskext.script import Manager, Server
+    from flask.ext.script import Manager, Server
 
     manager = Manager(create_app)
     manager.add_option('-c', '--config', dest='config', required=False, default=wiki_config)
--- a/MoinMoin/script/account/create.py	Sat Sep 01 20:58:26 2012 +0800
+++ b/MoinMoin/script/account/create.py	Sun Sep 02 21:53:25 2012 +0200
@@ -9,7 +9,7 @@
 
 from flask import current_app as app
 from flask import g as flaskg
-from flaskext.script import Command, Option
+from flask.ext.script import Command, Option
 
 from MoinMoin import user
 from MoinMoin.app import before_wiki
--- a/MoinMoin/script/account/disable.py	Sat Sep 01 20:58:26 2012 +0800
+++ b/MoinMoin/script/account/disable.py	Sun Sep 02 21:53:25 2012 +0200
@@ -9,7 +9,7 @@
 
 from flask import current_app as app
 from flask import g as flaskg
-from flaskext.script import Command, Option
+from flask.ext.script import Command, Option
 
 from MoinMoin import user
 from MoinMoin.app import before_wiki
--- a/MoinMoin/script/account/resetpw.py	Sat Sep 01 20:58:26 2012 +0800
+++ b/MoinMoin/script/account/resetpw.py	Sun Sep 02 21:53:25 2012 +0200
@@ -10,7 +10,7 @@
 
 from flask import current_app as app
 from flask import g as flaskg
-from flaskext.script import Command, Option
+from flask.ext.script import Command, Option
 
 from MoinMoin import user
 from MoinMoin.app import before_wiki
--- a/MoinMoin/script/maint/index.py	Sat Sep 01 20:58:26 2012 +0800
+++ b/MoinMoin/script/maint/index.py	Sun Sep 02 21:53:25 2012 +0200
@@ -8,7 +8,7 @@
 
 from flask import current_app as app
 from flask import g as flaskg
-from flaskext.script import Command, Option
+from flask.ext.script import Command, Option
 
 from MoinMoin import log
 logging = log.getLogger(__name__)
--- a/MoinMoin/script/maint/modified_systemitems.py	Sat Sep 01 20:58:26 2012 +0800
+++ b/MoinMoin/script/maint/modified_systemitems.py	Sun Sep 02 21:53:25 2012 +0200
@@ -10,7 +10,7 @@
 
 
 from flask import current_app as app
-from flaskext.script import Command
+from flask.ext.script import Command
 
 from MoinMoin.config import IS_SYSITEM, SYSITEM_VERSION
 
--- a/MoinMoin/script/maint/modify_item.py	Sat Sep 01 20:58:26 2012 +0800
+++ b/MoinMoin/script/maint/modify_item.py	Sun Sep 02 21:53:25 2012 +0200
@@ -10,7 +10,7 @@
 
 from flask import current_app as app
 from flask import g as flaskg
-from flaskext.script import Command, Option
+from flask.ext.script import Command, Option
 
 from MoinMoin.config import NAME, CURRENT, REVID, DATAID, SIZE, HASH_ALGORITHM
 
--- a/MoinMoin/script/maint/moinshell.py	Sat Sep 01 20:58:26 2012 +0800
+++ b/MoinMoin/script/maint/moinshell.py	Sun Sep 02 21:53:25 2012 +0200
@@ -5,7 +5,7 @@
 from flask import Flask, _request_ctx_stack
 from flask import current_app as app
 from flask import g as flaskg
-from flaskext.script import Command, Option
+from flask.ext.script import Command, Option
 
 from MoinMoin import user
 from MoinMoin.app import before_wiki
--- a/MoinMoin/script/maint/reduce_revisions.py	Sat Sep 01 20:58:26 2012 +0800
+++ b/MoinMoin/script/maint/reduce_revisions.py	Sun Sep 02 21:53:25 2012 +0200
@@ -12,7 +12,7 @@
 
 
 from flask import current_app as app
-from flaskext.script import Command, Option
+from flask.ext.script import Command, Option
 
 from whoosh.query import Every
 
--- a/MoinMoin/script/maint/serialization.py	Sat Sep 01 20:58:26 2012 +0800
+++ b/MoinMoin/script/maint/serialization.py	Sun Sep 02 21:53:25 2012 +0200
@@ -9,7 +9,7 @@
 
 from flask import current_app as app
 from flask import g as flaskg
-from flaskext.script import Command, Option
+from flask.ext.script import Command, Option
 
 from MoinMoin.storage.middleware.serialization import serialize, deserialize
 
--- a/MoinMoin/script/maint/set_meta.py	Sat Sep 01 20:58:26 2012 +0800
+++ b/MoinMoin/script/maint/set_meta.py	Sun Sep 02 21:53:25 2012 +0200
@@ -15,7 +15,7 @@
 from ast import literal_eval
 
 from flask import current_app as app
-from flaskext.script import Command, Option
+from flask.ext.script import Command, Option
 
 from whoosh.query import Every
 
--- a/MoinMoin/script/migration/moin19/import19.py	Sat Sep 01 20:58:26 2012 +0800
+++ b/MoinMoin/script/migration/moin19/import19.py	Sun Sep 02 21:53:25 2012 +0200
@@ -22,7 +22,7 @@
 from StringIO import StringIO
 
 from flask import current_app as app
-from flaskext.script import Command, Option
+from flask.ext.script import Command, Option
 
 from MoinMoin import log
 logging = log.getLogger(__name__)
--- a/MoinMoin/themes/__init__.py	Sat Sep 01 20:58:26 2012 +0800
+++ b/MoinMoin/themes/__init__.py	Sun Sep 02 21:53:25 2012 +0200
@@ -16,7 +16,7 @@
 from flask import current_app as app
 from flask import g as flaskg
 from flask import url_for, request
-from flaskext.themes import get_theme, render_theme_template
+from flask.ext.themes import get_theme, render_theme_template
 
 from MoinMoin import log
 logging = log.getLogger(__name__)