handler Package¶
handler Package¶
Convenience routines for presenting the root of the web server.
Here because nowhere else seems right.
-
tiddlyweb.web.handler.root(environ, start_response)¶ Convenience application to provide an entry point at root.
bag Module¶
Methods for accessing Bag entities.
-
tiddlyweb.web.handler.bag.delete(environ, start_response)¶ Handle
DELETEon a single bag URI.Remove the
bagand thetiddlerswithin from thestore.How the store chooses to handle remove and what it means is up to the store.
-
tiddlyweb.web.handler.bag.get(environ, start_response)¶ Handle
GETon a single bag URI.Get a representation in some serialization determined by
tiddlyweb.web.negotiateof abag(the bag itself, not the tiddlers within).
-
tiddlyweb.web.handler.bag.get_tiddlers(environ, start_response)¶ Handle
GETon a tiddlers-within-a-bag URI.Get a list representation of the
tiddlersin abag.The information sent is dependent on the serialization chosen via
tiddlyweb.web.negotiate.
-
tiddlyweb.web.handler.bag.list_bags(environ, start_response)¶ Handle
GETon the bags URI.List all the
bagsthat are readable by the current usersign.The information sent is dependent on the serialization chosen via
tiddlyweb.web.negotiate.
chronicle Module¶
A chronicle is a stack of tiddlers, usually revisions of
one tiddler. By POSTing a chronicle of tiddlers originally
named A to tiddler B, it is possible to rename a tiddler
while preserving revision history.
recipe Module¶
Methods for accessing Recipe entities.
-
tiddlyweb.web.handler.recipe.delete(environ, start_response)¶ Handle
DELETEon a single recipe URI.Delete a
recipe. This just removes the recipe, not any associatedbagsortiddlers.
-
tiddlyweb.web.handler.recipe.get(environ, start_response)¶ Handle
GETon a single recipe URI.Get a representation in some serialization determined by
tiddlyweb.web.negotiateof arecipe(just the recipe itself, not the tiddlers it can produce).
-
tiddlyweb.web.handler.recipe.get_tiddlers(environ, start_response)¶ Handle
GETon a tiddlers-within-a-recipe URI.Get a list representation of the
tiddlersgenerated from arecipe.The information sent is dependent on the serialization chosen via
tiddlyweb.web.negotiate.
-
tiddlyweb.web.handler.recipe.list_recipes(environ, start_response)¶ Handle
GETon the recipes URI.List all the
recipesthat are readable by the current usersign.The information sent is dependent on the serialization chosen via
tiddlyweb.web.negotiate.
search Module¶
Handle searches for tiddlers
if the configured store
supports search.
-
tiddlyweb.web.handler.search.get(environ, start_response)¶ Handle
GETon the search URI.Perform a search against the
store.What search means and what results are returned is dependent on the search implementation (if any) in the
chosen store.
-
tiddlyweb.web.handler.search.get_search_query(environ)¶ Inspect
tiddlyweb.queryin the environment to find the search query in a parameter namedq.
-
tiddlyweb.web.handler.search.get_tiddlers(environ)¶ Call search in the
storeto get the generator oftiddlersmatching the query found byget_search_query().
tiddler Module¶
Methods for accessing Tiddler
entities.
-
tiddlyweb.web.handler.tiddler.delete(environ, start_response)¶ Handle
DELETEon a single tiddler URI.Delete a
tiddlerfrom thestore.What delete means is up to the store.
-
tiddlyweb.web.handler.tiddler.get(environ, start_response)¶ Handle
GETon a single tiddler or tiddler revision URI.Get a representation in some serialization determined by
tiddlyweb.web.negotiateof atiddler.
-
tiddlyweb.web.handler.tiddler.get_revisions(environ, start_response)¶ Handle
GETon the collection of revisions of single tiddler URI.Get a list representation in some serialization determined by
tiddlyweb.web.negotiateof the revisions of atiddler.
-
tiddlyweb.web.handler.tiddler.put(environ, start_response)¶ Handle
PUTon a single tiddler URI.Put a
tiddlerto the server.
-
tiddlyweb.web.handler.tiddler.validate_tiddler_headers(environ, tiddler)¶ Check ETag and last modified header information to see if a) on
GETthe user agent can use its cached tiddler b) onPUTwe have edit contention.