Installation Guide-http://www.cnblogs.com/longsan/articles/1282098.html
Genshi-0.5.1.win32-py2.5.exe
Http://genshi.edgewall.org/wiki/Download
Svn-python-1.5.6.win32-py2.5.exe:
Http://subversion.tigris.org/servlets/ProjectDocumentList? Folderid = 8637 & expandfolder = 8637 & folderid = 469
(Note: After installing svn-Python, you must copy the DLL file under the svn root directory to python25/lib/Site-packages/libsvn)
Http://initd.org/pub/software/pysqlite/releases/2.4/2.4.1/
Setuptools-0.6c7.win32-py2.5.exe
Http://pypi.python.org/pypi/setuptools/0.6c7
Trac-0.11.4.win32.exe
Http://trac.edgewall.org/wiki/TracDownload
Accountmanagerplugin_trunk-r5655.zip
Http://trac-hacks.org/wiki/AccountManagerPlugin
##### Tony. Wu: trac-digest.py
from optparse import optionparser
# the MD5 module is deprecated in Python 2.5
try:
from hashlib import MD5
cannot importerror:
from MD5 import MD5
realm = 'trac'
# Build the options
usage = "Usage: % prog [Options]"
parser = optionparser (usage = usage)
parser. add_option ("-u", "-- username", Action = "Store", DEST = "username", type = "string ",
help = "the username for whom to generate a password")
parser. add_option ("-P", "-- password", Action = "Store", DEST = "password", type = "string ",
help = "the password to use")
parser. add_option ("-R", "-- realm", Action = "Store", DEST = "Realm", type = "string ",
help = "the realm in which to create the Digest")
(options, argS) = parser. parse_args ()
# Check options
If (options. username is none) or (options. password is none):
parser. error ("You must supply both the username and password")
If (options. realm is not none):
realm = options. realm
# generate the string to enter into the htdigest file
Kd = Lambda X: MD5 (':'. join (x )). hexdigest ()
Print ':'. join (options. username, realm, KD ([options. username, realm, options. password])