[Zope] Property Sheet Questions

Stephen Pitts smpitts@midsouth.rr.com
Tue, 9 Nov 1999 18:36:57 -0600


I've been playing around with Zope, and this thing is incredible! I'm
really interested in the OOP design, because now I can teach clients how
to manage their own web sites.

Right now, I'm creating a zopified version of a Links page. A Link
ZClass has two properties, an id and a WebAddress (Zope didn't like it
when I called this property URL, is there a list of reserved words
somewhere?)

Unfortunately, the property sheet only shows the WebAddress property. Is
there any way I can make it show the id property?

I created my own property sheet, but it doesn't have the tabs on the
top like the regular zope ones. Is there some boilerplate code somewhere
that I can add to the top of my property sheet to do that? 

When I created my property sheet (called editForm, boilerplate HTML form inside
of a table that was patterned after the Link_addForm method), I set the
ACTION of the form to edit, this DTML method of Link:

<dtml-call "propertysheets.propsheet.manage_changeProperties(REQUEST)">
<dtml-call "manage_renameObject(_.None,REQUEST['oldid'],REQUEST['id'])">
<dtml-call "RESPONSE.redirect(PARENTS[1].absolute_url()+'/manage_main')">

What's the correct incantation to rename a ZClass instance from within the
instance? I get an error message "Object with id (id of Link) already
exists"

Thanks for any and all assistance...Zope is zoporific!
--
Stephen Pitts
smpitts@midsouth.rr.com
webmaster - http://www.mschess.org