Package: pyblosxom Severity: wishlist Tags: patch I am still working on a way to make pyblosxom be better suitable to multiple users on a single machine. The patch below adds the ability to use a symlink to /usr/lib/cgi-bin/pyblosxom.cgi to a user directory and make the CGI script honour a local config.py if present:
--- /tmp/pyblosxom.cgi Tue Mar 8 17:39:17 2005 +++ /usr/lib/cgi-bin/pyblosxom.cgi Tue Mar 8 18:21:26 2005 @@ -9,7 +9,9 @@ # Settings are now in config.py, you should disable access to it by htaccess # (make it executable or deny access) # Modified for Debian by Fredrik Steen <[EMAIL PROTECTED]> -import sys +import os, sys +localdir = os.environ.get('SCRIPT_FILENAME', None) +if localdir: sys.path.insert(0, localdir[0:localdir.rfind('/')]) sys.path.append('/etc/pyblosxom/') import config Thanks. -- System Information: Debian Release: 3.1 Architecture: amd64 (x86_64) Kernel: Linux 2.6.10-9-amd64-k8 Locale: LANG=en_GB, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) -- .''`. martin f. krafft <[EMAIL PROTECTED]> : :' : proud Debian developer, admin, user, and author `. `'` `- Debian - when you have better things to do than fixing a system Invalid/expired PGP subkeys? Use subkeys.pgp.net as keyserver!
signature.asc
Description: Digital signature