Portal remote controller and CPS Image Field
Daniel de la Cuesta <[email protected]> Thu, 26 Nov 2009 11:46:19 +0000 (GMT)
| Newsgroups | gmane.comp.web.zope.cps.devel |
|---|---|
| Message-ID | <[email protected]> |
--===============1942073400==
Content-Type: multipart/alternative; boundary="0-1620914730-1259235979=:66594"
--0-1620914730-1259235979=:66594
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Hi,=0A=0AI am using portal_remote_controler to create documents from a java=
xmlrpc client.=0A=0AHere is my schema:=0A=0A=0A height CPS Int Field =0A=
image CPS Image Field =0A video_index CPS Int Field =0A video_lengt=
h CPS Int Field =0A width CPS Int Field =0A=0A=0AAs you can see, my do=
cument has a CPS Image Field in its schema, I can asign values to all the f=
ields except the CPS Image Field.=0A=0AI am using the Apache WS-XMLRPC for =
the client, I read the image file, I encode it to base64 but when I execute=
the "createDocument" method with that field I get the following exception:=
=0A=0Aorg.apache.xmlrpc.XmlRpcException: Unexpected Zope exception: excepti=
ons.IndexError - list index out of range=0A at org.apache.xmlrpc.client.=
XmlRpcStreamTransport.readResponse(XmlRpcStreamTransport.java:197)=0A=0AAny=
idea?=0A=0AThank you=0A=0A=0A
--0-1620914730-1259235979=:66594
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable
<html><head><style type=3D"text/css"><!-- DIV {margin:0px;} --></style></he=
ad><body><div style=3D"font-family:times new roman,new york,times,serif;fon=
t-size:12pt"><div>Hi,<br><br>I am using portal_remote_controler to create d=
ocuments from a java xmlrpc client.<br><br>Here is my schema:<br><table wid=
th=3D"100%" border=3D"0" cellpadding=3D"2" cellspacing=3D"0"><tbody><tr cla=
ss=3D"row-hilite"><td valign=3D"top" align=3D"left">=0A <br></td>=0A =
<td valign=3D"top" align=3D"left">=0A <div class=3D"form-label">=0A =
<a href=3D"http://www.informarseessalud.org/sm/portal_schemas/thumb/f_=
_height/manage_workspace">height</a>=0A </div>=0A </td>=0A <td a=
lign=3D"left">=0A <div class=3D"form-item">=0A CPS Int Field=0A=
</div>=0A </td>=0A </tr>=0A <tr class=3D"row-normal">=0A=
<td valign=3D"top" align=3D"left">=0A <input name=3D"ids:list" v=
alue=3D"f__image" type=3D"checkbox">=0A </td>=0A <td valign=3D"top" a=
lign=3D"left">=0A <div class=3D"form-label">=0A <a href=3D"http=
://www.informarseessalud.org/sm/portal_schemas/thumb/f__image/manage_worksp=
ace">image</a>=0A </div>=0A </td>=0A <td align=3D"left">=0A =
<div class=3D"form-item">=0A CPS Image Field=0A </div>=0A <=
/td>=0A </tr>=0A <tr class=3D"row-hilite">=0A <td valign=3D"=
top" align=3D"left">=0A <input name=3D"ids:list" value=3D"f__video_ind=
ex" type=3D"checkbox">=0A </td>=0A <td valign=3D"top" align=3D"left">=
=0A <div class=3D"form-label">=0A <a href=3D"http://www.informa=
rseessalud.org/sm/portal_schemas/thumb/f__video_index/manage_workspace">vid=
eo_index</a>=0A </div>=0A </td>=0A <td align=3D"left">=0A <=
div class=3D"form-item">=0A CPS Int Field=0A </div>=0A </td>=
=0A </tr>=0A <tr class=3D"row-normal">=0A <td valign=3D"top"=
align=3D"left">=0A <input name=3D"ids:list" value=3D"f__video_length"=
type=3D"checkbox">=0A </td>=0A <td valign=3D"top" align=3D"left">=0A=
<div class=3D"form-label">=0A <a href=3D"http://www.informarse=
essalud.org/sm/portal_schemas/thumb/f__video_length/manage_workspace">video=
_length</a>=0A </div>=0A </td>=0A <td align=3D"left">=0A <d=
iv class=3D"form-item">=0A CPS Int Field=0A </div>=0A </td>=
=0A </tr>=0A <tr class=3D"row-hilite">=0A <td valign=3D"top"=
align=3D"left">=0A <input name=3D"ids:list" value=3D"f__width" type=
=3D"checkbox">=0A </td>=0A <td valign=3D"top" align=3D"left">=0A =
<div class=3D"form-label">=0A <a href=3D"http://www.informarseessal=
ud.org/sm/portal_schemas/thumb/f__width/manage_workspace">width</a>=0A =
</div>=0A </td>=0A <td align=3D"left">=0A <div class=3D"form-it=
em">=0A CPS Int Field=0A </div></td></tr></tbody></table><br><b=
r><br>As you can see, my document has a CPS Image Field in its schema, I ca=
n asign values to all the fields except the CPS Image Field.<br><br>I am us=
ing the Apache WS-XMLRPC for the client, I read the image file, I encode it=
to base64 but when I execute the "createDocument" method with that field I=
get the following exception:<br><br>org.apache.xmlrpc.XmlRpcException: Une=
xpected Zope exception: exceptions.IndexError - list index out of range<br>=
at org.apache.xmlrpc.client.XmlRpcStreamTransport.readRe=
sponse(XmlRpcStreamTransport.java:197)<br><br>Any idea?<br><br>Thank you<br=
><br><br></div>=0A<!-- cg25.c41.mail.ird.yahoo.com compressed/chunked Thu N=
ov 26 03:37:08 PST 2009 -->=0A</div><br>=0A=0A=0A=0A </body></html>
--0-1620914730-1259235979=:66594--
--===============1942073400==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel
--===============1942073400==--