Commit Graph

37 Commits

Author SHA1 Message Date
Jérôme Schneider 9003c07ecc Centralized config.py into mandaye core
All the configuration is now in ini files.
You could have 3 levels of ini files :
 * default mandaye core ini file
 * default mandaye project ini file
 * optional ini file loading with --config option

Closes #5495
2014-10-10 15:50:13 +02:00
Jérôme Schneider b5f19ef9c7 config: allow external application to modify config 2013-05-22 18:46:50 +02:00
Jérôme Schneider e6211639e3 backend: fixes backends import and sql backend
Migrate from sqlalchemy-migrate to alembic

 * mandaye/auth/authform.py: fix backend sql call
 * mandaye/backends/sql.py: fixes
 * mandaye/backends/default.py: fix backend call
 * mandaye/config.py: new backend call
2013-05-22 11:40:48 +02:00
Jérôme Schneider 3cf7195297 Merge branch 'saml2_sp'
Integrate saml2 into Mandaye and merge branche 'sam2_sp'
2013-05-22 00:10:11 +02:00
Jérôme Schneider e0ea574b04 Fixes #710: manage storage backends and implement sql one
WARNING: this commit brake sql migrations
2013-05-21 11:59:19 +02:00
Mikaël Ates f2b79322c9 Add saml2 configuration to config file. 2013-04-25 10:44:17 +02:00
Jérôme Schneider eeec3e6b06 Add session timeout and improve famille_vincennes auto login
* mandaye/config.py: enable beaker session timeout
 * mandaye/configs/famille_vincennes.py: only test auto connection on
 html pages
2012-07-04 19:03:39 +02:00
Jérôme Schneider 1ab6039b56 Put session into /var/tmp by default
* mandaye/config.py: move beaker directory to /var/tmp
2012-04-17 12:22:51 +02:00
Jerome Schneider f3325469de Improve config.py mapper exmaple
* mandaye/config.py: use port 8000 and add content-types argument
2012-03-05 15:49:32 +01:00
Jérôme Schneider a4ad31583c Fix #718: manage long trace and send text email not html
* mandaye/config.py: add use_long_trace option
 * mandaye/response.py: add a function to generate text error and add
 xtraceback support
2012-03-02 17:19:58 +01:00
Jérôme Schneider ae61b7a47b Fix #946: Mandaye could now decompress http response
* config.py: add option auto_decompress which allow mandaye to
decompress response
 * dispatcher.py: support decompression
 * http.py: add decompress method in Response class
2012-03-01 19:35:44 +01:00
Jérôme Schneider d33bb4143e Fix #1265: manage log rotation
* mandaye/config.py: add rotation options
 * mandaye/log.py: use TimedRotatingFileHandler
 * mandaye_server.py: cosmetic
2012-02-17 14:47:14 +01:00
Jérôme Schneider 0aaa601bbb Improve logging system: add a uuid and use a specific Mandaye logger
* README.rst: typo
 * mandaye/__init__.py: move logging part to log.py
 * mandaye/auth/authform.py: replace logging by mandaye logger and
   check if pycrpto is installed
 * mandaye/auth/vincennes.py: replace logging by mandaye logger
 * mandaye/config.py: improve comment on encryption
 * mandaye/dispatcher.py: replace logging by mandaye logger and
   add new debug
 * mandaye/emails.py: replace logging by mandaye logger
 * mandaye/filters/vincennes.py: replace logging by mandaye logger
 * mandaye/http.py: replace logging by mandaye logger
 * mandaye/log.py: new file to manage logging
 * mandaye/response.py: replace logging by mandaye logger and
   add debug informations
 * mandaye/server.py: replace logging by mandaye logger and
    add an uuid for the log
 * mandaye_admin.py: replace logging by mandaye logger
 * mandaye_server.py: replace logging by mandaye logger and fix Python
   path
2011-12-23 11:17:15 +01:00
Jérôme Schneider 417b837019 Fix #1154: replace gevent by gunicorn, improve README.txt and
create a mandaye_admin.py script
2011-12-21 18:28:36 +01:00
Jérôme Schneider bbb03f884a Manage passwords encryption
* mandaye/auth/authform.py: add a method to crypt and decrypt password
 and split associate_submit method
 * mandaye/config.py: add options for encryption
2011-12-07 18:49:50 +01:00
Jérôme Schneider a39ebe8cf8 Enable lock for beaker, fix famille mapper and add debug
* mandaye/auth/authform.py: add debug and improve association
 * mandaye/auth/vincennes.py: improve debug messages
 * mandaye/config.py: enable lock
 * mandaye/configs/famille_vincennes.py: fix associate_submit (missing
   connection_url value) and exclude associate from auto login
2011-11-24 15:19:04 +01:00
Jérôme Schneider 78c36fc9f9 Begin auto connection support and code cleaning
* mandaye/auth/vincennes.py: add auto connection method
 * mandaye/config.py; disable email notification by default
 * mandaye/configs/biblio_vincennes.py: add auto connection support
 * mandaye/filters/vincennes.py: code cleaning
 * mandaye/http.py: improve docstrings
 * mandayectl; improve error messages
2011-11-16 19:08:02 +01:00
Jérôme Schneider 1662b94980 Improve logging management: add file handler and allow to disable syslog
* mandaye/__init__.py: add file handler and allow to disable syslog
 * mandaye/config.py: add syslog and log_file options
 * mandaye/response.py: catch email exceptions
2011-11-04 22:47:23 +01:00
Jérôme Schneider 0a0b64c99e Fix #703: support send tarceback by email and fix filters
* config.py: add arguments for the email
 * emails.py: new Email class to send email
 * filters/vincennes.py: test if the content_type variable exist
 * response.py: send an email if we have a 500 error
