tinycm annotate tools/hgweb.py @ rev 43
Add: pt_BR.po
author | Claudinei Pereira <claudinei@slitaz.org> |
---|---|
date | Tue Jan 14 18:33:35 2014 -0200 (2014-01-14) |
parents | fa494a9879e3 |
children |
rev | line source |
---|---|
pankso@3 | 1 #!/usr/bin/env python |
pankso@3 | 2 # |
pankso@3 | 3 # An example hgweb CGI script, edit as necessary |
pankso@3 | 4 # See also http://mercurial.selenic.com/wiki/PublishingRepositories |
pankso@3 | 5 |
pankso@3 | 6 # Path to repo or hgweb config to serve (see 'hg help hgweb') |
pankso@12 | 7 config = "/var/www/cgi-bin/tinycm/content" |
pankso@3 | 8 |
pankso@3 | 9 # Uncomment and adjust if Mercurial is not installed system-wide |
pankso@3 | 10 # (consult "installed modules" path from 'hg debuginstall'): |
pankso@3 | 11 #import sys; sys.path.insert(0, "/path/to/python/lib") |
pankso@3 | 12 |
pankso@3 | 13 # Uncomment to send python tracebacks to the browser if an error occurs: |
pankso@3 | 14 #import cgitb; cgitb.enable() |
pankso@3 | 15 |
pankso@3 | 16 from mercurial import demandimport; demandimport.enable() |
pankso@3 | 17 from mercurial.hgweb import hgweb, wsgicgi |
pankso@3 | 18 application = hgweb(config) |
pankso@3 | 19 wsgicgi.launch(application) |