Commit Graph

85 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
Benjamin Dauvergne 227c0de8c5 in import_mapping() do not fail on None 2011-10-13 15:43:41 +02:00
Benjamin Dauvergne 4ca053c3ce update pip requirements 2011-10-13 15:42:40 +02:00
Thomas NOËL 6997d1bd08 init.d/mandaye example, with gunicorn+gevent wsgi server 2011-10-12 15:19:38 +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
root 431d942318 augment pool size for sqlalchemy connections to 16 2011-10-11 15:41:36 +02:00
Thomas NOËL 805fa2ca20 add wsgi.py 2011-10-11 13:56:17 +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
Thomas NOËL d8ee602783 env may have empty CONTENT_LENGHT and CONTENT_TYPE 2011-10-10 23:10:13 +02:00
Thomas NOËL c97a2e2253 s/sasir/saisir/ 2011-10-10 10:57:44 +02:00
Jérôme Schneider 223ccda4af Improve espace famille connection over the compte citoyen 2011-10-08 00:36:12 +02:00
Jérôme Schneider 1d7dc91cbf Improve Duonet connection to the compte citoyen
* mandaye/configs/biblio_vincennes.py: reuse connection_url
 * mandaye/configs/duonet_vincennes.py: add mapper for the new login
  template
 * mandaye/filters/vincennes.py: add new regexp for Duonet login page
 * mandaye/templates/duonet/login.html: new duonet login page template
2011-10-08 00:15:12 +02:00
Jérôme Schneider b606ca56dd Cleanning README.rst, setup.py and auth/authform.py 2011-10-07 22:56:41 +02:00
Jérôme Schneider ef39fc9602 Replacing BeautifulSoup by lxml.html in the replay method
This should fix the last internal server error on biblio

 * mandaye/auth/authform.py: no more BeautifulSoup
2011-10-07 22:45:07 +02:00
Jérôme Schneider 6f6b8e6fe9 Modify text for Vincennes 2011-10-07 19:35:04 +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 a7b1ae3d8d Fix bad html login page in bilbio 2011-10-07 19:06:14 +02:00
Jérôme Schneider 910f2e5409 Add biblio template for the login page 2011-10-07 19:00:39 +02:00
Jérôme Schneider 11386535fc Models: add a length for the site name 2011-10-07 18:58:29 +02:00
Jérôme Schneider 0e512c81bb Improve biblo login page
The connection to the compte citoyen is now clean
2011-10-07 18:55:40 +02:00
Jérôme Schneider 064f9b64e0 Improve biblio global filter 2011-10-07 16:20:43 +02:00
Jérôme Schneider 58702ce8fa Remove BeautifulSoup from the biblio filters 2011-10-07 15:14:44 +02:00
Jérôme Schneider 5da2b8095e Biblio: add card number in my account 2011-10-07 08:27:17 +02:00
Jérôme Schneider 0363c93baa Fix #717: improve html parsing of this page 2011-10-07 00:09:49 +02:00
Jérôme Schneider f6670fa787 Manage custom association messages 2011-10-07 00:01:11 +02:00
Jérôme Schneider 9616a1947b Removing new association, only associte is usefull now 2011-10-06 19:06:48 +02:00
Jérôme Schneider 8a1015b7bd Add a confirmation pop up for the disassociation 2011-10-06 18:40:12 +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 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 b1a3a93cb5 Don't force espace famille host in the replay 2011-10-05 13:09:11 +02:00
Jérôme Schneider 20c1bfb72d Multi accounts: Add disassociation support 2011-10-04 17:14:39 +02:00
Jérôme Schneider d6632c72bf Multi accounts: change account now working 2011-10-04 15:11:17 +02:00
Jérôme Schneider 0213af04d7 Remove replay_func hack in authform and add site name into authform
* mandaye/auth/authform.py: remove replay_func hack and site_name is
 now an attribute of teh class
 * mandaye/auth/espacefamille.py: move replay function for espace famille from
 filters
 * mandaye/configs/*: removing useless site_name
 * mandaye/filters/vincennes.py: moving replay function to auth/espacefamille.py
 * mandaye/templates/biblio/multicompte.html: change ths link which
 change the current user
2011-10-04 14:31:03 +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 141ac53ded Fix biblio html filter for https 2011-09-30 19:44:32 +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 87f1d0d483 Begin multi account support and cleanin biblio filters 2011-09-29 19:40:15 +02: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 ea9c12452c Fix cookie management
* mandaye/http.py: manage only the last set cookie
2011-09-26 18:30:09 +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 a2d5a8a58c Replace connection by connexion 2011-09-23 22:11:34 +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 4c735db3b9 Add replay support for espace famille and fix db models
* mandaye/auth/authform.py: add a hook to change the replay method
 * mandaye/configs/famille_vincennes.py: fix the mapping
 * mandaye/filters/vincennes.py: add a specific replay method for espace
 famille
 * mandaye/models.py: fix site foreign key
2011-09-23 15:00:30 +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 85141684d0 Improve README and finish duonet support
* mandaye/auth/authform.py: update to support duonet replay
 * README.rst: improve the quick launch text
 * mandaye/filters/vincennes.py: filters for Duonet
 * mandaye/models.py: add birthdate for duonet
 * mandayectl: improve the cmd line management
2011-09-23 08:49:32 +02:00