[Zope] Selection property

Dmitry Matveev Dmitry Matveev <matveev@uralfirm.ru>
Thu, 15 Aug 2002 13:22:08 +0600


Hello Drew,

Thursday, August 15, 2002, 1:02:07 PM, you wrote:

DN> I am a newbie trying to set up a selection property with a python script.

DN> I call
DN> folder_obj.manage_addProperty ( 'prop_name', 'VALUE', 'selection', 
DN> **but how do i add the list** )

DN> and also try
DN> folder_obj.manage_addProperty ( 'prop_name', list_here, 'selection', 
DN> 'select_variable=one_of_the_list' )

may be:

guest_name = [1, 2, 3]
context.folder_obj.manage_addProperty('guest_name', guest_name, 'lines')

-- 
Best regards,                          www.uralfirm.ru
Dmitry Matveev                         mailto:matveev@uralfirm.ru