Hi, there is this option for a folder to add some properties with standard types, like boolean, date etc. Is there a way for (multiple) selection not only to define the displayed text for each popup-entry, but also the "value" for the generated option-tag or the "name" of the select-tag? Where do these defined properties live within zope, and how can I access and manipulate them directly? Andreas
Hi Andreas,
Hi, there is this option for a folder to add some properties with standard types, like boolean, date etc. Is there a way for (multiple) selection not only to define the displayed text for each popup-entry, but also the "value" for the generated option-tag or the "name" of the select-tag?
Uh, I am sorry I do not understand what You mean. Do You want to add several properties at once?
Where do these defined properties live within zope, and how can I access and manipulate them directly?
That is an easy one: Everything inheriting from OFS.PropertyManager.PropertyManager does have methods to access the properties; Folders do so. e.g. You could say context.getProperty("foo_bar","foo_bar_default") More in the Online Help: "Zope Help" -> "API Reference" -> "PropertyManager" Cheers, Clemens
Andreas Rippel writes:
there is this option for a folder to add some properties with standard types, like boolean, date etc. Is there a way for (multiple) selection not only to define the displayed text for each popup-entry, but also the "value" for the generated option-tag or the "name" of the select-tag? Where do these defined properties live within zope, and how can I access and manipulate them directly? You already have been told that properties are provided by "PropertyManager".
Out of the box, it does not support separate "value" and "content" for "select" options. But you are free to implement your own "manage_propertiesForm". Look at the original and provide an enhanced one. Dieter
participants (3)
-
Andreas Rippel -
Clemens Klein-Robbenhaar -
Dieter Maurer