From b606ca56dd483983aa4c9bff4cd6a30779f5f847 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Schneider?= Date: Fri, 7 Oct 2011 22:56:41 +0200 Subject: [PATCH] Cleanning README.rst, setup.py and auth/authform.py --- README.rst | 21 +++++++++++++++------ mandaye/auth/authform.py | 2 -- setup.py | 3 ++- 3 files changed, 17 insertions(+), 9 deletions(-) diff --git a/README.rst b/README.rst index ac92d37..a10f428 100644 --- a/README.rst +++ b/README.rst @@ -18,11 +18,16 @@ version 3 for distribution. Features -------- -TODO: rewrite this part +TODO: improve this part - * Dispatcher - * Filters (headers, cookies and data) - * Password replay (form, basic auth, ...) + * Filters: You can filter the request or the response with one or many filters. + You can serve static response in a filter. + There 3 types of filters: + * on_request + * on_response + * reponse + * Dispatcher: This will call the right filters + * Authentification management * Sql and ldap authentification * Authentification through Authentic2 idp (SAML2 and CAS) @@ -57,13 +62,17 @@ You must install the following packages to use Mandaye From sources: http://pypi.python.org/pypi/Mako + * lxml 2.3.1:: + + From sources: http://pypi.python.org/pypi/lxml + You can install all those dependencies quickly using pip:: - pip install gevent poster SQLAlchemy Beaker Mako + pip install gevent poster SQLAlchemy Beaker Mako lxml or easy_install:: - easy_install gevent poster SQLAlchemy Beaker Mako + easy_install gevent poster SQLAlchemy Beaker Mako lxml Quick Start ----------- diff --git a/mandaye/auth/authform.py b/mandaye/auth/authform.py index 4fe9435..5dc4d67 100644 --- a/mandaye/auth/authform.py +++ b/mandaye/auth/authform.py @@ -1,4 +1,3 @@ -import ipdb """ Dispatcher for basic auth form authentifications """ @@ -13,7 +12,6 @@ from cookielib import CookieJar from datetime import datetime from lxml.html import fromstring from urlparse import parse_qs -#from BeautifulSoup import BeautifulSoup from mandaye.models import Site, ExtUser, LocalUser from mandaye.http import HTTPResponse, HTTPHeader, HTTPRequest diff --git a/setup.py b/setup.py index 2e1022f..dee6160 100644 --- a/setup.py +++ b/setup.py @@ -27,6 +27,7 @@ setup(name="mandaye", 'poster>=0.8', 'pycrypto>=2.0', 'sqlalchemy>=0.6', - 'BeautifulSoup' + 'lxml>=2.0', + 'static', ], )