Ted Leung on the air
Ted Leung on the air: Open Source, Java, Python, and ...
Ted Leung on the air: Open Source, Java, Python, and ...
Fri, 10 Dec 2004
Pyblosxom comment previews (and more)
[00:14] |
[computers/internet/weblogs/pyblosxom] |
# |
TB |
F |
G |
1 Comments |
In Pyblosxom 1.1 (coming soon), we've decided to unbundle plugins from the distribution. I've been merging a bunch of changes that people have made to the comments plugin. The new plugin is available here.
If you are already using the comments plugin, there is a significant change to the behavior. You will need to modify your comments-story.html template to have just the content that should appear between the end of story.html and comment.html. This will typically be a <div class="blosxomComments">
tag. If you see the body of your entry twice, you didn't modify the comments-story template.
Here's a list of the changes:
- Comment previews [ Bill Mill ]
- Users can configure the plugin to force all new comments into a "draft" mode where they have to be manually "published". Set
py['comment_draft_ext']
to a filename extension. New comments are given this extension and must be renamed to have the regular comment_ext in order to published - Add a comment rejection callback allowing people to write their own comment rejection plugins. [ Will Guaraldi ]
- Add $message variable so that users can see what happened to their comment: whether it was rejected, whether it was successful, whether it's in draft mode, ... [ Will Guaraldi ]
- Stop stomping templates [ Will Guaraldi ]
- Rich HTML mail notifications [ Roberto De Almeida ]
Hi Ted!
I've been trying your comments.py and added a comment_draft_ext to my config.py. It seems to work since I get a file on my comments directory with the right extension, but I cannot rename the file, since it belongs to apache!
So far I'm only playing with pyBlosxom on my localhost, a Mdk 10.1 box with python-2.3.4-6mdk, libxml2-python-2.6.13-1.1.101mdk and apache2-2.0.50-7.2.101md, and I've noticed theat comments belong to apache:apache, so I cannot rename or remove them. Of course this is not a problem now that I can become root at any time, but when I move my blog to my ISP... you see what I mean (by the way, comments there are owned by nobody:nobody). Am I doing something terribly wrong?
Thanks in advance.
Jordi.
Posted by Jordi at Tue Jan 18 01:48:13 2005
I've been trying your comments.py and added a comment_draft_ext to my config.py. It seems to work since I get a file on my comments directory with the right extension, but I cannot rename the file, since it belongs to apache!
So far I'm only playing with pyBlosxom on my localhost, a Mdk 10.1 box with python-2.3.4-6mdk, libxml2-python-2.6.13-1.1.101mdk and apache2-2.0.50-7.2.101md, and I've noticed theat comments belong to apache:apache, so I cannot rename or remove them. Of course this is not a problem now that I can become root at any time, but when I move my blog to my ISP... you see what I mean (by the way, comments there are owned by nobody:nobody). Am I doing something terribly wrong?
Thanks in advance.
Jordi.
Posted by Jordi at Tue Jan 18 01:48:13 2005
You can subscribe to an RSS feed of the comments for this blog:
Add a comment here:
You can use some HTML tags in the comment text:
To insert a URI, just type it -- no need to write an anchor tag.
Allowable html tags are:
You can also use some Wiki style:
URI => [uri title]
<em> => _emphasized text_
<b> => *bold text*
Ordered list => consecutive lines starting spaces and an asterisk
To insert a URI, just type it -- no need to write an anchor tag.
Allowable html tags are:
<a href>
, <em>
, <i>
, <b>
, <blockquote>
, <br/>
, <p>
, <code>
, <pre>
, <cite>
, <sub>
and <sup>
.You can also use some Wiki style:
URI => [uri title]
<em> => _emphasized text_
<b> => *bold text*
Ordered list => consecutive lines starting spaces and an asterisk