Skip to content. | Skip to navigation

Personal tools


You are here: Home / Members / jhb / does deliverance deliver?

does deliverance deliver?

by Jörg Baach last modified Feb 10, 2010 07:14 PM
Testing deliverance

Failed attempts

First step is to create the deliverance setup. Doing it as tells me fails however. I get some problems with compiling lxml. Great:

gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC \
-I/home/joerg/projects/deliverance/DelivTest/build/lxml/build/tmp/libxml2/include/libxml2 \
-I/home/joerg/projects/deliverance/DelivTest/build/lxml/build/tmp/libxml2/include/libxslt \
-I/home/joerg/projects/deliverance/DelivTest/build/lxml/build/tmp/libxml2/include/libexslt \
-I/usr/include/python2.6 -c src/lxml/lxml.etree.c -o build/temp.linux-i686-2.6/src/lxml/lxml.etree.o -w
src/lxml/lxml.etree.c:138:26: error: libxslt/xslt.h: No such file or directory

(lines broken for readability)

Hurray. I try this with python2.6, python2.5, with --no-site-packages and without. Always the same.

Next try: cheeseshop to the rescue: Unpack, go into it, do a

virtualenv -p /usr/bin/python2.5 --no-site-packages

The last one fails as well, but I uncomment the first lines of the buildout.cfg:

extends = 
parts = test coverage docs pylint
unzip = true
develop = .

Now the ./bin/buildout works fine. But now, what? How do I get the delivance proxy. Seems not to work. Mmmh, google to the rescue, maybe?

Successfully getting deliverance to run

Not quite, lxml still makes problems. But it seems that the following works:

virtualenv deliverance
cd deliverance
source bin/activate
easy_install DevAuth
tar -xzf Deliverance-0.3c2.tar.gz
cd Deliverance-0.3c2/
python install
cd ..
rm -Rf Deliverance-0.3c2*
./bin/paster create -t deliverance thehub
Enter host (The host/port to serve on) ['localhost:8000']:
Enter proxy_url (The main site to connect/proxy to) ['http://localhost:8080']: 
Enter proxy_rewrite_links (Rewrite links from sub_host?) ['n']: y
Enter password (The password for the deliverance admin console) ['']: ******
Enter theme_url (A URL to pull the initial theme from (optional)) ['']:

./bin/deliverance-proxy thehub/etc/deliverance.xml

This at least boots up. My original configuration did not work, so I changed the theme/theme.html to:

<html xmlns=""><head></head>
<div id='content' />

and the etc/deliverance.xml to

<proxy path="/">
    <dest href="" />
    <response rewrite-links="1" />

the line

<replace content="children:#content" theme="children:#content" />

seems to trigger some form of replacement. Thats a good start ;-)

Filed under:
Add comment

You can add a comment by filling out the form below. Plain text formatting.

Question: What is 23 plus 19?
Your answer: