Merge branch 'release/0.3.0' into production
* release/0.3.0: update copyright years, add release version add changelog entry for tasks refactoring adapt code documentation to changed module structure move osusers to ldaptasks switch to gvacommon.celeryrouters.GvaRouter unify routers, add support for mysql and pgsql tasks
This commit is contained in:
commit
50d9dfab33
11 changed files with 48 additions and 56 deletions
|
@ -1,4 +1,4 @@
|
|||
Copyright (c) 2014 Jan Dittberner
|
||||
Copyright (c) 2014, 2015 Jan Dittberner
|
||||
|
||||
Permission is hereby granted, free of charge, to any person
|
||||
obtaining a copy of this software and associated documentation
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
Changelog
|
||||
=========
|
||||
|
||||
* :release:`0.3.0 <2015-01-19>`
|
||||
* :support:`-` move tasks from osusers to ldaptasks.tasks
|
||||
|
||||
* :release:`0.2.0 <2014-12-29>`
|
||||
* :feature:`-` add task :py:func:`osusers.tasks.delete_ldap_group`
|
||||
* :support:`-` use celery routers from gvacommon
|
||||
|
|
|
@ -16,82 +16,82 @@ The project module :py:mod:`gvaldap`
|
|||
.. automodule:: gvaldap
|
||||
|
||||
|
||||
:py:mod:`gvaldap.celery`
|
||||
------------------------
|
||||
:py:mod:`celery <gvaldap.celery>`
|
||||
---------------------------------
|
||||
|
||||
.. automodule:: gvaldap.celery
|
||||
:members:
|
||||
|
||||
|
||||
:py:mod:`gvaldap.urls`
|
||||
----------------------
|
||||
:py:mod:`urls <gvaldap.urls>`
|
||||
-----------------------------
|
||||
|
||||
.. automodule:: gvaldap.urls
|
||||
|
||||
|
||||
:py:mod:`gvaldap.wsgi`
|
||||
----------------------
|
||||
:py:mod:`wsgi <gvaldap.wsgi>`
|
||||
-----------------------------
|
||||
|
||||
.. automodule:: gvaldap.wsgi
|
||||
:members:
|
||||
|
||||
|
||||
:py:mod:`gvaldap.settings`
|
||||
--------------------------
|
||||
:py:mod:`settings <gvaldap.settings>`
|
||||
-------------------------------------
|
||||
|
||||
.. automodule:: gvaldap.settings
|
||||
|
||||
:py:mod:`gvaldap.settings.base`
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
:py:mod:`base <gvaldap.settings.base>`
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. automodule:: gvaldap.settings.base
|
||||
:members:
|
||||
|
||||
:py:mod:`gvaldap.settings.local`
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
:py:mod:`local <gvaldap.settings.local>`
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. automodule:: gvaldap.settings.local
|
||||
|
||||
:py:mod:`gvaldap.settings.production`
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
:py:mod:`production <gvaldap.settings.production>`
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. automodule:: gvaldap.settings.production
|
||||
|
||||
:py:mod:`gvaldap.settings.test`
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
:py:mod:`test <gvaldap.settings.test>`
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. automodule:: gvaldap.settings.test
|
||||
|
||||
|
||||
|
||||
:py:mod:`ldapentities` app
|
||||
==========================
|
||||
|
||||
.. automodule:: ldapentities
|
||||
|
||||
|
||||
:py:mod:`ldapenties.admin`
|
||||
--------------------------
|
||||
:py:mod:`admin <ldapenties.admin>`
|
||||
----------------------------------
|
||||
|
||||
.. automodule:: ldapentities.admin
|
||||
:members:
|
||||
|
||||
|
||||
:py:mod:`ldapenties.models`
|
||||
---------------------------
|
||||
:py:mod:`models <ldapenties.models>`
|
||||
------------------------------------
|
||||
|
||||
.. automodule:: ldapentities.models
|
||||
:members:
|
||||
|
||||
|
||||
:py:mod:`osusers` app
|
||||
=====================
|
||||
:py:mod:`ldaptasks` app
|
||||
=======================
|
||||
|
||||
.. automodule:: osusers
|
||||
.. automodule:: ldaptasks
|
||||
|
||||
:py:mod:`osusers.tasks`
|
||||
-----------------------
|
||||
|
||||
.. automodule:: osusers.tasks
|
||||
:py:mod:`tasks <ldaptasks.tasks>`
|
||||
---------------------------------
|
||||
|
||||
.. automodule:: ldaptasks.tasks
|
||||
:members:
|
||||
:undoc-members:
|
||||
|
|
|
@ -53,16 +53,16 @@ master_doc = 'index'
|
|||
|
||||
# General information about the project.
|
||||
project = u'gvaldap'
|
||||
copyright = u'2014, Jan Dittberner'
|
||||
copyright = u'2014, 2015 Jan Dittberner'
|
||||
|
||||
# The version info for the project you're documenting, acts as replacement for
|
||||
# |version| and |release|, also used in various other places throughout the
|
||||
# built documents.
|
||||
#
|
||||
# The short X.Y version.
|
||||
version = '0.2'
|
||||
version = '0.3'
|
||||
# The full version, including alpha/beta/rc tags.
|
||||
release = '0.2.0'
|
||||
release = '0.3.0'
|
||||
|
||||
# The language for content autogenerated by Sphinx. Refer to documentation
|
||||
# for a list of supported languages.
|
||||
|
|
1
gvaldap/gvacommon/.gitignore
vendored
1
gvaldap/gvacommon/.gitignore
vendored
|
@ -1,2 +1,3 @@
|
|||
.*.swp
|
||||
*.pyc
|
||||
.ropeproject/
|
||||
|
|
|
@ -2,23 +2,14 @@
|
|||
from __future__ import unicode_literals
|
||||
|
||||
|
||||
class LdapRouter(object):
|
||||
class GvaRouter(object):
|
||||
|
||||
def route_for_task(self, task, args=None, kwargs=None):
|
||||
if 'ldap' in task:
|
||||
return {'exchange': 'ldap',
|
||||
for route in ['ldap', 'file', 'mysql', 'pgsql']:
|
||||
if route in task:
|
||||
return {
|
||||
'exchange': route,
|
||||
'exchange_type': 'direct',
|
||||
'queue': 'ldap'}
|
||||
'queue': route,
|
||||
}
|
||||
return None
|
||||
|
||||
|
||||
class FileRouter(object):
|
||||
|
||||
def route_for_task(self, task, args=None, kwargs=None):
|
||||
if 'file' in task:
|
||||
return {'exchange': 'file',
|
||||
'exchange_type': 'direct',
|
||||
'queue': 'file'}
|
||||
return None
|
||||
|
||||
|
||||
|
|
|
@ -232,7 +232,7 @@ DJANGO_APPS = (
|
|||
# Apps specific for this project go here.
|
||||
LOCAL_APPS = (
|
||||
'ldapentities',
|
||||
'osusers',
|
||||
'ldaptasks',
|
||||
)
|
||||
|
||||
# See: https://docs.djangoproject.com/en/dev/ref/settings/#installed-apps
|
||||
|
@ -291,8 +291,7 @@ CELERY_RESULT_BACKEND = 'amqp'
|
|||
CELERY_RESULT_PERSISTENT = True
|
||||
CELERY_TASK_RESULT_EXPIRES = None
|
||||
CELERY_ROUTES = (
|
||||
'gvacommon.celeryrouters.LdapRouter',
|
||||
'gvacommon.celeryrouters.FileRouter',
|
||||
'gvacommon.celeryrouters.GvaRouter',
|
||||
)
|
||||
CELERY_TIMEZONE = 'Europe/Berlin'
|
||||
CELERY_ENABLE_UTC = True
|
||||
|
|
4
gvaldap/ldaptasks/__init__.py
Normal file
4
gvaldap/ldaptasks/__init__.py
Normal file
|
@ -0,0 +1,4 @@
|
|||
"""
|
||||
This module contains :py:mod:`ldaptasks.tasks`.
|
||||
|
||||
"""
|
|
@ -1,3 +0,0 @@
|
|||
"""
|
||||
This module contains :py:mod:`osusers.tasks`.
|
||||
"""
|
|
@ -1,3 +0,0 @@
|
|||
"""
|
||||
Empty models module required for Django to accept this as an app.
|
||||
"""
|
Loading…
Reference in a new issue