Guest User

Untitled

a guest
Apr 23rd, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. """
  2. configuration for development environment
  3. """
  4.  
  5. import os
  6.  
  7. import tiddlywebplugins.devstore
  8.  
  9. import twebical.instance
  10.  
  11.  
  12. # prevent local tiddlers from being created in the devstore
  13. tiddlywebplugins.devstore.Store.tiddler_put = lambda self, tiddler: None
  14.  
  15. # add devstore to default instance configuration
  16. STORE = ["tiddlywebplugins.devstore", { "store_root": "store" }]
  17. twebical.instance.instance_config["server_store"] = STORE
  18.  
  19. # provide access to local packages
  20. base_path = os.path.abspath(".")
  21. instance_config_head = """
  22. import sys; sys.path.insert(0, "%s")
  23. """ % base_path
  24.  
  25. config = {
  26. "system_plugins": ["tiddlywebwiki", "status", "differ"],
  27. "twanager_plugins": ["tiddlywebwiki"],
  28. "server_store": STORE,
  29. "instance_tiddlers": {
  30. "system": ["../index.dev.recipe"],
  31. "common": []
  32. },
  33. "instance_config_head": instance_config_head,
  34. "log_level": "DEBUG"
  35. }
Add Comment
Please, Sign In to add comment