Commit Graph

32 Commits

Author SHA1 Message Date
Benjamin Dauvergne 34d9bfad93 add better formatting of exceptions, use xtraceback package
* use xtraceback to format exceptions
 * log exceptions and environment
 *
2011-10-13 15:43:46 +02:00
root 2208107ccd wrap request handling so that it .rollback() on exception and commit() on success
also properly close the current sql_sesion at the end.
2011-10-11 15:41:59 +02:00
Thomas NOËL d8ee602783 env may have empty CONTENT_LENGHT and CONTENT_TYPE 2011-10-10 23:10:13 +02:00
Jérôme Schneider 810e36b9ee Add multi accounts on the associate page 2011-10-07 19:11:40 +02:00
Jérôme Schneider ed61949fbc Duonet multi accounts now working 2011-10-06 10:57:51 +02:00
Jérôme Schneider df69fe6711 Fix multi accounts association and begin duonet multi accounts 2011-10-05 19:10:41 +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 9c09e543ff Add an option to force the http scheme 2011-09-30 19:27:23 +02:00
Jerome Schneider 89a800b183 Disable gevent dns and add famille test mapping 2011-09-30 16:52:14 +00:00
Jérôme Schneider d9fe22da99 Fix #707: SimpleCookie add quotes in the cookies
So I replace SimpleCookie by BaseCookie
2011-09-29 15:39:03 +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 dc632a3d46 Cleaning server.py 2011-09-26 16:45:40 +02:00
Jérôme Schneider 5a44802138 Fix biblio association html 2011-09-26 16:42:39 +02:00
Jérôme Schneider 1bafd752d9 Fix url formatting and the login search in db 2011-09-23 10:41:24 +02:00
Jérôme Schneider b316506ed2 Improve authform and begin duonet support
* mandaye/auth/authform.py: add action auto detection
 * mandaye/configs/duonet_vincennes.py: begin duonet mapping
 * mandaye/server.py: improve cookiejar support in get_response
 * mandaye/templates/duonet_associate.html: the associate template
 * mandaye/filters/vincennes.py: begin duonet support
2011-09-22 12:31:46 +02:00
Jérôme Schneider 133a9a931f Improve pwd replay and debug support 2011-09-21 19:34:02 +02:00
Jérôme Schneider 4ad9e6c9e7 Harmonize get response, improve HTTPRequest and cleaning association 2011-09-19 19:18:32 +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
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 2b114abe74 Fix hook call and cleaning
* mandaye/dispatchers/default.py: fix hook call
2011-09-06 19:35:15 +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 8d627c97c5 Fix cookie maangement 2011-08-26 19:41:01 +02:00
Jérôme Schneider 56531f1a5b Add filters support support for the cookies and the headers
* mandaye/server.py: cleaning and debuging
 * mandaye/filters/header.py: fix buges and use the new HTTPHeader class
 * mandaye/headers.py: create HTTPHeader class wich manage http header
 for Mandaye usages
2011-08-25 19:13:42 +02:00
Jérôme Schneider a762324174 Working version 2011-08-24 19:23:26 +02:00
Jérôme Schneider 100ca8fea0 Mandaye now working for a basic reverse proxy
* mandaye/dispatchers/default.py; fix target
 * mandaye/handlers/default.py: add urllib2 handlers
 * mandaye/response.py: fix headers
 * mandaye/server.py: fix the server
 * pocs/poc1.py: revert to 6e75df935d
2011-08-10 18:15: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