Folks, 

I'm trying to create a "simple" browser view method e.g. @@view/method that
I can call via XML-RPC, but I notice browser views don't seem to possess the
Zope 2 "goodness" that "regular" objects/methods do.

E.g. If I use the XML-RPC client for Mac and specify an endpoint URI of
http://localhost:8080/Plone and a method of ZopeTime I get a response.

But if I specify  http://localhost:8080/Plone/ as the endpoint URI and
@@view as the method, I get no response.

I found this post from this list which seems to indicate that browser views
should provide XML-RPC:

http://www.mail-archive.com/[email protected]/msg01169.html

But mine doesn't. Curiously, if I try @@plone I at least get this:

Unexpected Zope exception: Traceback (most recent call last): File
"/Users/aclark/Developer/sanford.api/parts/zope2/lib/python/ZPublisher/xmlrp
c.py", line 133, in setBody body = xmlrpclib.dumps( File
"/Users/aclark/Developer/python-buildout/parts/opt/lib/python2.4/xmlrpclib.p
y", line 1029, in dumps data = m.dumps(params) File
"/Users/aclark/Developer/python-buildout/parts/opt/lib/python2.4/xmlrpclib.p
y", line 603, in dumps dump(v, write) File
"/Users/aclark/Developer/python-buildout/parts/opt/lib/python2.4/xmlrpclib.p
y", line 613, in __dump raise TypeError, "cannot marshal %s objects" %
type(value) TypeError: cannot marshal objects


Anyone know what's going on here? What do I need to do to make this work?

Thanks,

Alex



-- 
Alex Clark · http://aclark.net
Author ‹ Plone 3.3 Site Administration · http://aclark.net/admin



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

Reply via email to