# By: Charles Brandt [code at contextiskey dot com] # On: 2011.06.09 15:41:45 # License: MIT
# Requires: # bottle.py
# Description:
aka JournalServer this should only serve a journal item using as close of an API as a journal itself and only returning json objects
mimicing Mindstream, but incorporating bottle for json only server
some other similarities with pose application
*2011.07.13 07:22:44 this is a handy way to test different commands, since firefox will not display json by default (prompts to save it): wget -q -O - http://localhost:8000/entries
*2011.08.18 14:44:22 (port argument can be anywhere) python server.py /c/journal/ -p 8001 /c/charles
python server.py /c/journal/ /c/charles
if we load root automatically on start, this won’t have much use if we limit loads to the root directory (as we do in normal load() and load_post()) but if we don’t, that could have some security implications (loading anywhere in the filesystem) may or may not want to enable, depending on the environment in use