def ck_delete():
 try:
  filename = request.args[0]
 except:
  raise HTTP(401, 'Required argument filename missing.')
 table = s3db.doc_ckeditor
 db((table.upload == filename)).delete()
 filepath = os.path.join(request.folder, 'uploads', filename)
 os.unlink(filepath)

def ck_delete ( ) : try : filename = request . args [ 0 ] except : raise HTTP ( 401 , 'Required argument filename missing.' ) table = s3db . doc_ckeditor db ( ( table . upload == filename ) ) . delete ( ) filepath = os . path . join ( request . folder , 'uploads' , filename ) os . unlink ( filepath )
controller to handle deletes in ckeditor .