From 34676a424440837f8da128bfb49b7b1b963e5a0c Mon Sep 17 00:00:00 2001 From: Matthias Jahn Date: Tue, 1 Jan 2013 22:56:23 +0100 Subject: [PATCH 4/4] add some infos to readme file --- README | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/README b/README index 3c760d3..463772b 100644 --- a/README +++ b/README @@ -1 +1,32 @@ +install package dependencies +for debian/ubuntu: + apt-get install python-pylons python-yaml python-repoze.who-plugins python-repoze.who python-paste python-pam python-authkit libjs-mootools + +1) for local testing +"export PYTHONPATH=[PATH to SAMBA4]/lib/python2.7/" +(for example "export PYTHONPATH=/usr/local/samba/lib/python2.7/site-packages") +"paster serve development.ini" + +now you could connect to swat2: http://127.0.0.1:5000 + +2) for use within SAMBA +change the line in swat/__init__.py according to your needs.: + "wsgi_app = loadapp('config:swat2.ini', relative_to='/usr/local/samba/etc')" + +build an install the app: +"./setup build" +"./setup install" + +create a config file swat2.ini. for example: +"cd /usr/local/samba/etc" +"paster make-config swat swat2.ini" + +modify the values withing the swat2.ini as you need. + +enable swat2 in samba smb.conf [global] "server services = +web". + +3) for use in Apache with mod_wsgi +-to be written- + + See http://wiki.samba.org/index.php/SWAT2 for more information on setting up SWAT2. -- 1.7.9.5