Commit Graph

35 Commits

Author SHA1 Message Date
Jérôme Schneider 30a9290986 dispatch: don't match path case 2015-01-30 15:52:23 +01:00
Jérôme Schneider d7e0fffb12 add option 'scripts' to mapper which allows to load javascripts in header
Closes #6184
2015-01-27 12:19:48 +01:00
Jérôme Schneider 9bc2c9eb4b on_request: allow hook to return a reponse
Closes #6130
2015-01-27 11:57:18 +01:00
Jérôme Schneider 58c6209c8f add option is_user_locally_logged_in to mappers
Closes #5832
2014-11-10 10:33:43 +01:00
Jérôme Schneider b4f1da4f97 mandaye: add mandaye.auth in env for mandaye-cam 2014-11-04 11:11:37 +01:00
Jérôme Schneider 85cc82c4e2 dispatcher: use logger instead of print 2014-09-15 10:47:03 +02:00
Jérôme Schneider 9ad5d6f30c toolbar: add disassociate url 2014-08-21 09:14:53 +02:00
Jérôme Schneider b1f097d45d dispatcher: change priori between default mapping and auth mapping 2014-08-13 19:26:15 +02:00
Jérôme Schneider 677b28e5f1 condition: removing old school support 2014-07-09 19:48:09 +02:00
Jérôme Schneider adb200ef81 dispatcher: enable new conditions for on_response and on_request 2014-07-09 19:12:28 +02:00
Jérôme Schneider 02e4ff0d04 dispatcher: improved condition management and force response to be unique
Fixes #716
2014-07-09 14:30:45 +02:00
Jérôme Schneider a674931030 mandaye improved default filters to manage a toolbar
Refs #5048
2014-06-27 14:09:11 +02:00
Jérôme Schneider c28bd31935 mandaye: don't add get query string to a target query 2014-06-02 17:49:50 +02:00
Jérôme Schneider 83d4065f1e mandaye: fix RAW_URI management 2014-05-28 19:58:14 +02:00
Jérôme Schneider dd97443cd0 dispatcher: use raw_uri instead of path_info 2014-05-28 17:48:56 +02:00
Jérôme Schneider de6e5967b5 initial import for branch 0.8
This is a complete rewrite of the configuration system

Fixes #4666
2014-05-21 13:15:40 +02:00
Jérôme Schneider a76ea49459 mandaye/dispatcher.py: catch exceptions when a hook failed 2014-01-10 15:06:19 +01:00
Jerome Schneider 22c69221c1 Fix dispatcher when there is no content-type in response 2012-03-05 11:47:31 +01:00
Jérôme Schneider 65fecdb4d4 Fix content-type detection when content type is follow by ; 2012-03-02 17:37:56 +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 23bc5398f4 Begin content-encoding support 2012-02-27 18:40:50 +01:00
Jérôme Schneider 0f17ccaba2 Fix #1278: Support content-types in on_response filters
* configs/biblio_vincennes.py: use content-types option
 * configs/famille_vincennes.py: use content-types option
 * filters/vincennes.py: remove useless content types tests
 * dispatcher.py: suppport content-types option
2012-02-24 18:21:04 +01:00
Jérôme Schneider 4ce2bcb61b Applying mates fixes
* mandaye/dispatcher.py: fix _parse_mapping when mapping is empty
 * mandaye/filters/vincennes.py: fix serve_template import
2012-02-23 11:37:46 +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 80bce7821c Fix #777 (manage muli paths) and move some messages from the config to
the templates
2011-10-21 19:44:36 +02:00
Jérôme Schneider f5bb3d59cf Disable xtraceback and destroy beaker session on logout
* mandaye/auth/authform.py: fix failed hook messages
 * mandaye/configs/biblio_vincennes.py: destroy beaker session on logout
 * mandaye/configs/famille_vincennes.py: destroy beaker session on logout
 * mandaye/dispatcher.py: fix failed hook messages
 * mandaye/response.py: disable xtraceback
2011-10-20 12:13:35 +02:00
Jérôme Schneider 5d5790880e Replace tab by spaces and add a link to associate a classical biblio
account

* TODO: remove the file
* init.d/mandaye: replace tab by space
* mandaye/auth/authform.py: replace tab by space
* mandaye/configs/biblio_vincennes.py: add a classical biblio link
* mandaye/filters/vincennes.py: add a classical biblio link
* mandaye/templates/biblio/nosso.html: template with the associate link
2011-10-19 12:08:41 +02:00
Benjamin Dauvergne 227c0de8c5 in import_mapping() do not fail on None 2011-10-13 15:43:41 +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 afbf6463a8 Add relative url support for the target in the mapping and add a global
folder for the espace famille mapper

 * auth/authform.py: add the relative url support and _login_ext method
 * auth/espacefamille.py: fix the replay post which now using a
 configurable form action
 * configs/biblio_vincennes.py: use relative url and use a variable for
 the global url
 * configs/duonet_vincennes.py: use relative url
 * configs/famille_vincennes.py: use relative url
2011-10-06 17:50:40 +02:00
Jérôme Schneider 6472634a00 Add redirect support in the mapping 2011-09-23 18:34:55 +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 18c3d7b719 do not fail on missing mapping 2011-09-19 11:39:12 +02:00
Jérôme Schneider e6fc815ff5 Finish mono account management for biblio, improve mapping management
and fix model

 * mandaye/__init__.py: load sqlachemy session
 * mandaye/auth/authform.py: add account management
 * mandaye/auth/vincennes.py: add account management
 * mandaye/configs/biblio_vincennes.py: add vincennes conf
 * mandaye/dispatcher.py; improve mapping management
2011-09-16 19:13:17 +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