Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuration file #10

Open
wants to merge 44 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
0aac5de
Remove some comment on settings.py
guillaume-philippon Apr 6, 2017
017a500
Merge remote-tracking branch 'upstream/master'
guillaume-philippon Oct 31, 2017
9616e96
First cleanup for openstack-register
guillaume-philippon Oct 31, 2017
8254e9e
Some other cleanup
guillaume-philippon Oct 31, 2017
d9f440c
Some cleanup
guillaume-philippon Oct 31, 2017
b6f066b
pylint cleanup
guillaume-philippon Nov 1, 2017
dd47ac9
Add config.ini.example file
guillaume-philippon Nov 1, 2017
0ad8200
Remove some hardcoded value
guillaume-philippon Nov 1, 2017
87d2dd8
Refactor templates structure
guillaume-philippon Nov 3, 2017
832fb97
Soem cleanup + improve login page
guillaume-philippon Nov 3, 2017
28f7ce1
A lot for restructuration to be cleanest
guillaume-philippon Nov 4, 2017
64e4d55
Forget some contrib
guillaume-philippon Nov 4, 2017
a9df0ff
Add sphinx doc
guillaume-philippon Nov 4, 2017
9b8a0d5
Add more RESTful like register api + form
guillaume-philippon Nov 4, 2017
ad6d131
Change modify information display
guillaume-philippon Nov 4, 2017
2fb812c
Add support to change user informations
guillaume-philippon Nov 4, 2017
2e80cde
Some minor modification
guillaume-philippon Nov 4, 2017
77056e3
Some minor changes
guillaume-philippon Nov 4, 2017
8dfb89e
Add some UI for user deletion
guillaume-philippon Nov 4, 2017
e3e1236
Add deletion user support
guillaume-philippon Nov 5, 2017
7e166b0
Some fixes for dataTable display
guillaume-philippon Nov 5, 2017
30eb698
Use javascript classes for registration formular
guillaume-philippon Nov 5, 2017
ad40ecf
Cleanup javascript code
guillaume-philippon Nov 5, 2017
64cdfc9
Add mail notification when a account is created
guillaume-philippon Nov 6, 2017
a43b47e
Add group support
guillaume-philippon Nov 6, 2017
ed4d94c
Use GroupOfUniqueName instead of GroupOfName
guillaume-philippon Nov 6, 2017
499b6ac
Fix group management
guillaume-philippon Nov 6, 2017
12fb4e4
Add delete user group
guillaume-philippon Nov 6, 2017
3b4360c
Remove useless code
guillaume-philippon Nov 6, 2017
8d307c7
Add support for add / remove member of a group
guillaume-philippon Nov 7, 2017
515df65
Some PEP8 fixes
guillaume-philippon Nov 7, 2017
6fc7e8e
Improve notification support
guillaume-philippon Nov 7, 2017
088587f
Improve error pages
guillaume-philippon Nov 7, 2017
a354256
Improve some permission test
guillaume-philippon Nov 7, 2017
635973b
Add documentation for users API
guillaume-philippon Nov 7, 2017
ba289ac
Some API doc
guillaume-philippon Nov 7, 2017
9b8fd80
Add dev. documentatin
guillaume-philippon Nov 7, 2017
efca998
Add some doc
guillaume-philippon Nov 7, 2017
4b4609d
Remove migrations from git
guillaume-philippon Nov 8, 2017
8abf291
Modify user information view
guillaume-philippon Nov 8, 2017
4cc51d7
Modify user information view
guillaume-philippon Nov 8, 2017
5e752c8
Add log support
guillaume-philippon Nov 8, 2017
f21a5ae
Add pylintrc file
guillaume-philippon Nov 8, 2017
bd7a977
Check mail and password
guillaume-philippon Nov 8, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.idea
MANIFEST
*.iml
*.sqlite3*
*.pyc
doc/build*
openstack_registration/registration/migrations*
1 change: 1 addition & 0 deletions .jshintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
openstack_registration/registration/static/contrib/**/
20 changes: 20 additions & 0 deletions doc/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Minimal makefile for Sphinx documentation
#

# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
SPHINXPROJ = openstack-registration
SOURCEDIR = source
BUILDDIR = build

# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

.PHONY: help Makefile

# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
36 changes: 36 additions & 0 deletions doc/make.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
@ECHO OFF

pushd %~dp0

REM Command file for Sphinx documentation

if "%SPHINXBUILD%" == "" (
set SPHINXBUILD=sphinx-build
)
set SOURCEDIR=source
set BUILDDIR=build
set SPHINXPROJ=openstack-registration

if "%1" == "" goto help

%SPHINXBUILD% >NUL 2>NUL
if errorlevel 9009 (
echo.
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
echo.installed, then set the SPHINXBUILD environment variable to point
echo.to the full path of the 'sphinx-build' executable. Alternatively you
echo.may add the Sphinx directory to PATH.
echo.
echo.If you don't have Sphinx installed, grab it from
echo.http://sphinx-doc.org/
exit /b 1
)

%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
goto end

:help
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%

:end
popd
171 changes: 171 additions & 0 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,171 @@
# -*- coding: utf-8 -*-
#
# openstack-registration documentation build configuration file, created by
# sphinx-quickstart on Sat Nov 4 14:16:30 2017.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All configuration values have a default; values that are commented out
# serve to show the default.

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
import os
import sys
sys.path.insert(0, os.path.abspath('../../openstack_registration'))
os.environ["DJANGO_SETTINGS_MODULE"] = "openstack_registration.settings"

# -- General configuration ------------------------------------------------

# If your documentation needs a minimal Sphinx version, state it here.
#
# needs_sphinx = '1.0'

# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = ['sphinx.ext.autodoc',
'sphinx.ext.doctest',
'sphinx.ext.imgmath',
'sphinx.ext.ifconfig']

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']

# The suffix(es) of source filenames.
# You can specify multiple suffix as a list of string:
#
# source_suffix = ['.rst', '.md']
source_suffix = '.rst'

# The master toctree document.
master_doc = 'index'

# General information about the project.
project = u'openstack-registration'
copyright = u'2017, G. Marchal, G. Philippon'
author = u'G. Marchal, G. Philippon'

# 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 = u'1.0'
# The full version, including alpha/beta/rc tags.
release = u'1.0'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
#
# This is also used if you do content translation via gettext catalogs.
# Usually you set "language" from the command line for these cases.
language = None

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This patterns also effect to html_static_path and html_extra_path
exclude_patterns = []

# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'

# If true, `todo` and `todoList` produce output, else they produce nothing.
todo_include_todos = False


# -- Options for HTML output ----------------------------------------------

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = 'default'

# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
#
# html_theme_options = {}

# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']

# Custom sidebar templates, must be a dictionary that maps document names
# to template names.
#
# This is required for the alabaster theme
# refs: http://alabaster.readthedocs.io/en/latest/installation.html#sidebars
html_sidebars = {
'**': [
'relations.html', # needs 'show_related': True theme option to display
'searchbox.html',
]
}


# -- Options for HTMLHelp output ------------------------------------------

# Output file base name for HTML help builder.
htmlhelp_basename = 'openstack-registrationdoc'


# -- Options for LaTeX output ---------------------------------------------

latex_elements = {
# The paper size ('letterpaper' or 'a4paper').
#
# 'papersize': 'letterpaper',

# The font size ('10pt', '11pt' or '12pt').
#
# 'pointsize': '10pt',

# Additional stuff for the LaTeX preamble.
#
# 'preamble': '',

# Latex figure (float) alignment
#
# 'figure_align': 'htbp',
}

# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title,
# author, documentclass [howto, manual, or own class]).
latex_documents = [
(master_doc, 'openstack-registration.tex', u'openstack-registration Documentation',
u'G. Marchal, G. Philippon', 'manual'),
]


# -- Options for manual page output ---------------------------------------

# One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section).
man_pages = [
(master_doc, 'openstack-registration', u'openstack-registration Documentation',
[author], 1)
]


# -- Options for Texinfo output -------------------------------------------

# Grouping the document tree into Texinfo files. List of tuples
# (source start file, target name, title, author,
# dir menu entry, description, category)
texinfo_documents = [
(master_doc, 'openstack-registration', u'openstack-registration Documentation',
author, 'openstack-registration', 'One line description of project.',
'Miscellaneous'),
]



7 changes: 7 additions & 0 deletions doc/source/developpers/openstack_registration.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Module openstack_registration
=============================

openstack_registration
----------------------
.. automodule:: openstack_registration
:members:
77 changes: 77 additions & 0 deletions doc/source/developpers/registration/api.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
Registration API
================

registration.api
----------------
.. automodule:: registration.api
:members:

registration.api.users
----------------------
.. automodule:: registration.api.users
:members:

registration.api.users.get
--------------------------
.. automodule:: registration.api.users.get
:members:

registration.api.users.user
---------------------------
.. automodule:: registration.api.users.user
:members:

registration.api.users.user.get
-------------------------------
.. automodule:: registration.api.users.user.get
:members:

registration.api.users.user.post
--------------------------------
.. automodule:: registration.api.users.user.post
:members:

registration.api.users.user.put
-------------------------------
.. automodule:: registration.api.users.user.put
:members:

registration.api.users.user.delete
----------------------------------
.. automodule:: registration.api.users.user.delete
:members:

registration.api.groups
-----------------------
.. automodule:: registration.api.groups
:members:

registration.api.groups.get
---------------------------
.. automodule:: registration.api.groups.get
:members:

registration.api.groups.group
-----------------------------
.. automodule:: registration.api.groups.group
:members:

registration.api.groups.group.get
---------------------------------
.. automodule:: registration.api.groups.group.get
:members:

registration.api.groups.group.post
----------------------------------
.. automodule:: registration.api.groups.group.post
:members:

registration.api.groups.group.put
---------------------------------
.. automodule:: registration.api.groups.group.put
:members:

registration.api.groups.group.delete
------------------------------------
.. automodule:: registration.api.groups.group.delete
:members:
7 changes: 7 additions & 0 deletions doc/source/developpers/registration/backend.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Registration Backend
====================

registration.Backend.OpenLdap
-----------------------------
.. automodule:: registration.Backend.OpenLdap
:members:
7 changes: 7 additions & 0 deletions doc/source/developpers/registration/datastore.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Registration datastore
======================

registration.datastore.UserInfoAccess
-------------------------------------
.. automodule:: registration.datastore.UserInfoAccess
:members:
7 changes: 7 additions & 0 deletions doc/source/developpers/registration/decorators.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Registration decorators
=======================

registration.decorators
-----------------------
.. automodule:: registration.decorators
:members:
7 changes: 7 additions & 0 deletions doc/source/developpers/registration/exceptions.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Registration exceptions
=======================

registration.exceptions
-----------------------
.. automodule:: registration.exceptions
:members:
13 changes: 13 additions & 0 deletions doc/source/developpers/registration/notification.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Registration notification
=========================

registration.notification
-------------------------
.. automodule:: registration.notification
:members:

registration.notification.MailNotification
------------------------------------------
.. automodule:: registration.notification.MailNotification
:members:

7 changes: 7 additions & 0 deletions doc/source/developpers/registration/registration.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Module Registration
===================

registration
------------
.. automodule:: registration
:members:
7 changes: 7 additions & 0 deletions doc/source/developpers/registration/views.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Registration views
==================

registration.views
------------------
.. automodule:: registration.views
:members:
Loading