2011-11-04 19:51:02 +01:00
Jérôme Schneider 0639879e0b Fix #683 (token timeout) and fix sqlalchemy support for sqlite
* mandaye/auth/vincennes.py: add token expiration support
 * mandaye/config.py: add token timeout option
 * mandaye/db.py: add sqlite support
2011-10-20 18:57:32 +02:00
Thomas NOËL 75a7d097cf correctly use sqlalchemy session
* mandaye/__init__.py: remove sql inits
* mandaye/db.py: sql inits, using sqlalchemy.orm.scoped_session()
* mandaye/dispatcher.py: mappings should be strings (as in Django
  settings)
2011-10-11 13:50:45 +02:00
Jérôme Schneider 71cdd79c0e Add static management and improving multi account support
* mandaye/auth/authform.py: create a method to login external users
 * mandaye/config.py: add static root directory
 * mandaye/filters/vincennes.py: improve multi accounts
 * mandaye/server.py: add support for static folder
 * mandaye/templates/biblio/multicompte.html: improve multi accounts
 interface
2011-10-05 15:51:24 +02:00
Jérôme Schneider fc8c1c29da Add multi association accounts support
* mandaye/auth/authform.py; add multi accounts support
 * mandaye/auth/vincennes.py: move login session into authform
 * mandaye/configs/biblio_vincennes.py: add multi accounts support
 * mandaye/filters/vincennes.py: add multi accounts support
 * mandaye/templates/biblio/multicompte.html: new template which add
 multi accounts links into 'my account' box
 * mandaye/models.py: add last connection support
2011-10-03 19:26:58 +02:00
Jérôme Schneider a9f1e151d6 Logging: enable syslog and add some messages (#706) 2011-09-28 16:08:26 +02:00
Jérôme Schneider 4ad9e6c9e7 Harmonize get response, improve HTTPRequest and cleaning association 2011-09-19 19:18:32 +02:00
Benjamin Dauvergne 038d689083 do not fail if local_config is missing 2011-09-19 11:39:12 +02:00
Jérôme Schneider 3641c4c935 Fix config.py 2011-09-19 11:35:48 +02:00
Jérôme Schneider 7285c43a26 Redisgn mapping to be more fexible, use only one dispatcher and begin
password / site association

* auth/authform.py: class to allow auth form
* config.py: new configuration
* dispatchers/default.py -> dispatcher.py: move default dispatcher
* server.py: change to support the new conf file
* templates/associate.html: html template to associate an account
2011-09-13 19:13:14 +02:00
Jérôme Schneider 6d64b0d2f9 Fix setup.py, fix _404 response and cleaning config file
* mandaye/__init__.py: add mandaye version
* mandaye/config.py: remove Vincennes configuration from the main config
* mandaye/response.py: fix _404 logging
* mandaye/server.py: fix _404 call
* setup.py: rename find_packages
2011-09-12 19:04:36 +02:00
Jérôme Schneider 516df263c4 Add a debug mode and add regexp support for the mapping
* mandaye/config.py: add a generic filter for biblio
 * mandaye/dispatchers/auth.py: improve error management
 * mandaye/dispatchers/default.py: improve mapping support
 * mandaye/filters/vincennes.py: improve error management
 * mandaye/response.py: add debug support and improve the responses
 * mandaye/server.py: improve bad gateway suppport
2011-09-12 16:33:29 +02:00
Jérôme Schneider 7afc5c247d New dispatcher for form authentification, improve mapping support,
add templates support and big cleaning

 * TODO: new file
 * mandaye/config.py: change next_url for biblio mapping and add local
 configuration support
 * mandaye/dispatchers/auth.py: rename authentification dispatcher
 * mandaye/dispatchers/default.py: improve the default dispatcher
 * mandaye/dispatchers/vincennes.py: login through the compte citoyen
 * mandaye/filters/vincennes.py: add a login biblio html filter
 * mandaye/http.py: fix HTTPResponse
 * mandaye/response.py: improve the responses
 * mandaye/server.py: cleaning
 * mandaye/templates/response.html: html template for the responses
 * setup.py: add breaker, sqlalchemy and mako
2011-09-09 17:59:22 +02:00
Jérôme Schneider fff050a09b Impletation of the new mapping 2011-09-06 19:11:30 +02:00
Jérôme Schneider a3e3adba46 Working revision: Add mapping configuration and a begin to supoort
session
2011-09-02 19:28:49 +02:00
Jérôme Schneider df2bb7d0e6 Password replay works for biblio vincennes 2011-09-01 18:54:15 +02:00
Jérôme Schneider 4cf4f02350 Begin biblio support 2011-08-31 19:54:24 +02:00
Jérôme Schneider a762324174 Working version 2011-08-24 19:23:26 +02:00
Jérôme Schneider 8ceb28cae8 Begin Mandaye true project based on poc1.py
* COPYING: Mandaye's license
 * README.rst: begin of a readme
 * mandaye.py: script to launch the project
 * mandaye/: mandaye python module
 * mandaye/config.py: frst version of the Mandaye configuration file
 * mandaye/dispatchers/default.py: begin a draft of the default dispatcher
 * mandaye/response.py: mandaye http responses
 * mandaye/server.py: mandaye server based on gevent wsgi server
 * mandaye/utils.py: mandaye utils, only URlInfo at the moment
 * mandaye/filters: I need to do that :)
 * mandaye/handlers: todo
 * setup.py: first version of the installer using setuptools

Happy holidays guys ;)
2011-08-04 19:28:16 +02:00