Download:
child 98:4d5fdd6e0478
parent 96:5e7f52c8da36
97:58a14a6318d1
Anton Shestakov <av6@dwimlabs.net>, Mon, 18 Jul 2016 21:21:10 +0800
fruitbar: don't import from flask.ext (preparing for Flask 0.11+)

2 файлов изменено, 3 вставок(+), 3 удалений(-) [+]
app.py file | annotate | diff | comparison | revisions
fruitbar/crud.py file | annotate | diff | comparison | revisions
--- a/app.py Mon Jul 18 21:16:47 2016 +0800
+++ b/app.py Mon Jul 18 21:21:10 2016 +0800
@@ -4,8 +4,8 @@
import os
from flask import Flask, g, render_template
-from flask.ext.assets import Environment
-from flask.ext.restful import Api
+from flask_assets import Environment
+from flask_restful import Api
from CodernityDB.database_thread_safe import ThreadSafeDatabase
from fruitbar.indexes import ProjectIndex, TaskIndex
--- a/fruitbar/crud.py Mon Jul 18 21:16:47 2016 +0800
+++ b/fruitbar/crud.py Mon Jul 18 21:21:10 2016 +0800
@@ -1,7 +1,7 @@
#-*- coding:utf-8 -*-
from flask import g, request
-from flask.ext.restful import Resource
+from flask_restful import Resource
from CodernityDB.database import RecordNotFound, RecordDeleted