Hello all, Itseems really difficult to have some informations about multiple selection (i send a message and see an other one without response). Then i ask again: how could we insert a method (pyhton perl or DTML) from a particular place (but not directly placed in the Zclass definition, and with argument in an attribut definition (in a Zclass Object). The goal is, when we instanciate the object (in zope), the creator of the instance of the object could initialize the attribut we informations taken from a list. I need the syntax and the limit of possibility !! Thanks for your help Best regards Dominique Jouniot
Dominique Jouniot writes:
Itseems really difficult to have some informations about multiple selection (i send a message and see an other one without response). I fear the problem is less related to multiple selections. I have great difficulties to understand your problem.
Apparently, you want to have a "multiple selection" property in a ZClass. Such properties need as value (during construction) the name of an object that returns the list of possible values. You do not want this object live in the ZClass. I that a correct description of what you want? It would be difficult to achieve, because if the object is not accessible in the ZClass, you can not define default values for the property in the ZClass itself. You may try the following: You use the name of a ZClass method as object that returns the list. This method must try to locate your attribute and return its value. If not possible, it returns some sensible default value. Dieter
participants (2)
-
Dieter Maurer -
Dominique Jouniot