def delete(self, id):
        """DELETE /layertemplates/id: Delete an existing item."""
        # url('LayerTemplates', id=ID)
        lt = meta.Session.query(LayerTemplate).get(id)
        # use following query for getting a layertemplate owned by current user
        #lt = self._get_lt_from_user_by_id(c.user, id)
        if lt is None:
            abort(404)
        meta.Session.delete(lt)
        meta.Session.commit()
def delete ( self , id ) : lt = meta . Session . query ( LayerTemplate ) . get ( id ) if lt is None : abort ( 404 ) meta . Session . delete ( lt ) meta . Session . commit ( )
DELETE /layertemplates/id: Delete an existing item.