def _api_warnings(name, output, kwargs):
 if (name == 'clear'):
  return report(output, keyword='warnings', data=sabnzbd.GUIHANDLER.clear())
 elif (name == 'show'):
  return report(output, keyword='warnings', data=sabnzbd.GUIHANDLER.content())
 elif name:
  return report(output, _MSG_NOT_IMPLEMENTED)
 return report(output, keyword='warnings', data=sabnzbd.GUIHANDLER.content())

def _api_warnings ( name , output , kwargs ) : if ( name == 'clear' ) : return report ( output , keyword = 'warnings' , data = sabnzbd . GUIHANDLER . clear ( ) ) elif ( name == 'show' ) : return report ( output , keyword = 'warnings' , data = sabnzbd . GUIHANDLER . content ( ) ) elif name : return report ( output , _MSG_NOT_IMPLEMENTED ) return report ( output , keyword = 'warnings' , data = sabnzbd . GUIHANDLER . content ( ) )
api: accepts name .