github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

tiddlyweb / tiddlyweb-plugins

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 5
    • 1
  • Source
  • Commits
  • Network (1)
  • Issues (2)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (4)
    • encoding
    • master ✓
    • sql2
    • sqlmods
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Plugins for TiddlyWeb — Read more

  cancel

http://tiddlyweb.peermore.com/

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Handle the case in magicuser where the bag does not exist. 
Chris Dent (author)
Mon Feb 08 11:53:21 -0800 2010
commit  b3fa897c407a2b9b4cff7ca54f31daeafc315c65
tree    068dbc7332ed2993b58c2d8d20564fc45749d562
parent  fde62e1dde3a4584c8a53439432ff638488416f4
tiddlyweb-plugins / diststore
name age
history
message
..
file MANIFEST.in Loading commit data...
file Makefile
file README
file mangler.py
file setup.py
directory test/
file tiddlywebconfig.py
directory tiddlywebplugins/
diststore/README
A TiddlyWeb store that makes it possible to store some content in
different stores, based on rules defined in tiddlywebconfig.py.

The rules are regular expressions which match the name of a bag. When a
tiddler or bag is accessed (for read or write) if the name of the bag
matches a regular expression in the store's "extras" dictionary, the
store named in the value is responsible for the entity being accessed.
Otherwise the store named in "main" is used.

This is an experimental store, but it is being reliably used in
production with the http://www.wiki-data.com/ website. In that service,
the main collection of tiddler data is kept in one highly optimized bag
using the mappingsql store, while users and other system data are stored
in a text store. Here's the relevant config:

        'server_store': ['tiddlywebplugins.diststore', {
            'main': ['text', {'store_root': 'store'}],
            'extras': [
                (r'^example$', ['mappingsql',
                    {'db_config':
                        'mysql://example@localhost/example?charset=utf8'}]),
            ],
        }],

To use this plugin you must modify tiddlywebconfig.py to set the
'server_store' item. Do not add 'tiddlywebplugins.diststore' to
'system_plugins' or 'twanager_plugins'.

Copyright 2009, Chris Dent <cdent@peermore.com>

Licensed under the same terms as TiddlyWeb.
http://tiddlyweb.com/
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server