RE: [Zope] trying to implement server side xsl transform

2007-10-25 Thread Kees de Brabander
I don't fully understand what your are doing, though I am interested in a xsl transformations in Zope. Your dtml must fail, however, because you can't use a dtml-tag within a python expression. I would upload the xml document as a dtml-document and call it just by its name. By the way: what role d

Re: [Zope] trying to implement server side xsl transform

2007-10-25 Thread Martijn Faassen
Hello, Concerning xslt transformations, you might want to consider an easier API to use the XSLT infrastructure in libxml2/libxslt: lxml. See http://codespeak.net/lxml Regards, Martijn ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/li

Re: [Zope] trying to implement server side xsl transform

2007-10-25 Thread Thomas Bennett
On Wednesday 24 October 2007 23:35, Andreas Jung wrote: > --On 24. Oktober 2007 17:01:35 -0400 Thomas Bennett > > <[EMAIL PROTECTED]> wrote: > > Zope Version(Zope 2.10.3-final, python 2.4.3, linux2) > > using zeo storage > > > > I am trying to implement a server side XSL Transform with the

RE: [Zope] trying to implement server side xsl transform

2007-10-25 Thread Kees de Brabander
Interesting. Thanks. cb -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens Martijn Faassen Verzonden: donderdag 25 oktober 2007 14:53 Aan: Kees de Brabander CC: [EMAIL PROTECTED]; zope@zope.org Onderwerp: Re: [Zope] trying to implement server side xsl transf

Re: [Zope] trying to implement server side xsl transform

2007-10-25 Thread Thomas Bennett
Kees, The files are dtml documents and use the xsl file correctly when viewed in IE usually. When viewed in Opera the only result is "XSLT processing failed!" on the browser page. In Firefox the page doesn't show any images and some text is not shown. These files relate to old records oft

Re: [Zope] trying to implement server side xsl transform

2007-10-25 Thread Thomas Bennett
I started trying a solution with libxml2/libxslt which did work in python on the command line but failed through the WEB While browsing the WEB I came across lxml and didn't spend much time on it but now looking at it I think the tools from 4suite still involve less code although there may be so

[Zope] object properties access strangeness

2007-10-25 Thread Jaroslav Lukesh
Hi all, I have problem with Zope 2.9.4, where I cannot get properties from acquired DTML Document in same way as from Image (both are in folder above, both objects with properties defined). It seems as to be a permission problem, but I was look through permissions at whole tree up to zope root

Re: [Zope] object properties access strangeness

2007-10-25 Thread Jonathan
- Original Message - From: "Jaroslav Lukesh" <[EMAIL PROTECTED]> To: Sent: Thursday, October 25, 2007 12:38 PM Subject: [Zope] object properties access strangeness Hi all, I have problem with Zope 2.9.4, where I cannot get properties from acquired DTML Document in same way as from

Re: [Zope] object properties access strangeness

2007-10-25 Thread Jaroslav Lukesh
- Original Message - From: "Jonathan" <[EMAIL PROTECTED]> This is working: (existing property at Image) And this raise error: (existing property at DTML document) Try: Many thanks, it works. Regards, JL. PS: for clarity only, it does not work wi

[Zope] running pg_dump on windows as external method

2007-10-25 Thread Garry Saddington
I am using zope on windows with an external python method to backup my database. I am struggling to run the following command: pg_dump.exe database > file I have tried using os.popen - no luck and also subprocess.Popen. eg: import subprocess         subprocess.Popen(['c:/dir/dir/pg_dump.exe','

[Zope] storing python objects

2007-10-25 Thread David Bear
I need to run an external method to use some python functions that are restricted within zope. I'm thinking an easy way to get the data back would be to just store basic python objects within zodb; tupples, lists, dictionaries. but I've never seen this documented anywhere. Is it possible to store

Re: [Zope] storing python objects

2007-10-25 Thread Jonathan
- Original Message - From: "David Bear" <[EMAIL PROTECTED]> To: "zope" Sent: Thursday, October 25, 2007 6:19 PM Subject: [Zope] storing python objects I need to run an external method to use some python functions that are restricted within zope. I'm thinking an easy way to get the d

Re: [Zope] storing python objects

2007-10-25 Thread Paul Winkler
On Thu, Oct 25, 2007 at 03:19:10PM -0700, David Bear wrote: > but I've never seen this documented anywhere. Is it possible to store > basic python objects directly in zodb? http://www.zope.org/Documentation/Books/ZDG/current/Persistence.stx -- Paul Winkler http://www.slinkp.com

Re: [Zope] running pg_dump on windows as external method

2007-10-25 Thread Andreas Jung
--On 25. Oktober 2007 22:48:42 +0100 Garry Saddington <[EMAIL PROTECTED]> wrote: I am using zope on windows with an external python method to backup my database. I am struggling to run the following command: pg_dump.exe database > file I have tried using os.popen - no luck and also subpro

Re: [Zope] storing python objects

2007-10-25 Thread Andreas Jung
--On 25. Oktober 2007 15:19:10 -0700 David Bear <[EMAIL PROTECTED]> wrote: I need to run an external method to use some python functions that are restricted within zope. I'm thinking an easy way to get the data back would be to just store basic python objects within zodb; tupples, lists, dicti