Skip to content

Commit

Permalink
migrade to new extensions namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
dag committed Oct 12, 2011
1 parent 7ed15a0 commit c5451ab
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 9 deletions.
6 changes: 3 additions & 3 deletions docs/index.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Flask-ZODB
==========

.. module:: flaskext.zodb
.. module:: flask.ext.zodb

An object database for your Flask application.

Expand Down Expand Up @@ -82,7 +82,7 @@ application for handling ZODB connections::

app.config['ZODB_STORAGE'] = 'file://app.fs'

from flaskext.zodb import ZODB
from flask.ext.zodb import ZODB
db = ZODB(app)

The above uses a filestorage called :file:`app.fs`, located relative to the
Expand Down Expand Up @@ -155,7 +155,7 @@ with ZODB that handles this for you.

::

from flaskext.zodb import Object, List
from flask.ext.zodb import Object, List

class User(Object):

Expand Down
2 changes: 1 addition & 1 deletion examples/flaskr/flaskr.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from contextlib import closing
from flask import Flask, request, session, g, redirect, url_for, abort, \
render_template, flash
from flaskext.zodb import ZODB, List
from flask.ext.zodb import ZODB, List

# configuration
ZODB_STORAGE = 'file:///tmp/flaskr.fs'
Expand Down
File renamed without changes.
2 changes: 0 additions & 2 deletions flaskext/__init__.py

This file was deleted.

3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ def add_entry():
long_description=__doc__,
keywords=['flask', 'zodb', 'persistence', 'database'],

packages=['flaskext'],
namespace_packages=['flaskext'],
py_modules=['flask_zodb'],
zip_safe=False,

requires=['flask (>=0.7)', 'ZODB', 'zodburi'],
Expand Down
2 changes: 1 addition & 1 deletion tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import transaction

from flask import Flask
from flaskext.zodb import ZODB
from flask_zodb import ZODB
from ZODB.MappingStorage import MappingStorage


Expand Down

0 comments on commit c5451ab

Please sign in to comment.