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 / reloader
name age
history
message
..
file README Loading commit data...
file reloader.py
file wserver.py
reloader/README
reloader and wserver provide two different ways to 
automatically reload code into the CherryPY WSGI server
when TiddlyWeb (and related) code has changed.

Both are for use with the builtin CherryPy server
(usually started with twanager server) and should _not_
be used with other servers, such Apache, CGI, spwaning, etc.

reloader was developed first, based on similar tools in
the CherryPy package and Paste, especially Paste. It is a
plugin that is added to system_plugins. 'twanager server'
is run the same as before.

reloader starts up a thread that monitors the files in sys.modules,
plus extras that may be added by configuration. When there are
changes, the thread causes the process to exec itself.

This works on Linux but not on OS X because OS X does not
let a process with multiple active threads do an exec.

So wserver was born. It is a plugin that is added to
twanager_plugins, adding a 'wserver' command taking the
same (optional) arguments as the 'server' command. When run,
a child process is spawned, running 'twanager server'. The
parent server remains, watching the files in sys.modules
using the same code as reloader. When there is a change, the
parent kills its child and respawns a 'twanager server'.

Further details in the code.
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