Beispiel #1
0
 def upstore(args):
     """Update the store structure."""
     from tiddlywebplugins.hoster.instance import store_structure
     from tiddlywebplugins.instancer import Instance
     from tiddlyweb.config import config
     instance = Instance('.', config)
     instance._init_store(store_structure)
Beispiel #2
0
 def upstore(args):
     """Update the store structure."""
     from tiddlywebplugins.hoster.instance import store_structure
     from tiddlywebplugins.instancer import Instance
     from tiddlyweb.config import config
     instance = Instance('.', config)
     instance._init_store(store_structure)
def spawn(instance_path, init_config, instance_module):
    """
    convenience wrapper for instance-creation scripts
    """
    # extend module search path for access to local tiddlywebconfig.py
    sys.path.insert(0, os.getcwd())
    from tiddlyweb.util import merge_config
    from tiddlyweb.config import config
    merge_config(config, init_config)

    package_name = instance_module.__name__.rsplit(".", 1)[0]
    instance = Instance(instance_path, config, instance_module.instance_config)
    instance.spawn(instance_module.store_structure)
    instance.update_store()
Beispiel #4
0
 def update(args):
     """Update all instance_tiddlers in the current instance."""
     from tiddlywebplugins.instancer import Instance
     instance = Instance('.', config)
     instance.update_store()
Beispiel #5
0
 def update(args):
     """Update all instance_tiddlers in the current instance."""
     from tiddlywebplugins.instancer import Instance
     instance = Instance('.', config)
     instance.update_store()