[Zope] missing properties?
dale w lance
dale.w.lance@mail.sprint.com
Thu, 16 Sep 1999 09:56:26 -0500
--openmail-part-13d2180c-00000001
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="BDY.TXT"
Excuse my ignorance, as I am new to this whole thing.
I am trying to setup, as an example, an "image with description" object.
I followed the zClass tutorial as a guide. I used image as my base class
and added a property 'description' of type text to the MyImage_info propertysheet.
Everything seems to go well until I try to make an instance in a folder.I get
an error. Of course when I see the Form it makes sense, since the form just
gives an id field but not the familiar image file input box. The form (MyImage_addForm)
has been created as if this is a simple object with just an id.
I tried copying the form from an image add screen and that got me further.(see MyImage_addForm2)
but the properties get lost. Have I missed something? How do I see the other properties
or at least add them to my class?
Code>>
MyImage_addForm
<HTML>
<HEAD><TITLE>Add MyImage</TITLE></HEAD>
<BODY BGCOLOR="#FFFFFF" LINK="#000099" VLINK="#555555">
<H2>Add MyImage</H2>
<form action="MyImage_add"><table>
<tr><th>Id</th>
<td><input type=text name=id></td>
</tr>
<tr><td></td><td><input type=submit value=" Add "></td></tr>
</table></form>
</body></html>
MyImage_addForm2
<HTML>
<HEAD><TITLE>Add MyImage</TITLE></HEAD>
<BODY BGCOLOR="#FFFFFF" LINK="#000099" VLINK="#555555">
<H2>Add MyImage</H2>
<FORM ACTION="MyImage_add" METHOD="POST"
ENCTYPE="multipart/form-data">
<TABLE CELLSPACING="2">
<TR>
<TD ALIGN="LEFT" VALIGN="TOP">
<STRONG>Id</STONG>
</TD>
<TD ALIGN="LEFT" VALIGN="TOP">
<INPUT TYPE="TEXT" NAME="id" SIZE="40">
</TD>
</TR>
<TR>
<TD ALIGN="LEFT" VALIGN="TOP">
<EM><STRONG>Title</STRONG></EM>
</TD>
<TD ALIGN="LEFT" VALIGN="TOP">
<INPUT TYPE="TEXT" NAME="title" SIZE="40">
</TD>
</TR>
<TR>
<TD ALIGN="LEFT" VALIGN="TOP">
<STRONG>Image</STRONG>
</TD>
<TD ALIGN="LEFT" VALIGN="TOP">
<INPUT TYPE="file" NAME="file" SIZE="25" VALUE="">
</TD>
</TR>
<TR>
<TD></TD>
<TD>
<BR><INPUT TYPE="SUBMIT" VALUE=" Add ">
</TD>
</TR>
</TABLE>
</FORM>
</body></html>
--openmail-part-13d2180c-00000001--