From Rakan, 1 Month ago, written in Python.
This paste will run down the curtain in 1 Second.
Embed
  1. @cmdutils.register(instance='session-manager')
  2. @cmdutils.argument('name', completion=miscmodels.session)
  3. @cmdutils.argument('url', completion=urlmodel.url)
  4. def session_add_url(self, name, url, force=False):
  5.     """Add URL to session.
  6.  
  7.    Args:
  8.        name: The name of the session.
  9.        url: The current URL.
  10.        force: Force deleting internal sessions (starting with an
  11.               underline).
  12.    """
  13.     log.sessions.debug("Adding URL to session {}.".format(name))
  14.