Re: How to get comments.py work?
Ted Leung <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Organization | Sauria Associates, LLC |
| Message-ID | <[email protected]> |
On 8/13/2003 3:33 PM, Joseph Reagle wrote:
> I've attached my config.ini and opened up my "flavors" if someone
> could tell
>
>me what I've done wrong.
> http://reagle.org/joseph/weblog/
>
>
I plugged these files into my test blog and they seem to work. There
may be a few things you can look at.
The comment plugin needs to be able to create a directory called
'comments' in your pyblosxom data directory. The plugin will be running
as the uid of the webserver, so you need to make sure that your data
directory is writable by the webserver uid. Either that, or create the
comments directory yourself and make it writable -- the plugin will
create directories underneath that so you'll need to set the permissions
accordingly:
chmod g+ws comments
should do the job. Also be sure that the flavor files are readable by
the web server.
You should remove trackbacks.cgi from your cgi directory, and you can
delete any lines in any flavor files that mention trackback. In any
event, this should not affect your ability to do comments.
In your story.html, you have
<a href="/joseph/trackback.cgi?__mode=list&tb_id=$tb_id" title="TrackBack">trackback$tb</a>
What is this supposed to do? If you want to expose your trackback URL to people who are doing
manual trackbacks, You probably want something like:
<a href="$base_url/trackback.cgi/$file_path" title="Trackback">TB</a>
Ted
>------------------------------------------------------------------------
>
>py = {}
>xmlrpc = {}
>###############
># Start Below #
>###############
># What's this blog's title?
>py['blog_title'] = "Joseph Reagle"
>
># What's this blog's description (for outgoing RSS feed)?
>py['blog_description'] = "Open Communities, Media, Source, and Standards"
>
># What's this blog's primary language (for outgoing RSS feed)?
>py['blog_language'] = "en"
>
># Encoding for output. Default is iso-8859-1.
>py['blog_encoding'] = "iso-8859-1"
>
># Where are this blog's entries kept?
>py['datadir'] = "/home/reagle/data/2web/reagle.org/joseph/weblog"
>
># What should this blog use as its base url?
>py['base_url'] = "http://reagle.org/joseph/blog"
>
># Should I stick only to the datadir for items or travel down the directory
># hierarchy looking for items? If so, to what depth?
># 0 = infinite depth (aka grab everything), 1 = datadir only, n = n levels down
>py['depth'] = 0
>
># How many entries should I show on the home page?
>py['num_entries'] = 10
>
>###########################
># Optional Configurations #
>###########################
>
># Default parser/preformatter. Defaults to plain (does nothing)
>#py['parser'] = 'plain'
>py['parser'] = 'textile'
>
># Using Caching? Caching speeds up rendering the page that is going to be
># shown. Even if you are not using pyblosxom special features, caching can
># improve rendering speed of certain flavours that can show a large number of
># files at one time. Choose a cache mechanism you'd like, see the
># Pyblosxom/cache/ directory, and read the source on how to enable caching with
># the particular cache driver, you need to set two variables:
>#py['cacheDriver'] = 'xxxx'
>#py['cacheConfig'] = ''
>
># Plugin directories:
># You can now specify where you plugins all lives, there are two types
># of plugindirectories, the standard pyblosxom plugins, and the xmlrpc
># plugins. You can list out as many directories you want, but they
># should only contain the related plugins.
># Example: py['load_plugins'] = ['/opt', '/usr/bin']
>#py['plugin_dirs'] = ['/path/to/my/plugins']
>py['plugin_dirs'] = ['/home/reagle/data/2web/reagle.org/joseph/pyblosxom/contrib/plugins/']
>
>
># There are two ways for PyBlosxom to load plugins. The first is the
># default way which involves loading all the plugins in the lib/plugins
># directory in alphanumeric order. The second is by specifying a
># "load_plugins" key here. Doing so will cause us to load only the
># plugins you name and we will load them in the order you name them.
># The "load_plugins" key is a list of strings where each string is
># the name of a plugin module (i.e. the filename without the .py at
># the end).
># ex: py['load_plugins'] = ["pycalendar", "pyfortune", "pyarchives"]
>#py['load_plugins'] = []
>py['load_plugins'] = ["conditionalhttp","pyarchives","pycategories",
> "txtl", "breadcrumbs","comments"]
>
>###################################
># XMLRPC Configuration parameters #
>###################################
># XML-RPC data, if you use XMLRPC, then the information below needs to
># be set up
># Username and password to access this server, you can define one or more
>#xmlrpc['usernames'] = {'someuser': 'somepassword'}
>
># See the infomation above for setting up the plugins for xmlrpc
>#py['xmlrpc_plugin_dirs'] = ['/path/to/my/xmlrpc/plugins']
>#py['load_xmlrpc_plugins'] = []
>
># maxrequest_length - How much data do you expect to send via XMLRPC?
># Default is 10KB, which should actually be enough for quite a large
># posting. This is added to avoid attacks
>#xmlrpc['maxrequest_length'] = 10000
>
>###########################
># Nothing to modify below #
>###########################
>__author__ = 'Wari Wahab <wari at wari dot per dot sg>'
>__version__ = "0.8rc1"
>__date__ = "$Date: 2003/07/23 15:19:11 $"
>__revision__ = "$Revision: 1.3 $"
>__copyright__ = "Copyright (c) 2003 Wari Wahab"
>__license__ = "MIT License"
>py['pyblosxom_version'] = __version__
>py['pyblosxom_name'] = 'pyblosxom'
>
>
--
Ted Leung
Principal, Sauria Associates, LLC
9506 NE North Town Loop
Bainbridge Island WA 98110-3521
(206) 780-7918
[email protected] | http://www.sauria.com | http://www.sauria.com/blog
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01