Mercurial > code > home > repos > light9
view light9/rdfdb/clientsession.py @ 814:1ae8e6b287e3
improvements to file watching. outline of how resync will work
Ignore-this: 501c4f2076099364645cc27e9fe48f61
author | drewp@bigasterisk.com |
---|---|
date | Sun, 30 Sep 2012 07:11:49 +0000 |
parents | 7f1aef5fbddb |
children |
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='')))