questions on 1.5rc3
Joseph Reagle <[email protected]> Mon, 15 Aug 2011 16:13:21 -0400
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Organization | Open Codex |
| Message-ID | <[email protected]> |
--Boundary-00=_h3XSOAOkS0PvwLr
Content-Type: multipart/alternative; boundary="Boundary-01=_h3XSOV3/s86efW5"
Content-Transfer-Encoding: 7bit
--Boundary-01=_h3XSOV3/s86efW5
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
I decided to try to move to the latest and greatest (again) and stubbed my toes on the following:
1. If `config` is install, the cgi script will import it first and throw an error <http://pypi.python.org/pypi/config/0.3.7> .
2. How to get comments to work? I've attached my config.py, I think it is set correctly, but I'm not seeing anything appropriate on:
http://reagle.org/joseph/blog3/
--Boundary-01=_h3XSOV3/s86efW5
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Arial'; font-size:11pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">I decided to try to move to the latest and greatest (again) and stubbed my toes on the following:</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">1. If `config` is install, the cgi script will import it first and throw an error <http://pypi.python.org/pypi/config/0.3.7> .</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">2. How to get comments to work? I've attached my config.py, I think it is set correctly, but I'm not seeing anything appropriate on:</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"> http://reagle.org/joseph/blog3/</p></body></html>
--Boundary-01=_h3XSOV3/s86efW5--
--Boundary-00=_h3XSOAOkS0PvwLr
Content-Type: text/x-python;
charset="UTF-8";
name="config.py"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="config.py"
# -*- coding: utf-8 -*-
# =================================================================
# This is the config file for PyBlosxom. You should go through
# this file and fill in values for the various properties. This
# affects the behavior of your blog.
#
# This is a Python code file and as such must be written in
# Python.
#
# There are configuration properties that are not detailed in
# this file. These are the properties that are most often used.
# To see a full list of configuration properties as well as
# additional documentation, see the PyBlosxom documentation on
# the web-site for your version of PyBlosxom.
# =================================================================
# TODO
# remove 'new' from reagle-contrib-new
# convert textile files to HTML with date stamps preserved
# Don't touch this next line.
py = {}
# Codebase configuration
# ======================
# If you did not install PyBlosxom as a library (i.e. python setup.py install)
# then uncomment this next line and point it to your PyBlosxom installation
# directory.
#
# Note, this should be the parent directory of the "Pyblosxom" directory
# (note the case--uppercase P lowercase b!).
#py["codebase"] = "/home/reagle/bin/virts/pyblosxom-1.5rc3/lib/python2.7/site-packages"
import os
blogdir = "/home/reagle/data/2web/pyblosxom-1.5rc3/"
# Blog configuration
# ==================
# What is the title of this blog?
py['blog_title'] = "Joseph Reagle"
# What is the description of this blog?
py['blog_description'] = "Open Communities, Media, Source, and Standards"
# Who are the author(s) of this blog?
py['blog_author'] = "Joseph Reagle"
# What is the email address through which readers of the blog may contact
# the authors?
#py["blog_email"] = "[email protected]"
# These are the rights you give to others in regards to the content
# on your blog. Generally, this is the copyright information.
# This is used in the Atom feeds. Leaving this blank or not filling
# it in correctly could result in a feed that doesn't validate.
py["blog_rights"] = "Copyright 2003-2011 Joseph Reagle"
# What is this blog's primary language (for outgoing RSS feed)?
py["blog_language"] = "en"
# Encoding for output. This defaults to utf-8.
py["blog_encoding"] = "utf-8"
# What is the locale for this blog? This is used when formatting dates
# and other locale-sensitive things. Make sure the locale is valid for
# your system. See the configuration chapter in the PyBlosxom documentation
# for details.
#py["locale"] = "en_US.iso-8859-1"
# Where are this blog's entries kept?
#py["datadir"] = os.path.join(blogdir, "entries")
py["datadir"] = "/home/reagle/data/2web/reagle.org/joseph/content"
# Where are this blog's flavours kept?
#py["flavourdir"] = os.path.join(blogdir, "flavours")
#py["flavourdir"] = "/home/reagle/data/2web/reagle.org/joseph/flavours"
# List of strings with directories that should be ignored (e.g. "CVS")
# ex: py['ignore_directories'] = ["CVS", "temp"]
py["ignore_directories"] = []
# 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 and category pages?
# If you put 0 here, then I will show all pages.
# Note: this doesn't affect date-based archive pages.
py["num_entries"] = 10
# What is the default flavour you want to use when the user doesn't
# specify a flavour in the request?
py["default_flavour"] = "html"
# Logging configuration
# =====================
# Where should PyBlosxom write logged messages to?
# If set to "NONE" log messages are silently ignored.
# Falls back to sys.stderr if the file can't be opened for writing.
#py["log_file"] = os.path.join(blogdir, "logs", "pyblosxom.log")
py['log_file'] = "/home/reagle/logs/pyblosxom1.3/pyblosxom.log"
# At what level should we log to log_file?
# One of: "critical", "error", "warning", "info", "debug"
# For production, "warning" or "error' is recommended.
py["log_level"] = "warning"
# This lets you specify which channels should be logged.
# If specified, only messages from the listed channels are logged.
# Each plugin logs to it's own channel, therefor channelname == pluginname.
# Application level messages are logged to a channel named "root".
# If you use log_filter and ommit the "root" channel here, app level messages
# are not logged! log_filter is mainly interesting to debug a specific plugin.
#py["log_filter"] = ["root", "plugin1", "plugin2"]
# Plugin configuration
# ====================
# Plugin directories:
# This allows you to specify which directories have plugins that you
# want to load. You can list as many plugin directories as you
# want.
# Example: py['plugin_dirs'] = ["/home/joe/blog/plugins",
# "/var/lib/pyblosxom/plugins"]
py["plugin_dirs"] = [
os.path.join(blogdir, "plugins"),
os.path.join(blogdir, "plugins/headers"),
os.path.join(blogdir, "plugins/category"),
os.path.join(blogdir, "plugins/comments"),
'/home/reagle/data/2web/pyblosxom-contrib-reagle-new',
]
# There are two ways for PyBlosxom to load plugins:
#
# The first is the default way where PyBlosxom loads all plugins it
# finds in the directories specified by "plugins_dir" in alphanumeric
# order by filename.
#
# The second is by specifying a "load_plugins" key here. Specifying
# "load_plugins" will cause PyBlosxom to load only the plugins you name
# and in 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).
#
# If you specify an empty list, then this will load no plugins.
# ex: py["load_plugins"] = ["pycalendar", "pyfortune", "pyarchives"]
py["load_plugins"] = [
'htmlentryparser',
'txtl',
'breadcrumbs',
#'mdtext', # 'pymarkdown', 'pyarchives',
'conditionalhttp',
'pycategories',
'comments', # 'xmlrpc',
'wbgcomment_blacklist',
'magicword',
]
# ======================
# Plugin config variables
# ======================
py['comment_dir'] = "/home/reagle/data/2web/reagle.org/joseph/comments"
py['comment_draft_ext'] = 'wat'
py['trackback_urltrigger'] = "/trackback"
py['comment_rejected_words'] = ['casino', 'poker', 'loans', 'mortgage', 'drugs',
'loss', 'blackjack']
py['comment_nofollow'] = True
py['mw_question'] = "The opposite of closed (the first word of this blog's title) is?"
py['mw_answer'] = "open"
#py['archive_template'] = '<li><a href="%(base_url)s/%(Y)s">%(Y)s</a></li>'
# ======================
# Optional Configuration
# ======================
# What should this blog use as its base url?
#py["base_url"] = "http://www.example.com/weblog"
py['base_url'] = "http://reagle.org/joseph/blog3"
# Default parser/preformatter. Defaults to plain (does nothing)
#py["parser"] = "plain"
# Static rendering
# ================
# Doing static rendering? Static rendering essentially "compiles" your
# blog into a series of static html pages. For more details, see the
# documentation.
#
# What directory do you want your static html pages to go into?
#py["static_dir"] = "/path/to/static/dir"
# What flavours should get generated?
#py["static_flavours"] = ["html"]
# What other paths should we statically render?
# This is for additional urls handled by other plugins like the booklist
# and plugin_info plugins. If there are multiple flavours you want
# to capture, specify each:
# ex: py["static_urls"] = ["/booklist.rss", "/booklist.html"]
#py["static_urls"] = ["/path/to/url1", "/path/to/url2"]
# Whether (1) or not (0) you want to create date indexes using month
# names? (ex. /2004/Apr/01) Defaults to 1 (yes).
#py["static_monthnames"] = 1
# Whether (1) or not (0) you want to create date indexes using month
# numbers? (ex. /2004/04/01) Defaults to 0 (no).
#py["static_monthnumbers"] = 0
--Boundary-00=_h3XSOAOkS0PvwLr
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model
configuration take the hassle out of deploying and managing Subversion and
the tools developers use with it. Learn more about uberSVN and get a free
download at: http://p.sf.net/sfu/wandisco-dev2dev
--Boundary-00=_h3XSOAOkS0PvwLr
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
pyblosxom-users mailing list
pyblosxom-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/pyblosxom-users
--Boundary-00=_h3XSOAOkS0PvwLr--