[prev in list] [next in list] [prev in thread] [next in thread] 

List:       uwsgi
Subject:    [uWSGI] CDATA example on wiki
From:       roberto () unbit ! it (Roberto De Ioris)
Date:       2012-03-22 6:53:10
Message-ID: ba3afa776a61bb8a901b61a28417315c.squirrel () manage ! unbit ! it
[Download RAW message or body]


> Hi,
>
> I just tried the example with CDATA on the wiki
> (http://projects.unbit.it/uwsgi/wiki/Example) :
>
> <uwsgi>
>
>         <processes>4</processes>
>         <master/>
>         <home>bzu</home>
>
>         <socket>:8001</socket>
>         <memory-report/>
>
> <![CDATA[
>
> from bzrlib.transport.http import wsgi
>
> application = wsgi.make_app("/Users/serena/bzr", "/", readonly=False)
>
>
> ]]>
>
> </uwsgi>
>
> But didn't work for me, what I did was something like:
>
> <uwsgi>
>
>         <processes>4</processes>
>         <master/>
>         <home>bzu</home>
>
>         <socket>:8001</socket>
>         <memory-report/>
>
> <eval><![CDATA[
>
> from bzrlib.transport.http import wsgi
>
> application = wsgi.make_app("/Users/serena/bzr", "/", readonly=False)
>
>
> ]]></eval>
>
> </uwsgi>
>
> And worked, I'm not an expert on xml, but It seems to me that the eval
> wrapping is needed here. Is this true?
>

Maybe you have built uWSGI with expat support instead of libxml2 (cdata is
only supported on that).

be sure to install libxml2-dev (or libxml2-devel) and fully rebuild (do a
make clean before) the binary

-- 
Roberto De Ioris
http://unbit.it

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic