[Zope] Sending additional parameters to HTMLFile()
Max M
maxmcorp@worldonline.dk
Thu, 3 Jan 2002 13:09:27 +0100
In a product I am writing I have defined some lists of options::
formatTypes = ['format1', 'format2', 'format3']
userTypes = ['type1', 'type2', 'type3']
In my manage_addProductForm I need to access these lists. But it seems that
it cannot be done as manage_addProductForm is called in the context of the
objectmanager it is being added to. And here these attributes naturally does
not exist yet.
So I just wondered if there is any way to put these lists into the namespace
of the objectmanager, or in some way pass them onto the HTMLfile object.
I have tried to add them like::
manage_addProductForm = HTMLFile('manage_addProductForm', globals(),
{'formatTypes ':['format1', 'format2', 'format3'],
'userTypes':['type1', 'type2', 'type3']})
But it doesn't work as I get an error saying that I am passing on to many
parameters.
regards Max M
Max M. W. Rasmussen, Denmark. New Media Director
private: maxmcorp@worldonline.dk work: maxm@normik.dk
-----------------------------------------------------
Shipping software is an unnatural act