[Zope-dev] How to create a product with all_meta_types and the name of the product

Garito garito at sistes.net
Fri Mar 12 03:46:47 EST 2004


Hi Chris!

Want I want exactly is to create a product's object by his name
programmatically not by the construction form
Is this posible?

Thanks!!!


----- Original Message ----- 
From: "Chris Withers" <lists at simplistix.co.uk>
To: "Garito" <garito at sistes.net>
Cc: "Lista Oficial de Zope" <zope-dev at zope.org>
Sent: Friday, March 12, 2004 9:37 AM
Subject: Re: [Zope-dev] How to create a product with all_meta_types and the
name of the product


> Garito wrote:
>
> > In the information retrieved by
> > self.all_meta_types()['product']['action'] I can retrive the
> > 'manage_addProduct' string, 'product' string but I don't retrieve
> > manage_addMyProductManageAdd but
> > I retrieve manage_addMyProductManageAddForm (this is the form of the
> > constructor)
> >
> > Any idea?
>
> Loose the HTML encoding in your mails for starters ;-)
>
> The ngo find the code which builds the "Add" dropdown in the ZMI, since
that
> appears to do what you want...
>
> Chris
>
> -- 
> Simplistix - Content Management, Zope & Python Consulting
>             - http://www.simplistix.co.uk
>




More information about the Zope-Dev mailing list