diff --git a/AUTHORS b/AUTHORS index d75c898..36926cd 100644 --- a/AUTHORS +++ b/AUTHORS @@ -10,4 +10,4 @@ Patches and Contributions ------------------------- - - +- Luiz Oliveira diff --git a/domain/__init__.py b/domain/__init__.py index 0bfc00f..0ac1fd1 100644 --- a/domain/__init__.py +++ b/domain/__init__.py @@ -5,10 +5,10 @@ :copyright: (c) 2013 by Nicola Iarocci and CIR2000. :license: BSD, see LICENSE for more details. """ -import countries -import companies -import accounts -from common import account, account_key # noqa (will raise W0611 on pyflakes) +import domain.countries as countries +import domain.companies as companies +import domain.accounts as accounts +from domain.common import account, account_key # noqa (will raise W0611 on pyflakes) DOMAIN = { 'countries': countries.definition, diff --git a/domain/accounts.py b/domain/accounts.py index d0029aa..3e431b0 100644 --- a/domain/accounts.py +++ b/domain/accounts.py @@ -5,7 +5,7 @@ :copyright: (c) 2014 by Nicola Iarocci and CIR2000. :license: BSD, see LICENSE for more details. """ -from common import base_schema, required_string +from domain.common import base_schema, required_string _schema = { 'u': required_string, # username diff --git a/domain/companies.py b/domain/companies.py index b963dff..6372920 100644 --- a/domain/companies.py +++ b/domain/companies.py @@ -5,7 +5,7 @@ :copyright: (c) 2014 by Nicola Iarocci and CIR2000. :license: BSD, see LICENSE for more details. """ -from common import required_string +from domain.common import required_string _schema = { # company id ('id') diff --git a/domain/countries.py b/domain/countries.py index 188bc7c..43d5443 100644 --- a/domain/countries.py +++ b/domain/countries.py @@ -5,7 +5,7 @@ :copyright: (c) 2014 by Nicola Iarocci and CIR2000. :license: BSD, see LICENSE for more details. """ -from common import required_string +from domain.common import required_string _schema = { 'n': required_string, # name diff --git a/settings.py b/settings.py index a68131d..9fa3fa4 100644 --- a/settings.py +++ b/settings.py @@ -36,5 +36,8 @@ # Turn soft deletes on SOFT_DELETE = True +# Enable schema route +SCHEMA_ENDPOINT = 'schema' + # Set the API domain DOMAIN = domain.DOMAIN