Skip to content

Commit abab5aa

Browse files
committed
Refactored flask.py -> flaskext.py. Fixes #6
1 parent 7d9cdc9 commit abab5aa

6 files changed

Lines changed: 11 additions & 2 deletions

File tree

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
language: python
22
python:
33
- "3.4"
4+
- "2.7"
5+
- "3.5"
46
install:
57
- "pip install ."
68
- "pip install -r requirements.txt"

CHANGES.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# SQLAlchemy-JSONAPI Changelog
22

3+
## 2.0.1
4+
5+
*2015-09-16*
6+
7+
* Fixed #6 where flask may conflict with flask package on Python 2.7.
8+
39
## 2.0.0 - Interface Fix
410

511
*2015-08-29*

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from setuptools import setup
1414

1515
setup(name='SQLAlchemy-JSONAPI',
16-
version='2.0.0',
16+
version='2.0.1',
1717
url='http://github.com/coltonprovias/sqlalchemy-jsonapi',
1818
license='MIT',
1919
author='Colton J. Provias',

sqlalchemy_jsonapi/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from .flask import FlaskJSONAPI
1+
from .flaskext import FlaskJSONAPI
22
from .serializer import (JSONAPI, AttributeActions, RelationshipActions,
33
Permissions, attr_descriptor, relationship_descriptor,
44
permission_test)

sqlalchemy_jsonapi/tests/app.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ def view_password(self):
7979

8080
@permission_test(Permissions.EDIT)
8181
def prevent_edit(self):
82+
""" Prevent editing for no reason. """
8283
if request.view_args['api_type'] == 'posts':
8384
return True
8485
return False

0 commit comments

Comments
 (0)