Todd A. Jacobs | 2 Jul 14:45
Favicon

Blog farming with pyblosxom and apache2

I'm having some trouble figuring out how to get multiple pyblosxom
instances workingi on the same server. I thought I could do it like so:

    <VirtualHost *>
	    ServerName foo.example.com
	    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
	    DocumentRoot /var/www/foo
	    RewriteEngine On
	    RewriteRule   ^/blogs/([^?]+)(.*)$ /cgi-bin/pyblosxom.cgi$2 [E=SCRIPT_FILENAME:/etc/pyblosxom/$1]
    </VirtualHost>

with files in /etc/pyblosxom named for each blog. For example,
/etc/pyblosxom/foobar would serve up http://foo.example.com/blogs/foobar
once the elements of /etc/pyblosxom/foobar were all configured.

This doesn't seem to work for me; I just get apache errors saying:

    File does not exist: /var/www/foo/cgi-bin

when I can clearly stat /usr/lib/cgi-bin/pyblosxom.cgi from the command
line.

Can anyone point me to some information on how to do this correctly?

--

-- 
"Oh, look: rocks!"
	-- Doctor Who, "Destiny of the Daleks"

------------------------------------------------------------------------------
(Continue reading)

sha | 29 May 16:24

need help with comments.py

Hi,

I installed Pyblosxom 1.4.3 on a Debian Lenny System. Works great so
far and I'm having much fun with it, but unfortunately there is one
thing I can't get to work: support for comments.

When I'm trying to submit a comment, the response is "an internal
server error occured". The comment file gets written, but the article
page will never load again. From apache error-log: 
"[ERROR] comments: bad comment
file: /home/sha/myblog/entries/comments/perfect-privacy-12434773"
more output: http://pastebin.com/fdf1e098

I'm using the comment-plugin from the contrib-1.3.3 tarball.

Any ideas..?

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
chaica | 25 Apr 17:23

pyblosxom doesn't seem to manage utf-8 with french language

Hi everyone,

I have filled the #2781177 bug.

I'm using the following configuration : 
py["blog_language"] = "fr"
py["blog_encoding"] = "utf-8"
py["locale"] = "fr_FR.UTF-8"

When executing pyblosxom : 
# pyblosxom-cmd staticrender
pyblosxom-cmd version 1.5 dev
Trying to import the config module....
Performing static rendering.
rendering 2 entries.
rendering 1 category indexes.
rendering 4 date indexes.
rendering 0 arbitrary urls.
(before) building 7 files.
building 7 files.
rendering '/firstpost.html' ...
rendering '/maparticipation.html' ...
Traceback (most recent call last):
  File "/usr/bin/pyblosxom-cmd", line 5, in ?
    pkg_resources.run_script('pyblosxom==1.5', 'pyblosxom-cmd')
  File
"/usr/lib/python2.4/site-packages/setuptools-0.6c7-py2.4.egg/pkg_resources.py", line 448, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File
"/usr/lib/python2.4/site-packages/setuptools-0.6c7-py2.4.egg/pkg_resources.py", line 1166, in run_script
(Continue reading)

tchomby | 11 Apr 17:23

Updated markdown plugin

New markdown plugin for pyblosxom that uses python-markdown 2.0:

    http://gist.github.com/93153

Can this be added to the plugin registry?

The old markdown plugin that is still linked to in the pyblosxom
plugin registry is a very old one. It contains a complete
implementation of markdown inside the plugin itself, it's buggy, and
it's unmaintained.

A while ago Benjamin Mako Hill posted a better plugin that uses
[python-markdown], the leading implementation of markdown in python,
rather than implementing markdown in the plugin itself. I've now
updated that plugin to use the new python-markdown 2.0. This is much
less buggy than the old markdown plugin that's in the registry,
python-markdown is actively maintained, and python-markdown has a
_lot_ of nice extra features in the extensions that come with it.
Since we (the pyblosxom community) need only maintain a pyblosxom
plugin that uses python-markdown via python-markdown's stable API, we
will not need to release new versions of the plugin when bugs are
fixed and features added to python-markdown, users can update their
versions of python-markdown and the pyblosxom plugin will continue to
work.

[python-markdown]: http://www.freewisdom.org/projects/python-markdown/

------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
(Continue reading)

heaven | 6 Mar 07:04

support multiple comments per file

Reviewers: pyblosxom-users,

Message:
hi all! this change added support for multiple comments in a single
file. it also added a script for "compacting" all comments for an entry
into a single file.

this improves performance for entries with large numbers of comments,
which otherwise have to glob, stat, and read a large number of comment
files during rendering.

i've uploaded it to http://codereview.appspot.com/ , which is a
lightweight, web-based code review tool. if anyone's interested in
reviewing it, please do!

