[Zope] Add objects to list through selection

Sin Hang Kin iekentsin@infoez.com.mo
Thu, 17 Feb 2000 17:48:14 +0800


The class term is defined as:

class term:
    def __init__(self, id, title='', eqterms=[]):
           self.id = id
           self.title = title
           self.similar = eqterms

    def addmember(self, eqterms*):
           for term in eqterms:
                self.similar.append(term)

where the addmember append the another term object to the similar list.

where term objects is created in a folder called terms and searchable by
catalog. How can a dtml to allow the selection from the folder or the search
result to call addmember to add to a term the list of member terms?