view light9/clientsession.py @ 1760:f2f2206281c4

indicate hover and selection on notes Ignore-this: 230f1cf1493ac7727f1df56dc155949b
author Drew Perttula <drewp@bigasterisk.com>
date Tue, 29 May 2018 07:55:05 +0000
parents f140153c087c
children 7772cc48e016
line wrap: on
line source

"""
some clients will support the concept of a named session that keeps
multiple instances of that client separate
"""
from rdflib import URIRef
from urllib import quote
from light9 import showconfig

def add_option(parser):
    parser.add_option(
        '-s', '--session',
        help="name of session used for levels and window position",
        default='default')

def getUri(appName, opts):
    return URIRef("%s/sessions/%s/%s" % (showconfig.showUri(), appName,
                                         quote(opts.session, safe='')))