grahamperrin wrote:
> 
> b) a suitably simple alternative product/approach
> 

In the more general list a few weeks ago 
http://www.nabble.com/How-to-integrate-external-content-in-Plone-3--tf4703987s6741.html#a13466458
Steve from Vienna suggested : 


> There are better ways to integrate content. First use a Python Script that
> loads the content an shows it again on your server - thats for handling
> the crossdomain-problem. 
> 
> than take a simple ajax javascript to load the external method you created
> with the python script into a div layer or similar. 
> 
> your python code will look something like this: 
> 
> -------------------------------------------- 
> import urllib 
> import cgi 
> from xml.dom import minidom 
> 
> def getData(self, param): 
>     request = self.REQUEST 
>     response = request.RESPONSE 
>     feed = urllib.urlopen (param) 
>     ergebnis = feed.read () 
>     response.setHeader('content-type', 'text/html') 
>     response.setHeader('encoding', 'ISO-8859-1') 
>     response.write(ergebnis) 
> ----------------------------------------------------- 
> 
> put this in a directory named zope/extensions, restart your plone and
> create an external method in your zmi that you can load via javascript
> ajax. 
> 
> i mean, there are better methods for shure as plone is not too fond of
> javascript and you have to deactivate the safe_html transformations as
> well as use the basic editor instead of kupu... but it worked for me. 
> 
> any suggestions for a better solution to import and parse a xml file (my
> kind of data i had to integrate) are highly appreciated. 
> 

I don't know Python, JavaScript or Ajax, but I'm slowly gaining confidence
in ZMI. 

If someone could please walk me through this, or something similar/better,
I'll be most grateful. I'm often listening in  irc://irc.freenode.net/#plone
Plone IRC . 

----

Still, there remains the invitation to update the External Content
(installable) product.

The  http://paste.plone.org/18216 code suggested by Steve is now in the
Plone pastebin  ready for comments and amendments. 

Regards to all
Graham
-- 
View this message in context: 
http://www.nabble.com/External-Content-compatibility-with-Plone-3-tf4889058s20094.html#a14018490
Sent from the Product Developers mailing list archive at Nabble.com.


_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to