~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to turbozpt/__init__.py

  • Committer: Robey Pointer
  • Date: 2007-01-02 00:55:28 UTC
  • Revision ID: robey@lag.net-20070102005528-ff0odpwlt2spnet0
switch the cache and text index to use file locking so they can be used by
different processes too.  hook into turbogears' close_on_shutdown to make
sure all the branch views close their files to prevent corruption.  this
should make it okay to have a bunch of branches share a single cache folder.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
from turbozpt import zptsupport
2
 
 
3
 
TurboZpt = zptsupport.TurboZpt
4
 
 
5
 
__all__ = ["TurboZpt"]
6
 
 
7
 
from turbogears.view import engines, stdvars
8
 
 
9
 
engines['zpt'] = TurboZpt(stdvars)