Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- """
- configuration for development environment
- """
- import os
- import tiddlywebplugins.devstore
- import twebical.instance
- # prevent local tiddlers from being created in the devstore
- tiddlywebplugins.devstore.Store.tiddler_put = lambda self, tiddler: None
- # add devstore to default instance configuration
- STORE = ["tiddlywebplugins.devstore", { "store_root": "store" }]
- twebical.instance.instance_config["server_store"] = STORE
- # provide access to local packages
- base_path = os.path.abspath(".")
- instance_config_head = """
- import sys; sys.path.insert(0, "%s")
- """ % base_path
- config = {
- "system_plugins": ["tiddlywebwiki", "status", "differ"],
- "twanager_plugins": ["tiddlywebwiki"],
- "server_store": STORE,
- "instance_tiddlers": {
- "system": ["../index.dev.recipe"],
- "common": []
- },
- "instance_config_head": instance_config_head,
- "log_level": "DEBUG"
- }
Add Comment
Please, Sign In to add comment