[ZDP] BackTalk to Document Zope Developer's Guide (2.4 edition)/Zope Products
nobody@nowhere.com
nobody@nowhere.com
Fri, 23 Aug 2002 11:00:04 -0400
A comment to the paragraph below was recently added via http://www.zope.org/Documentation/Books/ZDG/current/Products.stx#4-36
---------------
For 'selection' and 'multiple selection' properties, you must
include an addition item in the property dictionary,
'select_variable' which provides the name of a property or
method which returns a list of strings from which the
selection(s) can be chosen. For example::
_properties=({'id' : 'favorite_color',
'type' : 'selection',
'select_variable' : 'getColors'
},
)
% Anonymous User - Aug. 23, 2002 11:00 am:
Could we have an example of the property or method 'getColors' please? I cannot figure out how to create the
options list and nominate the default selected item.