We also want to open a form that will allow the user to edit an existing instance when double-clicked in the browse list. In the stripped down application that we created in the previous section, we merely created the
ContactBrowser class as a subclass of
Browse. If we want to add an additional double-click handler to the browse list element, we will have to override the
In the definition of the
ContactBrowser class, add the following to the definition of the
index() method (the complete code is available as
@cherrypy.expose def index(self, _=None, start=0, pattern=None, sortorder=None, cacheid=None, next=None, previous=None, first=None, last=None, ...