[Zope] Problems with creating a ZClass that inherits the ZImage base class
Adrian Jones
adrian_jones@shaw.ca
Sat, 21 Jun 2003 14:54:24 -0700
This is a multi-part message in MIME format.
--Boundary_(ID_wCF7ZODhmBPrXEIbQfBKNQ)
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
If someone can help me, that would be great. I'm trying to create a new
ZClass that is essentially a ZImage object that is catalog-aware. In the
creation of the ZClass I have listed Catalog-aware and then ZImage as
inherited base classes. The problem is when I try to create a new
instance of this new ZClass. I created a form to be accessed by the
constructor which includes id, title, file, and some other variables
(included in the propertysheet), but after entering values into the
form, and trying to create the object, the only variables the object
gets are the ZImage built-in variables (i.e. content-type, width,
height), and the content-type always appears as text/plain instead of
image/jpeg or related.
I am using the following code in my constructor (the ZClass is called
iWorld_Entry)
<dtml-with "iWorld_Entry.createInObjectManager(REQUEST['id'], REQUEST)">
<dtml-call
"propertysheets.iWorldProps.manage_editProperties(REQUEST)">
</dtml-with>
If anyone has any ideas that would be wonderful. Thanks.
Adrian
--Boundary_(ID_wCF7ZODhmBPrXEIbQfBKNQ)
Content-type: text/html; charset=us-ascii
Content-transfer-encoding: 7BIT
<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 10 (filtered)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:PMingLiU;
panose-1:2 2 3 0 0 0 0 0 0 0;}
@font-face
{font-family:"\@PMingLiU";
panose-1:2 2 3 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
span.EmailStyle17
{font-family:Arial;
color:windowtext;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>If someone can help me, that would be great. I’m
trying to create a new ZClass that is essentially a ZImage object that is
catalog-aware. In the creation of the ZClass I have listed Catalog-aware and
then ZImage as inherited base classes. The problem is when I try to create a
new instance of this new ZClass. I created a form to be accessed by the
constructor which includes id, title, file, and some other variables (included
in the propertysheet), but after entering values into the form, and trying to
create the object, the only variables the object gets are the ZImage built-in
variables (i.e. content-type, width, height), and the content-type always
appears as text/plain instead of image/jpeg or related.</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I am using the following code in my constructor (the ZClass
is called iWorld_Entry)</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><dtml-with "iWorld_Entry.createInObjectManager(REQUEST['id'],
REQUEST)"></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> <dtml-call "propertysheets.iWorldProps.manage_editProperties(REQUEST)"></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'></dtml-with></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>If anyone has any ideas that would be wonderful. Thanks.</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Adrian</span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> </span></font></p>
</div>
</body>
</html>
--Boundary_(ID_wCF7ZODhmBPrXEIbQfBKNQ)--