[Zope-CMF] XMLRPC + CMF = NoGo.

Tres Seaver tseaver@digicool.com
Fri, 13 Apr 2001 09:01:22 -0400 (EDT)


On 13 Apr 2001, Bill Anderson wrote:

> On 12 Apr 2001 21:35:00 -0400, Tres Seaver wrote:
> > Bill Anderson wrote:
> > > 
> > > Well, I've been able to track my xml-rpc issues to the CMF. ONLY in CMF
> > > do I get errors about /RPC2 not found. If I use a simple xml-rpc script
> > > to see the front page, I get a not ofund error (RPC2). If I try this on
> > > any non-CMF part of a site, it works fine.
> > > 
> > > I'm off to work, so I'll have to look into this mor elater, but I
> > > thought I'd give a heads up.
> > 
> > Bill, 
> > 
> > I'm afraid I missed whatever context you may have supplied earlier
> > on this problem.  Can you recap, please?
> 
> 
> Well, just to test out the lowest denominator, I have a zope server that
> has the following stats:
> /
> |-index_html
> |
> L/folder
> | L/index_html
> |
> L/cmf_instance
>   L/index_html (ok, it's actually in the portal_skins tree ;)
> 
> Using a simple xml-rpc from python to get the output of
> index_html (thus eliminating scripting issues fo rthe most
> part),
> 
> server=xmlrpclib.connect('http://www.my.site/')
> server.index_html()   # works
> 
> server=xmlrpclib.connect('http://www.my.site/folder')
> server.index_html()   # works
> 
> server=xmlrpclib.connect('http://www.my.site/cmf_instance')
> server.index_html()   # fails

OK, I can see why that might be;  the XML-RPC request doesn't
have the 'portal_skins' cookie, for one thing.

> I get a NotFound error (Traceback essentially useless, of
> course), complaining about not being able to find "/RPC2".

I don't know of any symbol, 'RPC2', which would be in a stock
Zope;  is this name mentioned by your 'index_html'?

> I haven't tried it with  a big-simple, no dtml method from the
> cmf instance, that was what i was _hoping_ to test out, but I
> got caught up in teaching someone how to skin properly "Yo man,
> slip me some skin..."
> 
> Bill Anderson
> 
> Server: Zope 2.3.1 (src compiled by yours truly)
> Zope 2.0 (yeah, I know ... ;) ) .. actually, this is happening
> on my productions too, which run 1.5.2 ...

Presuming you mean "Python 2.0"

> CMF-1.0

I can't reproduce your case under Python 1.5.2, using the
xmlrpclib.py in $ZOPE_HOME/lib/python, because it doesn't
have a 'connect' method;  other tries (like instantiating
a 'Server' object) haven't been successful, either.

Tres.
-- 
===============================================================
Tres Seaver                                tseaver@digicool.com
Digital Creations     "Zope Dealers"       http://www.zope.org