Re: Multi-user setup (was: License of the contrib plugins)
Tollef Fog Heen <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.devel |
|---|---|
| Organization | Private |
| Message-ID | <[email protected]> |
* Tollef Fog Heen
| | Oh, I see your issue. Well, as far as I know we typically tell people
| | to put config.py in the directory along-side pyblosxom.cgi. So then
| | it always finds the config.py file. I'm sure different people do
| | different things in that regard, but it's not something we're working
| | hard to figure out.
|
| That could work, yes. (Except that I think it's a tad ugly -- in my
| setup, I have ~/err.no/personal/blog being a copy of the pyblosxom.cgi
| file and trying to keep the directory clean.
Except it doesn't work. If you just symlink pyblosxom.cgi, it becomes
very unhappy, as shown by this sample setup:
: tfheen@vawad ~/public_html/blogtest > ls -l
total 4
-rw-r--r-- 1 tfheen tfheen 81 2005-04-11 13:54 config.py
lrwxrwxrwx 1 tfheen tfheen 12 2005-04-11 13:51 test.py ->
/tmp/test.py*
: tfheen@vawad ~/public_html/blogtest > cat test.py
#! /usr/bin/python
import sys
sys.path.append("/etc/pyblosxom")
import config
print config.py['datadir']
: tfheen@vawad ~/public_html/blogtest > cat config.py
py = {}
# Where are this blog's entries kept?
py['datadir'] = "/tmp/pyblosxom/"
: tfheen@vawad ~/public_html/blogtest > ./test.py
/var/www/pyblosxom/
: tfheen@vawad ~/public_html/blogtest >
(/etc/pyblosxom contains the shipped config.py where datadir is /var/www)
http://bugs.debian.org/298587 has a patch to look at SCRIPT_FILENAME
to find out where pyblosxom is hosted. I think that looks fairly sane
and unless anybody can find a compelling reason not to apply it, I'll
apply that fairly soon for Debian.
--
Tollef Fog Heen ,''`.
UNIX is user friendly, it's just picky about who its friends are : :' :
`. `'
`-
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click