Re: lxml + mod_python: cannot unmarshal code objects in restricted execution mode

2007-09-14 Thread Dmitri Fedoruk
On Sep 14, 3:04 am, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > Try forcing mod_python to run your code in the first interpreter > instance created by Python. > PythonInterpreter main_interpreter Thank you very much, that solved the problem! A more detailed discussion can also be found in the l

Re: lxml + mod_python: cannot unmarshal code objects in restricted execution mode

2007-09-13 Thread Graham Dumpleton
On Sep 13, 11:05 pm, Dmitri Fedoruk <[EMAIL PROTECTED]> wrote: > Hello everyone, > > I'm developing a mod_python application that is based on XML\XSLT > transforming. > > I used 4Suite libraries for that, but as the speed was unacceptable > for me, I switched to lxml. Everything became much easier

Re: lxml + mod_python: cannot unmarshal code objects in restricted execution mode

2007-09-13 Thread Dmitri Fedoruk
On Sep 13, 5:05 pm, Dmitri Fedoruk <[EMAIL PROTECTED]> wrote: > So, my configuration is the following: > Python 2.5.1 > Server version: Apache/2.2.4 (FreeBSD) > mod_python-3.3.1 update: lxml-1.3.4 libxslt-1.1.21 libxml2-2.6.29 -- http://mail.python.org/mailman/listinfo/python-list

Re: lxml + mod_python: cannot unmarshal code objects in restricted execution mode

2007-09-13 Thread Stefan Behnel
Dmitri Fedoruk wrote: > def extApplyXslt(xslt, data, logger ): > try: > strXslt = urllib2.urlopen(xslt).read() > # i have to read the xslt url to the python string > except urllib2.HTTPError, e: >... > except urllib2.URLError, e: >. >

lxml + mod_python: cannot unmarshal code objects in restricted execution mode

2007-09-13 Thread Dmitri Fedoruk
Hello everyone, I'm developing a mod_python application that is based on XML\XSLT transforming. I used 4Suite libraries for that, but as the speed was unacceptable for me, I switched to lxml. Everything became much easier and 10 times faster, but I've encountered the subject problem. In brief -