[Zope-dev] Adding products dynamically

Mats Myrberg mats@bigbig.to
Mon, 13 Dec 1999 23:23:44 -0800


I have been playing around with letting users (i.e. just visitors to a web
site) add folders etc.  I wanted to write a product that a user can add to
his or her folder.  So I played around with the Boring product as a
template.  I have a form which triggers an action which is a DTML method.
In this method I do the following:

<dtml-with "manage_addFolder(formxx_id, formxx_title)">
    <dtml-call "manage_addBoring(formxx_id)">
    <dtml-call "RESPONSE.redirect(formxx_id)">
</dtml-with>

However, Zope has a hard time finding the manage_addBoring method.  I can
add a Boring product "manually" while in Zope management interface.  What do
I have to do to add manage_addBoring to the global namespace (just like
manage_addFolder etc).

Thanks,

Mats