def _resolve_viewname(self, viewname):
        """ Check for special view names and return existing rTorrent one.
        """
        if viewname == "-":
            try:
                # Only works with rTorrent-PS at this time!
                viewname = self.open().ui.current_view()
            except xmlrpc.ERRORS as exc:
                raise error.EngineError("Can't get name of current view: %s" % (exc))

        return viewname
def _resolve_viewname ( self , viewname ) : if viewname == "-" : try : viewname = self . open ( ) . ui . current_view ( ) except xmlrpc . ERRORS as exc : raise error . EngineError ( "Can't get name of current view: %s" % ( exc ) ) return viewname
Check for special view names and return existing rTorrent one.