[Zope] Problems with Photo product

Jens Grewen jens@imeme.net
Fri, 7 Apr 2000 01:28:00 +0200


This is a multi-part message in MIME format.

------=_NextPart_000_0007_01BFA030.832B7180
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I try to convert images to photos (Photo product). Uploaded them via FTP
I found this on the zope site of the photo product:
      =20
       <dtml-in "objectItems('Image')">
         <dtml-with sequence-item>
           <dtml-call "PARENTS[0].manage_delObjects([id(),], REQUEST)">
           <dtml-call =
"PARENTS[0].manage_addProduct['Photo'].manage_addPhoto(PARENTS[0], id(), =
data, title, REQUEST)">
         </dtml-with>
       </dtml-in>
       Image to Photo Conversion Complete!

But i always get the error:
Zope Error
Zope has encountered an error while publishing this resource.=20

Error Type: KeyError
Error Value: __cmp__



-------------------------------------------------------------------------=
-------

Troubleshooting Suggestions

  a.. This resource may be trying to reference a nonexistent object or =
variable __cmp__.=20
  b.. The URL may be incorrect.=20
  c.. The parameters passed to this resource may be incorrect.=20
  d.. A resource that this resource relies on may be encountering an =
error.=20
For more detailed information about the error, please refer to the HTML =
source for this page.=20

If the error persists please contact the site maintainer. Thank you for =
your patience.=20

What could be wrong?

Any suggestions?

Thank you

Jens


------=_NextPart_000_0007_01BFA030.832B7180
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2314.1000" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>I try to convert images to photos =
(Photo product).=20
Uploaded them via FTP</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I found this on the zope site of the =
photo=20
product:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;dtml-in=20
"objectItems('Image')"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;=20
&lt;dtml-with=20
sequence-item&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;=20
&lt;dtml-call "PARENTS[0].manage_delObjects([id(),],=20
REQUEST)"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;=20
&lt;dtml-call =
"PARENTS[0].manage_addProduct['Photo'].manage_addPhoto(PARENTS[0],=20
id(), data, title,=20
REQUEST)"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;/dtml-with&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;/dtml-in&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Image to Photo=20
Conversion Complete!<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>But i always get the =
error:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>
<H2>Zope Error</H2>
<P>Zope has encountered an error while publishing this resource. </P>
<P><STRONG>Error Type: KeyError</STRONG><BR><STRONG>Error Value:=20
__cmp__</STRONG><BR></P>
<HR noShade>

<P>Troubleshooting Suggestions</P>
<UL>
  <LI>This resource may be trying to reference a nonexistent object or =
variable=20
  <STRONG>__cmp__</STRONG>.=20
  <LI>The URL may be incorrect.=20
  <LI>The parameters passed to this resource may be incorrect.=20
  <LI>A resource that this resource relies on may be encountering an =
error.=20
</LI></UL>
<P>For more detailed information about the error, please refer to the =
HTML=20
source for this page. </P>
<P>If the error persists please contact the site maintainer. Thank you =
for your=20
patience. </P>
<P>What could be wrong?</P>
<P>Any suggestions?</P>
<P>Thank you</P>
<P>Jens</P></DIV></FONT></BODY></HTML>

------=_NextPart_000_0007_01BFA030.832B7180--