[Zope-PTK] Creating a new wizard

Robert Towster RTowster@emerging.com
Wed, 19 Apr 2000 09:39:26 -0500

I have recently done a custom portal. In doing so I created several new
wizards. Let me see if I can quickly summarize what you need to do.
(Dont blame me if I do this badly or miss a step.. Have only been doin
zope 2 weeks)

1. create new external wizard  ( /lib/python/Products/PTKBase ). I started
by duplicating an existing wizard.
2. create new dtmls for the external method (
src/lib/python/Products/PTKBase/dtml ).
And again I copied an existing one.
3. create new methods in the zope demoportal wizards that correspond to your
external methods. (If you want these seen in an existing portal you will
have to copy
them to your existing portal too...)

Now that WORKS but might not be the proper way to do it. Sooo.. use it at
your own
risk =)

-----Original Message-----
From: Garrin Kimmell [mailto:kimmell@ukans.edu]
Sent: Tuesday, April 18, 2000 8:40 PM
To: zope-ptk@zope.org
Subject: [Zope-PTK] Creating a new wizard


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
Wizard pages.
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.

Thank you,

Zope-PTK maillist  -  Zope-PTK@zope.org

See http://www.zope.org/Products/PTK/Tracker for bug reports and feature