Add a hash digest to tiddlers
Project description
A TiddlyWeb plugin which adds a _hash field to outgoing tiddlers.
When a tiddler is get from the store, if there is no _hash, then the hash is added to the outgoing tiddler. It is _not_ saved
This is done to allow quick comparisons between tiddlers which may have different names but may have the same set of content characteristics.
The hash_tiddler method is exposed so that stores can create a hash prior to a put to the store. See tiddlywebplugis.tiddlyspace.store for an example.
To use add ‘tiddlywebplugins.hashmaker’ to system_plugins and twanager_plugins in tiddlywebconfig.py. Optionally define hashmaker.attributes to be a list of strings representing the attributes or fields of a tiddler which are to be hashed. The default is:
[‘text’]
Copyright 2010-2011, Chris Dent <cdent@peermore.com>
Licensed under the same terms as TiddlyWeb: BSD License.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for tiddlywebplugins.hashmaker-0.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3fbfe221ce629774fffe51a947c2e30d50ca7e57274140c02eea02846a2433e5 |
|
MD5 | 5d2ea0237b195f1f3ed8ed42e22ef964 |
|
BLAKE2b-256 | c1455a3d0744dfea3c9c4e48aeb787cbfce1f566e863d76b8c56386f7fec72b4 |