(ignore the comments.js change; it's unrelated. it was supposed to go
in, but i didn't mean to check it in in this change.)

thanks in advance...

Description:
hi all! this change add support for multiple comments in a single file.
it also adds a script for "compacting" all comments for an entry into a
single file.

this improves performance for entries with large numbers of comments,
which otherwise have to glob, stat, and read a large number of comment
files during rendering.

(ignore the comments.js change; it's unrelated. it was supposed to go
(Continue reading)

Chris McCormick | 2 Aug 15:45

pagination

Hi,

I set num_entries to 5 in my config.py and now 5 entries are showing on
my blog. There doesn't seem to be a link to older entries though - is
this something I have missed in my template or something?

Best,

Chris.

-------------------
http://mccormick.cx

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Wu Zhe | 2 Aug 09:47
Gravatar

how to identify entry page in templates

I am using http://disqus.com/ for comments in my blog, it require
different javascript code to embed into the blog entry pages and index
pages, How can I differentiate entry page and index page in templates
in order to insert the right javascript?

--

-- 
Wu Zhe
Best Regards

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Brianna Laugher | 31 Jul 19:31
Gravatar

Solving the 500 Internal error from ImportError

Hi,

I'm new to Pyblosxom but have some Python experience.

I managed to get Pyblosxom 1.4.3 up and running by following
<http://pyblosxom.sourceforge.net/1.4/manual/install_cgi.html> but
putting config.py and pyblosxom.cgi in my base dir. It worked fine
until I tried to click on the permalink to my first test entry. The
permalink went to "http://domain.com/first-post.html" and not
surprisingly it 404ed.

So I thought OK, maybe I was trying to be too clever, and I should put
my config.py and pyblosxom.cgi in a cgi-bin dir after all. (I have no
idea what difference it makes, CGI is one thing I know nothing about.
I use Dreamhost shared hosting and I was just taking a punt that it
would work at all. :))

So I created the cgi-bin directory and moved config.py and
pyblosxom.cgi there, and made my nice relative paths in config.py into
absolute paths.

Running ./pyblosxom.cgi in the command line works without
show-stopping complaint, but the website produces a 500 error thanks
to not being able to import the right script.

http://laugher.id.au/cgi-bin/pyblosxom.cgi

I have the codebase parameter set. I tried running python from the
cgi-bin dir, doing this:

(Continue reading)

Fernando Espinoza | 17 Jun 09:42

Getting 404 for urls that end in .[flavour]

Hello.

I installed pyblosxom yesterday, and have been trying to get it to work for just too many hours.

You can see in http://www.sanpanchoblog.com/ that the links for RSS, comments, permanent link, etc... all result in 404s. Anything that ends with foo.flavourname fails, but if I substitute foo/?flav=flavourname it works.

e.g:
http://www.sanpanchoblog.com/index.rss20 FAILS
http://www.sanpanchoblog.com/?flav=rss20 SUCCEEDS

What am I doing wrong? How can I fix this?

You can see a copy of the output on debug mode at: http://www.sanpanchoblog.com/dump.html

Thank you.

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
pyblosxom-users mailing list
pyblosxom-users@...
https://lists.sourceforge.net/lists/listinfo/pyblosxom-users
Seb | 22 May 23:43
Gravatar

UTF-8 in config.py

Hi,

I need to serve pages in UTF-8, and have set up a head.html in my
flavor that starts as follows:

---<---------------cut here---------------start-------------->---
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

  <head>
    <title>$blog_title_with_path $pi_da $pi_mo $pi_yr</title>
    <link rel="author" href="http://my/url" />
    <meta http-equiv="Content-Type"
    	  content="application/xhtml+xml; charset=utf-8" />
---<---------------cut here---------------end---------------->---

This allows for serving UTF-8 characters in stories and in any files of
the flavor.  However, if any of these characters are used in
/etc/pyblosxom/config.py, then the engine fails and the following error
is displayed:

---<---------------cut here---------------start-------------->---
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster <at> localhost and inform them of the time the error
occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
---<---------------cut here---------------end---------------->---

For instance, trying to set:

py['blog_description'] = "Canción"

Any ideas on how to get around this?  Thanks.

--

-- 
Seb

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
pyblosxom-users mailing list
pyblosxom-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyblosxom-users
Steve Clark | 5 May 23:13

Re: pyblosxom rewrite and comments

On Monday 05 May 2008 16:25:06 sigi wrote:
> I activated mod_rewrite with a .htaccess-file as mentioned in your
> documentation with:
> RewriteEngine on
> RewriteRule  ^(.*)$ /cgi-bin/pyblosxom.cgi/$1  [last]

That's what I'm using. It took me a while to get around to using mod_rewrite, 
but it does make for much clearer URLs.

> The rewriting works well, but I can't get the comments-plugin working
> now: It simply rejects all incoming comments.
> My datadir is set to /var/www/ - if I set comment_dir to
> /var/www/comments (where it's located) or not, doesn't make any
> difference.

> The standard form-method in my comments-form looks like
> <form method="post" action="$base_url/$file_path.$flavour#comment_anchor"
> name="comments_form"> I also tried to give the static url,
> /cgi-bin/pyblosxom.cgi included, but that didn't help.

I was having some issues with submitting comments. I think it was related to 
whether people came to my site with a URL without the www. I ended up 
changing my comment-form.html to hard-code the base URL as below

<form method="post" action="/cgi-bin/pyblosxom.cgi/$file_path"

That seems to work.

Good luck.

--

-- 
Steve

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

Gmane