old_contents: """
  The definition of the structure and contents of a 
  default TiddlyWikiWiki instance.
  """
  
  from tiddlywebplugins.console.instance import (store_contents as
      console_store_contents)
  
  
  instance_config = {
      'system_plugins': ['tiddlywebwiki'],
      'twanager_plugins': ['tiddlywebwiki']
  }
  
  store_contents = {
      'system': [
          'http://svn.tiddlywiki.org/Trunk/verticals/TiddlyWebWiki/index.recipe'
      ]
  }
  
  for bag, uris in console_store_contents.items():
      try:
          store_contents[bag].extend(uris)
      except KeyError:
          store_contents[bag] = uris
  
  store_structure = {
      'bags': {
          'system': {
              'desc': 'TiddlyWebWiki client plugins',
              'policy': {
                  'read': [],
                  'write': ['R:ADMIN'],
                  'create': ['R:ADMIN'],
                  'delete': ['R:ADMIN'],
                  'manage': ['R:ADMIN'],
                  'accept': ['R:ADMIN'],
                  'owner': 'administrator' # XXX: meaningless?
              }
          },
          'common': {
              'desc': 'shared content',
              'policy': {
                  'manage': ['R:ADMIN'],
                  'owner': 'administrator' # XXX: meaningless?
              }
          }
      },
      'recipes': {
          'default': {
              'desc': 'standard TiddlyWebWiki environment',
              'recipe': [
                  ('system', ''),
                  ('common', '')
              ],
              'policy': {
                  'read': [],
                  'write': ['R:ADMIN'],
                  'manage': ['R:ADMIN'],
                  'delete': ['R:ADMIN'],
                  'owner': 'administrator' # XXX: meaningless?
              }
          }
      },
      'users': {
          'administrator': { # XXX: DEBUG; for demo purposes only
              'note': 'system administrator',
              'roles': ['ADMIN']
          }
      }
  }
  
new_contents: """
  The definition of the structure and contents of a 
  default TiddlyWikiWiki instance.
  """
  
  from tiddlywebplugins.instancer.util import get_tiddler_locations
  
  from tiddlywebplugins.console.instance import store_contents
  
  instance_config = {
      'system_plugins': ['tiddlywebwiki'],
      'twanager_plugins': ['tiddlywebwiki']
  }
  
  store_contents = get_tiddler_locations(store_contents, 'tiddlywebplugins.console')
  
  store_contents['system'] = [
          'http://svn.tiddlywiki.org/Trunk/verticals/TiddlyWebWiki/index.recipe',
      ]
  
  store_structure = {
      'bags': {
          'system': {
              'desc': 'TiddlyWebWiki client plugins',
              'policy': {
                  'read': [],
                  'write': ['R:ADMIN'],
                  'create': ['R:ADMIN'],
                  'delete': ['R:ADMIN'],
                  'manage': ['R:ADMIN'],
                  'accept': ['R:ADMIN'],
                  'owner': 'administrator' # XXX: meaningless?
              }
          },
          'common': {
              'desc': 'shared content',
              'policy': {
                  'manage': ['R:ADMIN'],
                  'owner': 'administrator' # XXX: meaningless?
              }
          }
      },
      'recipes': {
          'default': {
              'desc': 'standard TiddlyWebWiki environment',
              'recipe': [
                  ('system', ''),
                  ('common', '')
              ],
              'policy': {
                  'read': [],
                  'write': ['R:ADMIN'],
                  'manage': ['R:ADMIN'],
                  'delete': ['R:ADMIN'],
                  'owner': 'administrator' # XXX: meaningless?
              }
          }
      },
      'users': {
          'administrator': { # XXX: DEBUG; for demo purposes only
              'note': 'system administrator',
              'roles': ['ADMIN']
          }
      }
  }
  
subject: Manage tiddlywebwiki.instance:store_contents in a more straightforward fashion