remove multitenant, now in hobo (#6491)
tenant: do not duplicate --domain option in tenant_command (#6459)
tenant: add "create super user" to example commands
tenant: fix documentation reference to the manage.py command
release 7.0.0
multitenant: update README
multitenant: sync syncdb with upstream
multitenant: sync_schemas disabled for django 1.7
tenant: fix django 1.6 usage (missing init.py)
result of tenant.create_schema is undefined
remove useless get_tenant_by_domain command (#6398)
renamed create_schema to create_schemas
migrate: disable if django 1.7 (#6388)
multitenant: use self.schema_name in SyncCommon (#6420)
tenants in TENANT_BASE/hostname (#6398)
migrate_schemas: use django 1.7 if available (#6388)
tenant object passed to context manager."deploy tenant" method should be called with three parameters
Closes #6340
Add a generic command to deploy service tenants from hobo (#6340)
It must be overloaded by applications.
middleware: PythonSettingsMiddleware overload FileBasedTenantSettingBaseMiddleware and not JSONSettingsMiddleware
Closes #5972
versions: add hobo and django-cmsplugin-blurp as projects of interest (#5878)
add safemigrate_schemas command (#5791)
sync_schemas: notice syncdb before doing it (fix)
move safemigrate in entrouvert.djommon app (#5781)
entrouvert.djommon.safemigrate app was just superfluous.
improve safemigrate command (#5781)
better readability, handle verbosity, prepare for safemigrate_schema
release 6.2.0
add safemigrate command (#5781)
multitenant: add a command to create tenant(s) by hostname
Closes #5759
In management commands of multitenant app rename variable schema_name as domain
Add tenant based storage handler (fixes #5501)
To use it, add this to your settings.py:
DEFAULT_FILE_STORAGE = 'entrouvert.djommon.multitenant.storage.TenantFileSystemStorage'
Add tests on multitenants features (fixes #5106)
Add command list_tenants (fixes #5044)
refs #5106
Add command get_tenant_by_domain
Add command to create missing tenant schemas
Import django-tenant-schemas commands to adapt them to our way of managing tenants
Make tenant model non savable
Remove create-tenant command
New TenantMiddleware which try to find tenants based on the filesystem
If path <settings.TENANT_BASE>/<hostname>/schema exists, read this file an buildtenant modle with Tenant(domain_url=<hostname>, schema_name=file(<path>).read()).
Add middleware to load settings from a JSON file based on the tenant
In FileSystemLoader use the schema name instead of the domain name for building template path
Also add a templates/ suffix.
In FileSystemLoader rename settings from MULTITENANT_TEMPLATE_DIRS to TENANT_TEMPLATE_DIRS to unformize with other settings
Remove dead import on tenant_schemas.utils
middleware: match url /__version__ or /__version__/
bump release to 6.1.0
add more entrouvert python packages to VersionMiddleware
readme updated
djommon/serializers/json: fix missing import and not handled case of new models
djommon: add JSON serializer supporting natural primary keys
multitenant: little fixes in models.py
setup.py: remove dependency links
version middleware: add orleans project
multitenant: fix instructions on the settings in the README
bumpt version to 6.0
multitenenant extension
bump version to 5.0
humantime: convert datetime to current timezone in template tags
humantime: adapt datetime timezone before formating the first time
bump version
setup.py: adapt to change in Django compilemessages
humantime: show datetime in the current timezone
humantime: remove x days ago formulation, use short date time format instead
humantime: all datetime objects are also date objects, to diffentiate them you must test for the former
setup.py: add humantime to the list of Django applications in the compile_transations command
add a sinkhole email backend
It makes all mails sent by Django go to an unique recipient; use it ondevelopment and preproduction platforms when there are productionsaccounts loaded.
add humantime locale files to MANIFEST.in
update version
add a template tags library to improve presentation of date and time
fix indentation error
djommon: add a UserInTracebackMiddleware
This middleware class add information on the currently logged in user torequest.META effectively logging them in the traceback.
MANIFEST.in: include MANIFEST.in
setup.py: close file not a string
setup.py sdist: store version into the archive
middleware: fix python-entrouvert name
version middleware: fix name of compte-agglo-montpellier
version middleware: add more projects
version middleware: fix auquotidien package name
add Calebasse into ENTROUVERT_PACKAGES
setup.py: remove Django dependency
setup.py: fix stdist generation
setup.py: don't compile translation during sdist
gitignore: add mo files
seup.py: rename entrouvert to python-entrouvert
bump release to 1.3
setup.py: add nose to tests_require
setup.py: remove nose from setup_requires
setup.py: add django to setup_requires
logging: add a decorator to log timing of functions or methods
Use it like that:
from entrouvert.logging.decorators import timing
@timing(0, 1, logger='timing') def method(arg0, arg1): etc... return arg0
It will output lines to the logger named 'timing' at the DEBUG level::...
setup.py: allow dirty packages
logging: set default max_length for syslog lines to 120
logging: handlers are old style class, super does not work there
logging: make maximum line length configurable
logging: remove BOM addition to log messages
bump version to 1.2
logging: add logging handler SysLogHandler
- it properly handle unicode, - it wraps long content as multiple log lines.
setup.py: only use tag matching v* for building the version string
setup.py: does not build the distribution tarball if git workdir is not clean
djommon: add decorated_include utility extracted from polynum
bump version to 1.1
version middleware: add entrouvert to the list of eo packages
version middleware: use application/json for mime-type
setup.py: use git describe for generating the version number