[Zope-PTK] Creating a new wizard
Tue, 18 Apr 2000 20:39:32 -0500 (CDT)
I've having trouble creating a new wizard. I've used the supplied wizards
as templates, but I don't really know what I'm doing.
My goal is to use the wizard to create an instance of a ZClass I have
defined. This is a deviation from the supplied wizards, which instantiate
external python classes (as far as I can tell).
My general strategy is this:
1. Create the wizard
2. Add pages to the wizard, which have named html form inputs.
3. Define a DTML Method to handle the creation of the ZClass instance.
I'm assuming it will use the variable names of the form elements in the
4. Set the wizard_action of the wizard to be the DTML Method.
Are there any major problems with this approach? I'm trying to avoid
dropping down to Python (for now). I've seen some messages relating to
creating new wizards, but they all pertain to registering python classes
with the PTK using registerPortalContent(). I'd like to avoid this
approach if at all possible.
If anyone can offer any suggestions, I would greatly appreciate it.