[Zope] ZClass questions
A M Thomas
am@virtueofthesmall.com
Mon, 11 Mar 2002 03:38:44 -0500
Hello there,
I've read all I could find on customizing Products' ZClasses - the
entire "Zope Book", some of another book, searched Zope.org, and I just
read through Loren STafford's ZClass Properties howto. I've been
working on a ZClass of my own, and I have some questions.
The main one is this: I want to control the appearance of one of my
ZClass's views, which will be used to update the properties of instances
(this will become the main view). I defined a view, defined a method to
connect with the view, and I have a property sheet with everything. I'm
just not content with the "default" propertysheets/[my thingie]/manage
method for displaying the form. I tried just setting my custom form
action to this, also, and it sort of works, but after an update, I get
"Your changes have been saved" with an "OK" button - and when I click
the button, it goes to a default propertysheet management screen -
disorienting :)
I got the form displaying, all right, and I can update the values -
easy. I think my problem is that I don't know either a) what to set the
form's action to, b) if I have to write my own method for updating the
properties, or c) if I can just somehow call the same method and update
the properties if the properties are set. I experimented with approach
(c) and wound up clearing all the properties.
Is there a document somewhere that will fill in the gaps in my knowledge
that this question illuminates? I want to make nice-looking property
management interfaces for my ZClasses - and I'll want a good, flexible
solution for doing that.
If manage_changeProperties(REQUEST=None, **kw) is what I want (maybe in
a <dtml-call> tag inside a <dtml-if> tag in my main method), how do I
call it most gracefully?
Many thanks,
Am Thomas