Re: [ZPT] HTTP-XML input into ZPT
Am 02.11.2006, 07:17 Uhr, schrieb norman <[EMAIL PROTECTED]>: Hi, Thanks for the reply, I needed to incorporate this information into an existing ZPT page that has other zope data. As Jeff suggested you can use something like miniDOM to parse the file and create some Python objects (easiest would be a list of dictionaries) which can then be called by the PageTemplate. Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source Python/Zope Consulting and Support ...http://www.egenix.com/ mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ mxODBC, mxDateTime, mxTextTools ...http://python.egenix.com/ Try mxODBC.Zope.DA for Windows, Mac OS, Linux, Solaris, FreeBSD for free! ___ ZPT mailing list ZPT@zope.org http://mail.zope.org/mailman/listinfo/zpt
Re: [ZPT] HTTP-XML input into ZPT
Hi, Thanks for the reply, I needed to incorporate this information into an existing ZPT page that has other zope data.NormanCharlie Clark <[EMAIL PROTECTED]> wrote: Am 01.11.2006, 22:25 Uhr, schrieb norman <[EMAIL PROTECTED]>:> Hello,> What tools are needed to read HTTP-XML generated data from an external > site and display this within a ZPT?> I have an output.xml file on a remote server, like:> > > > 2> Type> TypeDesc> Name> shortdesc> 0> http://www.site.com> 2t.jpg> 2a.jpg> You will need either an XML Parser or XSL(T) although I can't really see the point in then using a ZPT unless you wish to include this information in an existing page.Charlie-- Charlie ClarkeGenix.comProfessional Python Services directly from the Source>>> Python/Zope Consulting and Support ...http://www.egenix.com/>>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/>>> mxODBC, mxDateTime, mxTextTools ...http://python.egenix.com/Try mxODBC.Zope.DA for Windows, Mac OS, Linux, Solaris, FreeBSD for free! Send instant messages to your online friends http://uk.messenger.yahoo.com ___ ZPT mailing list ZPT@zope.org http://mail.zope.org/mailman/listinfo/zpt
Re: [ZPT] HTTP-XML input into ZPT
norman wrote: > Hello, > What tools are needed to read HTTP-XML generated data from an external > site and display this within a ZPT? > > I have an output.xml file on a remote server, like: > > > > > 2 > Type > TypeDesc > Name > shortdesc > 0 > http://www.site.com > 2t.jpg > 2a.jpg > > > > > How to return this in ZPT and format it? > > Cheers > > Norman > > Send instant messages to your online friends > http://uk.messenger.yahoo.com > > > > ___ > ZPT mailing list > ZPT@zope.org > http://mail.zope.org/mailman/listinfo/zpt > There is a Zope product called ParsedXML. Don't know much more than that about it. You could always go the external method route, use xml.dom.minidom to parse it into something python-ish like a dictionary. minidom is pretty straightforward. Regards, Jeff. -- +-+ | Jeffrey D Peterson / Web Programmer \ Information Systems | +-+ | ___ __ _ | | / ___/__ ___ __ / _/__ ___/ /_ _ / /_(_)__ ___ | | / /__/ __/ _ `/ __/ // / _/ // _ \/ _ / // (_-http://mail.zope.org/mailman/listinfo/zpt
Re: [ZPT] HTTP-XML input into ZPT
Am 01.11.2006, 22:25 Uhr, schrieb norman <[EMAIL PROTECTED]>: Hello, What tools are needed to read HTTP-XML generated data from an external site and display this within a ZPT? I have an output.xml file on a remote server, like: 2 Type TypeDesc Name shortdesc 0 http://www.site.com 2t.jpg 2a.jpg You will need either an XML Parser or XSL(T) although I can't really see the point in then using a ZPT unless you wish to include this information in an existing page. Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source Python/Zope Consulting and Support ...http://www.egenix.com/ mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ mxODBC, mxDateTime, mxTextTools ...http://python.egenix.com/ Try mxODBC.Zope.DA for Windows, Mac OS, Linux, Solaris, FreeBSD for free! ___ ZPT mailing list ZPT@zope.org http://mail.zope.org/mailman/listinfo/zpt
[ZPT] HTTP-XML input into ZPT
Hello,What tools are needed to read HTTP-XML generated data from an external site and display this within a ZPT?I have an output.xml file on a remote server, like:2id> Typetype> TypeDesctypedesc> Namename> shortdescshortdesc> 0status> http://www.site.comurl> 2t.jpgthumbnail> 2a.jpgimage1> product>How to return this in ZPT and format it?CheersNorman Send instant messages to your online friends http://uk.messenger.yahoo.com ___ ZPT mailing list ZPT@zope.org http://mail.zope.org/mailman/listinfo/zpt