[Zope] Allowing users to create class-instances
Maik Roeder
roeder@berg.net
Tue, 22 Feb 2000 00:10:30 +0100
Hi !
Philipp Dunkel wrote:
>
> Hi Zopistas!
>
> I'm very new to the material and I have the following question:
>
> I created my own ZClass, a child of "Folder".
> I want to allow my users to create new instances of this folders, but
> they shouldn't need to go to the manage-area.
> I just thought about a form which takes the folder-title in order
> to create a new one.
Put something like this in one of your methods:
[<A HREF="<dtml-var "absolute_url()">/manage_addProduct/DocumentFolderProduct/DraftSubmissionFolderClass_factory" target=_top>Add Draft Submission Folder</A>]
Then edit the
DraftClass_add (DraftClass constructor)
DraftClass_addForm (DraftClass constructor input form)
accordingly.
If you need some inspiration then have a look the the ZDP-Tools,
from which the example is taken.:
http://www.zope.org/Members/roeder
Greetings,
Maik Röder