zopexmlmethods-users Mailing List for Zope XML Methods (Page 2)
Brought to you by:
arielpartners,
philikon
You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
(12) |
May
(4) |
Jun
(5) |
Jul
|
Aug
(3) |
Sep
|
Oct
|
Nov
|
Dec
(1) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
(2) |
Dec
|
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
|
From: M K <mat...@ya...> - 2003-04-28 16:26:06
|
Ever since this wonderful product has been released, I have been playing with it, and have come to a bump in the road that I simply can't get over. Here is the basic problem, let's say I have a folder called "forest" and I am populating "Forest" with uploaded files (or Add --> File in the ZMI). Works fine, so cool -- I can FTP these trees into my forest and each renders beautifully with the magic of a modular XML transformer. OK, so it works fine _if_ the XML files are under 64Kbytes. If I try to process a freshly uploaded file, it hangs and eventually spits out "EOF reached" in the zope stupid log. As if this wasn't strange enough... It continues -- so I 'modify' the OFS fileEdit.dtml page to allow me to directly edit the text of the XML file (it won't normally display if the text is >= 64K). So I make absolutely NO changes whatsoever to the XML on the screen and click "Save Changes". If I slap my modularxform at the end of the URL, the transform works. So, I am unsure of where the problem lies -- I have been trying different things in the Zope code (leaving the XML methods untouched). Any thoughts? --------------------------------- Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. |
From: Craeg S. <cs...@ar...> - 2003-04-25 22:48:14
|
One possibility is that you have two different installations of python. 4Suite might be installed in one, but not the other. Unfortunately, this is easy to do, because Zope tends to install its own version of Python, and it requires version 2.1.3 (for example, most Linux systems come with Python 2.2 already installed and in the default path) The basic requirement is: you must use a single Python 2.1.3 installation to: - start zope - install pyxml and 4suite into - run the tests Let me know if these helps, otherwise we can try the next step. --Craeg > Dear all, > > I have downloaded and installed ZopeXMLMethods. Latest 4Suite was already installed. > I ran the testsuite: no problems, 43 tests OK, but when I follow the tutorial and make the XSLT method Zope complains that there is no XSLT processor available. How come? > > cheers, > > peter |
From: Craeg S. <cs...@ar...> - 2003-04-25 22:30:14
|
Two things to try: 1) go through the TUTORIAL step by step and make sure that the installation is sound. If the very first example doesn't work, either the TUTORIAL is not clear enough (documentation bug) or your installation is not setup correctly. 2) Try executing the tests. If you have ZopeTestCase installed, you can run the test suite and that will exercise pretty much everything. Let me know if you need help setting up the test suite. --Craeg > Craeg, > > > Installing PyXML-0.8.2 doesn't help. It still exits to the nearest > index_html when I try to add an xslt-method. > > Henny |
From: peter v. h. <pe...@va...> - 2003-04-24 21:55:19
|
Dear all, please disregard my previous message. I have figured out what went wrong. Things run ok now. cheers, peter |
From: peter v. h. <pe...@va...> - 2003-04-24 10:59:41
|
Dear all, I have downloaded and installed ZopeXMLMethods. Latest 4Suite was already installed. I ran the testsuite: no problems, 43 tests OK, but when I follow the tutorial and make the XSLT method Zope complains that there is no XSLT processor available. How come? cheers, peter |
From: Henny v. d. L. <li...@in...> - 2003-04-23 00:40:51
|
Craeg, Installing PyXML-0.8.2 doesn't help. It still exits to the nearest index_html when I try to add an xslt-method. Henny |
From: Craeg K S. <cs...@ar...> - 2003-04-14 02:37:54
|
Yes, this is a royal pain. I can't WAIT until Zope 2.7 is released with its support/requirement for Python 2.2 Definately it is the PyXML issue. There are serious problems with 0.8.1 PyXML 0.8.2 is fairly easy to install, even from source. Assuming Python is on your path: cd c:\pyxml-0.8.2 python setup.py build python setup.py install If python is *not* on your path, it would be something like c:\zope\bin\python setup.py build c:\zope\bin\python setup.py install That should do it. If it doesn't, we can try more extensive debugging techniques; please let me know. BTW, did you see our new support mailing list? zop...@li... I am forwarding this message to the list, so that others might benefit from this solution.. --Craeg Henny van der Linde wrote: >Hi Craeg, > >I installed XML-methods with 4suite 1.0a (I already had XM-transform working >with 4suite 0.12 and PyXML 0.8.1). >When I try to add an xmlmethod, without any error message, Zope gets the >nearest index_html instead. > >I have to use Zope 2.5.0. Maybe the problem is that I have still PyXML 0.8.1 >installed. The problem however is that there is no PyXml win distribution >for Python 2.1. > >Can you shed any light? > >thanks, > >Henny van der Linde > > |
From: Craeg S. <cs...@ar...> - 2003-04-08 19:31:45
|
I am sending this to the ZopeXmlMethods-user list, in hopes others may find it useful. --Craeg >> Expéditeur d'origine: Craeg Strong tr...@ar...) >> Date: 04/08/03 14:06 >> >> Hello: >> >> Have you tried >> creating an object on the fly? >> Why don't you try creating a DTMLMethod or DTMLDocument, >> pass it your string, and use it for XSLTMethod. >> It is only a line or two of python code. See the >> examples of creating objects from strings >> in Generators.py >> >> Alternatively, >> As a hack, you could try to duplicate what >> XSLTMethod does in its transform() method, >> because ultimately it is operating on >> strings any way... >> >> HTH, >> >> --Craeg >> >> > Craeg, >> > > > If you have a moment -- >> > >> > I have been trying to post this to SF, but it has been down all day >> > today. I was wondering if you could shine some light on a subject for me. >> > I am trying to use an XSLT Method to render HTML (from XML) on the fly. >> > >> > The syntax for doing this looks like: <dtml-var >> > expr="myobject.myxsltmethod(this(), REQUEST)"> >> > >> > It seems that the XSLT Methods will only go after real objects in Zope. I >> > would like to have users copy-and-paste XML code into a textarea box, click >> > "submit" and have it convert the code into HTML (there are concepts I would >> > like to build on that as well). >> > >> > Is there anyway to call a myxsltmethod against a non-object (ex. data from >> > the textarea of a form)? I really appreciate and value your help. >> > >> > Thanks a lot - Matt |