On Wednesday 22 November 2006 05:39, Dennis Schulz wrote:
> I would like to make a column in my zc.table based table that renders a
> trash icon link to a delete handler function inside the same class.
> Is it possible somehow to insert a "real action" like in formlib inside
> a table column?
> I could use a submitColumn and link to the same form, but that seems a
> litte buggy to me.
> Can I call an action handler manually through the web?

Yes you could do all that. However, I would just do this:

in HTML:


in Python view class

def update(self):
    if 'DELETE' in self.request.form:
        del self.context[self.request.form['DELETE']]
    super(MyViewClass, self).update()

Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
Zope3-users mailing list

Reply via email to