You can subscribe to this list here.
| 2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(5) |
Dec
(5) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2003 |
Jan
(53) |
Feb
(81) |
Mar
(47) |
Apr
(29) |
May
(32) |
Jun
(24) |
Jul
(41) |
Aug
(86) |
Sep
(40) |
Oct
(28) |
Nov
(11) |
Dec
(23) |
| 2004 |
Jan
(32) |
Feb
(54) |
Mar
(30) |
Apr
(28) |
May
(113) |
Jun
(17) |
Jul
(5) |
Aug
(111) |
Sep
(103) |
Oct
(18) |
Nov
(5) |
Dec
(38) |
| 2005 |
Jan
(31) |
Feb
(26) |
Mar
(69) |
Apr
(36) |
May
(45) |
Jun
(35) |
Jul
(11) |
Aug
(25) |
Sep
(9) |
Oct
(27) |
Nov
(4) |
Dec
(11) |
| 2006 |
Jan
(33) |
Feb
(11) |
Mar
(7) |
Apr
(10) |
May
(11) |
Jun
(2) |
Jul
(9) |
Aug
(7) |
Sep
(22) |
Oct
(40) |
Nov
(34) |
Dec
(5) |
| 2007 |
Jan
(21) |
Feb
(23) |
Mar
(28) |
Apr
(1) |
May
(15) |
Jun
(45) |
Jul
(71) |
Aug
(45) |
Sep
(52) |
Oct
(31) |
Nov
(20) |
Dec
(6) |
| 2008 |
Jan
(17) |
Feb
(25) |
Mar
(7) |
Apr
(5) |
May
(9) |
Jun
(3) |
Jul
(2) |
Aug
(4) |
Sep
|
Oct
|
Nov
|
Dec
|
| 2009 |
Jan
|
Feb
|
Mar
(2) |
Apr
(3) |
May
(1) |
Jun
(1) |
Jul
(15) |
Aug
(9) |
Sep
(10) |
Oct
(1) |
Nov
|
Dec
|
| 2010 |
Jan
(42) |
Feb
(28) |
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
(3) |
Aug
(7) |
Sep
(19) |
Oct
(14) |
Nov
(27) |
Dec
(14) |
| 2011 |
Jan
(8) |
Feb
(9) |
Mar
(9) |
Apr
|
May
|
Jun
(2) |
Jul
|
Aug
(18) |
Sep
|
Oct
|
Nov
|
Dec
(6) |
| 2012 |
Jan
(5) |
Feb
(2) |
Mar
(2) |
Apr
|
May
|
Jun
(13) |
Jul
|
Aug
|
Sep
|
Oct
(3) |
Nov
|
Dec
(4) |
| 2013 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
(9) |
Aug
|
Sep
|
Oct
(3) |
Nov
|
Dec
|
| 2016 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Dieter P. <di...@pl...> - 2010-12-24 12:19:42
|
Guys, I'm fighting with the comments plugin and have some questions: * who still has a copy of magicwords.py? the reference to it has been removed from git 2 years ago, and i can't find the plugin anywhere online. http://gitorious.org/pyblosxom/pyblosxom-web/commit/20c41ad28f2c42b5cdb3ad34eb46fbb386bbd507 preferrably a recent version, i'm running (trying to) PB 1.5 * can I prohibit users from using the nickname 'Dieter_be', my full name, a hostname on my domain, etc in the name/url/e-mail fields? * can users use a title in their comment? I see there is a title field, which is used as some kind of spam prevention (it holds the title of the entry), but it seems silly (redundant and useless) to store this in the actual xml of the comment * does anyone have code for working threaded (nested) comments? i.e. the ability to reply to a specific comment and render comments as such. * is it possible to show "validition warnings" when a comment is not accepted? when i try to make comments and i "forget" a field like 'Name', the comment will be silently dropped, forcing me to fill in everything again, and hoping it's better the n+1th try. i would expect the new page contains all my text but error messages for the appropriate fields. Also, fieldnames in bold for mandatory stuff would be useful. (although i can easily just hack that in the template) Dieter |
|
From: Bill P. <wi...@wh...> - 2010-12-23 22:08:47
|
Sorry it's taken me so long to get back to you. I tried to patch __init__.py and template.py and here are my results using the patches you sent: root@funnyfarm:/share/www/whpiv.net/blog/plugins/webfront# patch template.py -i pbwebfront-templatepy.patch -o template.py patching file template.py Hunk #3 FAILED at 172. Hunk #4 FAILED at 180. Hunk #6 FAILED at 242. Hunk #7 FAILED at 272. Hunk #8 FAILED at 294. 5 out of 8 hunks FAILED -- saving rejects to file template.py.rej root@funnyfarm:/share/www/whpiv.net/blog/plugins/webfront# patch __init___orig.py -i pbwebfront.patch -o __init__.py patching file __init___orig.py Hunk #1 FAILED at 30. Hunk #2 FAILED at 56. Hunk #3 FAILED at 59. Hunk #4 FAILED at 63. Hunk #6 FAILED at 91. 5 out of 6 hunks FAILED -- saving rejects to file __init__.py.rej patching file __init___orig.py Hunk #2 FAILED at 720. Hunk #3 FAILED at 788. Hunk #4 FAILED at 806. Hunk #5 FAILED at 827. Hunk #6 FAILED at 831. Hunk #7 FAILED at 1112. 6 out of 7 hunks FAILED -- saving rejects to file __init__.py.rej patching file __init___orig.py I'm not a 100% sure on what I'm doing. How should I be using these patches? Thanks, Bill |
|
From: will kahn-g. <wi...@bl...> - 2010-12-21 21:59:02
|
Tags are not part of PyBlosxom core. The only way to get tags functionality is with one of the various tags plugins out there. I use the one I wrote which is in git master. Categories are part of PyBlosxom core. Since tags are implemented as a plugin, you can add additional functionality to the plugin to get what you're looking for. It definitely doesn't do any of the things you're asking about currently. On my blog, I use categories and tags. Tags for user navigation and categories for loosely breaking up all the entries in my blog into smaller sub-directories on the file-system. On 12/21/2010 04:37 PM, Dieter Plaetinck wrote: > The way I see it, tags have only advantages over categories. > So once you use tags, what use is there still for categories? > Is there anything that you can do with categories, but you can't with > tags? > > one thing i'm especially interested in: how useful are both tags and > categories for splitting up contents, even in rss feeds? > > let me clarify. > suppose i have a blog about real life, technical stuff, and linux. > > with categories, i could create a structure like: > / > /life > /tech > /tech/linux > > with tags, i could have tag 'life', 'tech' and 'linux' > > Suppose i would do a post about a linux conference, with > categories, that's both '/life' and '/tech/linux', but i can only pick > one; but if i use tags I can use both 'linux' and 'life' > > But anyway, my real question is: is it possible to give people rss > feeds for specific parts of the site? for categories: a /life feed, and > a /tech feed, for tags a feed for the 'life' tag and a feed for > "any tag minus life"? > I assume the latter is not possible, which is exactly why there is > still a use for categories? > > Furthermore, it would be cool (and useful) if anyone could > request a url like <baseurl>/rss20/!life/!bsd/music; which would feed > all entries except the ones who have tag 'life' or 'bsd', unless they > have the 'music' tag. > > Another thing, it could be useful to incorporate category-functionality > into tags so that if i tag something as 'tech/linux' it will also show > up when i list everything with tag 'tech' > > > Dieter |
|
From: Dieter P. <di...@pl...> - 2010-12-21 21:38:08
|
The way I see it, tags have only advantages over categories. So once you use tags, what use is there still for categories? Is there anything that you can do with categories, but you can't with tags? one thing i'm especially interested in: how useful are both tags and categories for splitting up contents, even in rss feeds? let me clarify. suppose i have a blog about real life, technical stuff, and linux. with categories, i could create a structure like: / /life /tech /tech/linux with tags, i could have tag 'life', 'tech' and 'linux' Suppose i would do a post about a linux conference, with categories, that's both '/life' and '/tech/linux', but i can only pick one; but if i use tags I can use both 'linux' and 'life' But anyway, my real question is: is it possible to give people rss feeds for specific parts of the site? for categories: a /life feed, and a /tech feed, for tags a feed for the 'life' tag and a feed for "any tag minus life"? I assume the latter is not possible, which is exactly why there is still a use for categories? Furthermore, it would be cool (and useful) if anyone could request a url like <baseurl>/rss20/!life/!bsd/music; which would feed all entries except the ones who have tag 'life' or 'bsd', unless they have the 'music' tag. Another thing, it could be useful to incorporate category-functionality into tags so that if i tag something as 'tech/linux' it will also show up when i list everything with tag 'tech' Dieter |
|
From: Dieter P. <di...@pl...> - 2010-12-21 15:14:14
|
For those who are interested in migrating a drupal-based blog to pyblosxom, I'm working on a tool to automate the process. See http://dieter.plaetinck.be/migrating_blogs_from_drupal_to_pyblosxom https://github.com/Dieterbe/drupal-to-pyblosxom Dieter |
|
From: Bill P. <wi...@wh...> - 2010-12-20 06:22:32
|
On 201210-00:19, Michael Goddard wrote: > parsed = tools.parse(self.request, self, self.core) This was the one thing I tried which didn't completely fix my problem which you might have already figured out by now. [Mon Dec 20 00:20:34 2010] [error] [client 38.114.64.90] Traceback (most recent call last): [Mon Dec 20 00:20:34 2010] [error] [client 38.114.64.90] File "/usr/lib/python2.6/wsgiref/handlers.py", line 93, in run [Mon Dec 20 00:20:34 2010] [error] [client 38.114.64.90] self.result = application(self.environ, self.start_response) [Mon Dec 20 00:20:34 2010] [error] [client 38.114.64.90] File "/usr/local/lib/python2.6/dist-packages/pyblosxom-1.5rc2-py2.6.egg/Pyblosxom/pyblosxom.py", line 458, in __call__ [Mon Dec 20 00:20:34 2010] [error] [client 38.114.64.90] return [self.run_pyblosxom(env, start_response)] [Mon Dec 20 00:20:34 2010] [error] [client 38.114.64.90] File "/usr/local/lib/python2.6/dist-packages/pyblosxom-1.5rc2-py2.6.egg/Pyblosxom/pyblosxom.py", line 450, in run_pyblosxom [Mon Dec 20 00:20:34 2010] [error] [client 38.114.64.90] p.run() [Mon Dec 20 00:20:34 2010] [error] [client 38.114.64.90] File "/usr/local/lib/python2.6/dist-packages/pyblosxom-1.5rc2-py2.6.egg/Pyblosxom/pyblosxom.py", line 173, in run [Mon Dec 20 00:20:34 2010] [error] [client 38.114.64.90] donefunc=lambda x:x) [Mon Dec 20 00:20:34 2010] [error] [client 38.114.64.90] File "/usr/local/lib/python2.6/dist-packages/pyblosxom-1.5rc2-py2.6.egg/Pyblosxom/tools.py", line 776, in run_callback [Mon Dec 20 00:20:34 2010] [error] [client 38.114.64.90] output = func(input) [Mon Dec 20 00:20:34 2010] [error] [client 38.114.64.90] File "/share/www/whpiv.net/blog/plugins/webfront/__init__.py", line 50, in cb_handle [Mon Dec 20 00:20:34 2010] [error] [client 38.114.64.90] webfront.handle() [Mon Dec 20 00:20:34 2010] [error] [client 38.114.64.90] File "/share/www/whpiv.net/blog/plugins/webfront/webfront.py", line 275, in handle [Mon Dec 20 00:20:34 2010] [error] [client 38.114.64.90] self.render() [Mon Dec 20 00:20:34 2010] [error] [client 38.114.64.90] File "/share/www/whpiv.net/blog/plugins/webfront/webfront.py", line 336, in render [Mon Dec 20 00:20:34 2010] [error] [client 38.114.64.90] self.template.render() [Mon Dec 20 00:20:34 2010] [error] [client 38.114.64.90] File "/share/www/whpiv.net/blog/plugins/webfront/template.py", line 170, in render [Mon Dec 20 00:20:34 2010] [error] [client 38.114.64.90] parsed = tools.parse(self.request, self, self.core)#encoding, [Mon Dec 20 00:20:34 2010] [error] [client 38.114.64.90] File "/usr/local/lib/python2.6/dist-packages/pyblosxom-1.5rc2-py2.6.egg/Pyblosxom/tools.py", line 486, in parse [Mon Dec 20 00:20:34 2010] [error] [client 38.114.64.90] return _VAR_REGEXP.sub(replacer.replace, template) [Mon Dec 20 00:20:34 2010] [error] [client 38.114.64.90] File "/usr/local/lib/python2.6/dist-packages/pyblosxom-1.5rc2-py2.6.egg/Pyblosxom/tools.py", line 454, in replace [Mon Dec 20 00:20:34 2010] [error] [client 38.114.64.90] elif len(inspect.getargspec(r)[0]) == 2: [Mon Dec 20 00:20:34 2010] [error] [client 38.114.64.90] File "/usr/lib/python2.6/inspect.py", line 803, in getargspec [Mon Dec 20 00:20:34 2010] [error] [client 38.114.64.90] raise TypeError('arg is not a Python function') [Mon Dec 20 00:20:34 2010] [error] [client 38.114.64.90] TypeError: arg is not a Python function |
|
From: Bill P. <wi...@wh...> - 2010-12-20 00:25:20
|
I'm not having much luck with webfont and Pyblosxom 1.5. [05:37:22] ~$ pyblosxom-cmd --version pyblosxom-cmd version 1.5rc2 20100803 When I browse to http://whpiv.net/blog/blog.cgi?edit=entry I get the following in my error.log [Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1] Traceback (most recent call last): [Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1] File "/usr/lib/python2.6/wsgiref/handlers.py", line 93, in run [Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1] self.result = application(self.environ, self.start_response) [Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1] File "/usr/local/lib/python2.6/dist-packages/pyblosxom-1.5rc2-py2.6.egg/Pyblosxom/pyblosxom.py", line 458, in __call__ [Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1] return [self.run_pyblosxom(env, start_response)] [Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1] File "/usr/local/lib/python2.6/dist-packages/pyblosxom-1.5rc2-py2.6.egg/Pyblosxom/pyblosxom.py", line 450, in run_pyblosxom [Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1] p.run() [Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1] File "/usr/local/lib/python2.6/dist-packages/pyblosxom-1.5rc2-py2.6.egg/Pyblosxom/pyblosxom.py", line 173, in run [Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1] donefunc=lambda x:x) [Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1] File "/usr/local/lib/python2.6/dist-packages/pyblosxom-1.5rc2-py2.6.egg/Pyblosxom/tools.py", line 776, in run_callback [Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1] output = func(input) [Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1] File "/share/www/whpiv.net/blog/plugins/webfront/__init__.py", line 50, in cb_handle [Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1] webfront.handle() [Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1] File "/share/www/whpiv.net/blog/plugins/webfront/webfront.py", line 275, in handle [Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1] self.render() [Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1] File "/share/www/whpiv.net/blog/plugins/webfront/webfront.py", line 336, in render [Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1] self.template.render() [Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1] File "/share/www/whpiv.net/blog/plugins/webfront/template.py", line 170, in render [Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1] parsed = tools.parse(self.request, encoding, self, self.core) [Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1] TypeError: parse() takes exactly 3 arguments (4 given) I've tried playing around fixing it but it wasn't as simple as only passing in three of the arguments. Anyway, has anyone had webfront working with Pyblosxom 1.5? Thank, Bill |
|
From: Alexandre S. <cym...@vo...> - 2010-12-19 10:56:28
|
I'm considering which software to use for a blog that I would like to install in a personal home server (synology), and I was wondering whether pyblosxom could fit my needs. Here are my requirements: - Language management: I'll be writing in different languages, and some entries would be translated in different languages, not always the same. Blog readers should be able to select which languages they can/wish to read. For instance, if they chose English, then all entries which have English translation would appear in English, the remaining appearing in whatever language they were written, or not at all. Perhaps this could be implemented as some CSS option or javascript? - RSS customization: the blog will broach different subjects. I would like the users to be able to customize a RSS syndication which corresponds to their interests, so that the signal to noise ratio in their RSS readers remains bearable. This should probably work with a "Categoriy" or "Tag" system. Does any pybloxsom user have an idea on how that could be implemented using this engine? - sub-blogs: I would like to have sub-blogs with their own url, which would present a subset of the blog entries. For instance my blog could deal with politics, sports, and myLife, and I could produce the following blog urls: blog.mydomain.tld (shows everything), opinions.mydomain.tld (shows only the politics related posts), sports.mydomain.tld (all entries dedicated to sports). I would also like to theme differently those sub-blogs (i.e. a ball picture for sports.mydomain.tld, etc). - modular privacy + OpenID: my intended audience is heterogeneous (family, sets of friends, the internet), and I would like to be able to limit access to certain entries to different subsets of users. To me, the most obvious way to do this would be to define users with a login and password. I would then pool them into groups, and define for each entry if it is private, and if so which groups can read it. I do not necessarily want to share the same things between my neighbors and my school friends. That also brings the issue of RSS syndication: either each user would have its how RSS thread, or then RSS could be category specific and the private entries would appear without content. Perhaps other possibilities exist. One way to implement modular privacy could be based on OpenID. I like the Stack Overflow login system (check this screen capture of it: http://nsa20.casimages.com/img/2010/12/19/101219101041560868.png), because most readers already have an OpenID, and in any case do not need to create a specific one for my blog. So ideally my pyblosxom configuration should be hable to get OpenIDs, pool them into sets of users, and and output filtered entries depending on which group does the openid belong to. Do the pyblosxom users think this set of requirements could be satisfied with pyblsxom and its plugins, or at least with reasonnable amounts of tweaking (I do not have the time or expertise to generate an completely new blogging platform). |
|
From: jakbop <jon...@gm...> - 2010-11-24 18:23:11
|
Does anyone have the xlmrpc plug in is working with pyblosxom 1.5-Rc? I can
retrieve posts with metaweblog but posting raises an error:
'exceptions.UnboundLocalError'>:local variable 'f' referenced
before assignment.
Blog client = Ecto.
Thanks.
--
View this message in context: http://old.nabble.com/XLMRPC-and-1.5-Rc-tp30298640p30298640.html
Sent from the PyBlosxom mailing list archive at Nabble.com.
|
|
From: Dieter P. <di...@pl...> - 2010-11-07 15:05:38
|
On Sun, 07 Nov 2010 09:59:07 -0500 will kahn-greene <wi...@bl...> wrote: > You need to set the base_url config.py variable: > > py["base_url"] = "http://localhost" > > http://pyblosxom.bluesock.org/1.5/config_variables.html#base-url Oh man, i feel silly. I knew I got it working before, so I had been doing some git bisect sessions to find where it went wrong, without result. Turned out it went wrong when I made the typo in my deployment script in git. (the working version of the config itself was never committed because that's just mere output of my deploy script) thanks man. Dieter |
|
From: will kahn-g. <wi...@bl...> - 2010-11-07 14:59:16
|
You need to set the base_url config.py variable: py["base_url"] = "http://localhost" http://pyblosxom.bluesock.org/1.5/config_variables.html#base-url On 11/07/2010 09:54 AM, Dieter Plaetinck wrote: > I've now hardcoded my baseurl: > > $ grep base_url /srv/http/dieterblog/config.py > base_url = "http://localhost" > > However this does not solve the problem. > Like before, I tried disabling all plugins (and restarting lighty), to > no avail. My entire blog source code can be found at > https://github.com/Dieterbe/dieterblog > > Dieter > > On Tue, 2 Nov 2010 14:58:17 +0100 > Dieter Plaetinck <di...@pl...> wrote: > >> I use a fastcgi wsgi script, ran by Lighttpd. >> The script and the lighty config are in my previous mail, not sure >> what else you want to know? >> So if I understand what you're saying, the SCRIPT_NAME in the >> environment is incorrect. >> >> I think I might be hitting the following issue: >> http://redmine.lighttpd.net/issues/729 >> >> Dieter >> >> >> On Tue, 02 Nov 2010 09:50:14 -0400 >> will kahn-greene <wi...@bl...> wrote: >> >>> SCRIPT_NAME is an environment variable that comes from whatever >>> environment you're running PyBlosxom in. It shouldn't be the full >>> path--it should be the path from which the script was executed. >>> It's a pretty standard CGI variable. >>> >>> How does your environment build the SCRIPT_NAME variable? >>> >>> Regardless, the documentation encourages you to set the base_url in >>> your config.py file if it's not getting generated correctly for your >>> situation. I set it in my config.py file because I use mod_rewrite >>> for url rewriting. >>> >>> /will >>> >>> >>> On 11/02/2010 09:25 AM, Dieter Plaetinck wrote: >>>> Hi, >>>> I'm using the latest 1.5 code from git >>>> >>>> my flavours/html.flav/head contains: >>>> >>>> <a href="$(base_url)/">$(blog_title)</a> >>>> >>>> When I go to http://localhost/ this works fine: I see my blog with >>>> all entries, but then, I click a link to see an individual entry, >>>> say http://localhost/back_from_canada_archcon.html >>>> >>>> this page shows fine, i see the entry i wanted to see, >>>> but the $base_url is now the current page +'/', so the link to >>>> take me home points to >>>> http://localhost/back_from_canada_archcon.html/ which, btw, shows >>>> the home page So I can go to >>>> http://localhost/back_from_canada_archcon.html/, and click on any >>>> entry to see it, say: >>>> http://localhost/back_from_canada_archcon.html/arch_linux_interview_and_uzbl_article.html >>>> when I'm there, the $base_url is again >>>> http://localhost/back_from_canada_archcon.html/ >>>> >>>> To be sure, i disabled all plugins (and restarted the webserver) >>>> but the issue stays the same. >>>> >>>> >>>> Another thing, which is probably related: if i have enabled the >>>> tags plugin (took the latest one from git) >>>> and I am at http://localhost, then click on a tag-link, say: >>>> http://localhost/tag/foss >>>> it says: >>>> "The page you are looking for is not available >>>> Somehow I cannot find the page you want." and $base_url is now >>>> http://localhost/tag/ >>>> >>>> I know I can define $base_url in config.py, but I don't see why >>>> that should be needed, since my webserver does not do anything >>>> fancy like url rewriting, pyblosxom should be able to get the >>>> correct base_url by itself right? >>>> >>>> so I checked the code, more specifically class PyBlosxom , >>>> function initialize(), where I see SCRIPT_NAME from the http >>>> environment is stored in the base_url. >>>> >>>> And SCRIPT_NAME, when visiting >>>> http://localhost/back_from_canada_archcon.html >>>> is: >>>> /back_from_canada_archcon.html/ >>>> >>>> Is this normal? I couldn't immediately figure out what the >>>> SCRIPT_NAME is supposed to be. Is this a bug with my webserver or >>>> my setup? (I use lighttpd 1.4.28, my config is at >>>> http://sprunge.us/JCCO, the fastcgi script is at >>>> http://github.com/Dieterbe/dieterblog/blob/manageable/fcgi.py) >>>> >>>> Thanks, >>>> Dieter |
|
From: Dieter P. <di...@pl...> - 2010-11-07 14:54:12
|
I've now hardcoded my baseurl: $ grep base_url /srv/http/dieterblog/config.py base_url = "http://localhost" However this does not solve the problem. Like before, I tried disabling all plugins (and restarting lighty), to no avail. My entire blog source code can be found at https://github.com/Dieterbe/dieterblog Dieter On Tue, 2 Nov 2010 14:58:17 +0100 Dieter Plaetinck <di...@pl...> wrote: > I use a fastcgi wsgi script, ran by Lighttpd. > The script and the lighty config are in my previous mail, not sure > what else you want to know? > So if I understand what you're saying, the SCRIPT_NAME in the > environment is incorrect. > > I think I might be hitting the following issue: > http://redmine.lighttpd.net/issues/729 > > Dieter > > > On Tue, 02 Nov 2010 09:50:14 -0400 > will kahn-greene <wi...@bl...> wrote: > > > SCRIPT_NAME is an environment variable that comes from whatever > > environment you're running PyBlosxom in. It shouldn't be the full > > path--it should be the path from which the script was executed. > > It's a pretty standard CGI variable. > > > > How does your environment build the SCRIPT_NAME variable? > > > > Regardless, the documentation encourages you to set the base_url in > > your config.py file if it's not getting generated correctly for your > > situation. I set it in my config.py file because I use mod_rewrite > > for url rewriting. > > > > /will > > > > > > On 11/02/2010 09:25 AM, Dieter Plaetinck wrote: > > > Hi, > > > I'm using the latest 1.5 code from git > > > > > > my flavours/html.flav/head contains: > > > > > > <a href="$(base_url)/">$(blog_title)</a> > > > > > > When I go to http://localhost/ this works fine: I see my blog with > > > all entries, but then, I click a link to see an individual entry, > > > say http://localhost/back_from_canada_archcon.html > > > > > > this page shows fine, i see the entry i wanted to see, > > > but the $base_url is now the current page +'/', so the link to > > > take me home points to > > > http://localhost/back_from_canada_archcon.html/ which, btw, shows > > > the home page So I can go to > > > http://localhost/back_from_canada_archcon.html/, and click on any > > > entry to see it, say: > > > http://localhost/back_from_canada_archcon.html/arch_linux_interview_and_uzbl_article.html > > > when I'm there, the $base_url is again > > > http://localhost/back_from_canada_archcon.html/ > > > > > > To be sure, i disabled all plugins (and restarted the webserver) > > > but the issue stays the same. > > > > > > > > > Another thing, which is probably related: if i have enabled the > > > tags plugin (took the latest one from git) > > > and I am at http://localhost, then click on a tag-link, say: > > > http://localhost/tag/foss > > > it says: > > > "The page you are looking for is not available > > > Somehow I cannot find the page you want." and $base_url is now > > > http://localhost/tag/ > > > > > > I know I can define $base_url in config.py, but I don't see why > > > that should be needed, since my webserver does not do anything > > > fancy like url rewriting, pyblosxom should be able to get the > > > correct base_url by itself right? > > > > > > so I checked the code, more specifically class PyBlosxom , > > > function initialize(), where I see SCRIPT_NAME from the http > > > environment is stored in the base_url. > > > > > > And SCRIPT_NAME, when visiting > > > http://localhost/back_from_canada_archcon.html > > > is: > > > /back_from_canada_archcon.html/ > > > > > > Is this normal? I couldn't immediately figure out what the > > > SCRIPT_NAME is supposed to be. Is this a bug with my webserver or > > > my setup? (I use lighttpd 1.4.28, my config is at > > > http://sprunge.us/JCCO, the fastcgi script is at > > > http://github.com/Dieterbe/dieterblog/blob/manageable/fcgi.py) > > > > > > Thanks, > > > Dieter > > > > > > ------------------------------------------------------------------------------ > > > Nokia and AT&T present the 2010 Calling All Innovators-North > > > America contest Create new apps & games for the Nokia N8 for > > > consumers in U.S. and Canada $10 million total in prizes - $4M > > > cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt > > > SDK, Web Runtime, or Java and Publish to Ovi Store > > > http://p.sf.net/sfu/nokia-dev2dev > > > _______________________________________________ pyblosxom-users > > > mailing list pyb...@li... > > > https://lists.sourceforge.net/lists/listinfo/pyblosxom-users > > > > |
|
From: Dieter P. <di...@pl...> - 2010-11-06 21:05:22
|
First version of my plugin is done. Some rough edges, a day of swearing and cursing, but it's working. https://github.com/Dieterbe/dieterblog/blob/master/plugins/syntaxhighlight.py Dieter |
|
From: Dieter P. <di...@pl...> - 2010-11-06 09:20:46
|
Will figured out why my plugin didn't work. I called it plugins/pygments.py which conflicts with the real pygments package on my system. I renamed it and now it works fine. There is more info @ http://pyblosxom.bluesock.org/1.5/dev_writing_plugins.html#name Now on to making it actually highlight source code \o/ Stay tuned. Dieter |
|
From: Dieter P. <di...@pl...> - 2010-11-02 13:58:26
|
I use a fastcgi wsgi script, ran by Lighttpd. The script and the lighty config are in my previous mail, not sure what else you want to know? So if I understand what you're saying, the SCRIPT_NAME in the environment is incorrect. I think I might be hitting the following issue: http://redmine.lighttpd.net/issues/729 Dieter On Tue, 02 Nov 2010 09:50:14 -0400 will kahn-greene <wi...@bl...> wrote: > SCRIPT_NAME is an environment variable that comes from whatever > environment you're running PyBlosxom in. It shouldn't be the full > path--it should be the path from which the script was executed. It's > a pretty standard CGI variable. > > How does your environment build the SCRIPT_NAME variable? > > Regardless, the documentation encourages you to set the base_url in > your config.py file if it's not getting generated correctly for your > situation. I set it in my config.py file because I use mod_rewrite > for url rewriting. > > /will > > > On 11/02/2010 09:25 AM, Dieter Plaetinck wrote: > > Hi, > > I'm using the latest 1.5 code from git > > > > my flavours/html.flav/head contains: > > > > <a href="$(base_url)/">$(blog_title)</a> > > > > When I go to http://localhost/ this works fine: I see my blog with > > all entries, but then, I click a link to see an individual entry, > > say http://localhost/back_from_canada_archcon.html > > > > this page shows fine, i see the entry i wanted to see, > > but the $base_url is now the current page +'/', so the link to take > > me home points to http://localhost/back_from_canada_archcon.html/ > > which, btw, shows the home page > > So I can go to http://localhost/back_from_canada_archcon.html/, and > > click on any entry to see it, say: > > http://localhost/back_from_canada_archcon.html/arch_linux_interview_and_uzbl_article.html > > when I'm there, the $base_url is again > > http://localhost/back_from_canada_archcon.html/ > > > > To be sure, i disabled all plugins (and restarted the webserver) but > > the issue stays the same. > > > > > > Another thing, which is probably related: if i have enabled the tags > > plugin (took the latest one from git) > > and I am at http://localhost, then click on a tag-link, say: > > http://localhost/tag/foss > > it says: > > "The page you are looking for is not available > > Somehow I cannot find the page you want." and $base_url is now > > http://localhost/tag/ > > > > I know I can define $base_url in config.py, but I don't see why that > > should be needed, since my webserver does not do anything fancy like > > url rewriting, pyblosxom should be able to get the correct base_url > > by itself right? > > > > so I checked the code, more specifically class PyBlosxom , > > function initialize(), where I see SCRIPT_NAME from the http > > environment is stored in the base_url. > > > > And SCRIPT_NAME, when visiting > > http://localhost/back_from_canada_archcon.html > > is: > > /back_from_canada_archcon.html/ > > > > Is this normal? I couldn't immediately figure out what the > > SCRIPT_NAME is supposed to be. Is this a bug with my webserver or > > my setup? (I use lighttpd 1.4.28, my config is at > > http://sprunge.us/JCCO, the fastcgi script is at > > http://github.com/Dieterbe/dieterblog/blob/manageable/fcgi.py) > > > > Thanks, > > Dieter > > > > ------------------------------------------------------------------------------ > > Nokia and AT&T present the 2010 Calling All Innovators-North > > America contest Create new apps & games for the Nokia N8 for > > consumers in U.S. and Canada $10 million total in prizes - $4M > > cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt > > SDK, Web Runtime, or Java and Publish to Ovi Store > > http://p.sf.net/sfu/nokia-dev2dev > > _______________________________________________ pyblosxom-users > > mailing list pyb...@li... > > https://lists.sourceforge.net/lists/listinfo/pyblosxom-users > > |
|
From: will kahn-g. <wi...@bl...> - 2010-11-02 13:50:24
|
SCRIPT_NAME is an environment variable that comes from whatever environment you're running PyBlosxom in. It shouldn't be the full path--it should be the path from which the script was executed. It's a pretty standard CGI variable. How does your environment build the SCRIPT_NAME variable? Regardless, the documentation encourages you to set the base_url in your config.py file if it's not getting generated correctly for your situation. I set it in my config.py file because I use mod_rewrite for url rewriting. /will On 11/02/2010 09:25 AM, Dieter Plaetinck wrote: > Hi, > I'm using the latest 1.5 code from git > > my flavours/html.flav/head contains: > > <a href="$(base_url)/">$(blog_title)</a> > > When I go to http://localhost/ this works fine: I see my blog with all > entries, but then, I click a link to see an individual entry, say > http://localhost/back_from_canada_archcon.html > > this page shows fine, i see the entry i wanted to see, > but the $base_url is now the current page +'/', so the link to take me > home points to http://localhost/back_from_canada_archcon.html/ > which, btw, shows the home page > So I can go to http://localhost/back_from_canada_archcon.html/, and > click on any entry to see it, say: > http://localhost/back_from_canada_archcon.html/arch_linux_interview_and_uzbl_article.html > when I'm there, the $base_url is again > http://localhost/back_from_canada_archcon.html/ > > To be sure, i disabled all plugins (and restarted the webserver) but > the issue stays the same. > > > Another thing, which is probably related: if i have enabled the tags > plugin (took the latest one from git) > and I am at http://localhost, then click on a tag-link, say: > http://localhost/tag/foss > it says: > "The page you are looking for is not available > Somehow I cannot find the page you want." and $base_url is now > http://localhost/tag/ > > I know I can define $base_url in config.py, but I don't see why that > should be needed, since my webserver does not do anything fancy like > url rewriting, pyblosxom should be able to get the correct base_url by > itself right? > > so I checked the code, more specifically class PyBlosxom , > function initialize(), where I see SCRIPT_NAME from the http > environment is stored in the base_url. > > And SCRIPT_NAME, when visiting > http://localhost/back_from_canada_archcon.html > is: > /back_from_canada_archcon.html/ > > Is this normal? I couldn't immediately figure out what the SCRIPT_NAME > is supposed to be. Is this a bug with my webserver or my setup? (I use > lighttpd 1.4.28, my config is at http://sprunge.us/JCCO, the fastcgi > script is at > http://github.com/Dieterbe/dieterblog/blob/manageable/fcgi.py) > > Thanks, > Dieter > > ------------------------------------------------------------------------------ > Nokia and AT&T present the 2010 Calling All Innovators-North America contest > Create new apps & games for the Nokia N8 for consumers in U.S. and Canada > $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing > Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store > http://p.sf.net/sfu/nokia-dev2dev > _______________________________________________ > pyblosxom-users mailing list > pyb...@li... > https://lists.sourceforge.net/lists/listinfo/pyblosxom-users > |
|
From: Dieter P. <di...@pl...> - 2010-11-02 13:25:40
|
Hi, I'm using the latest 1.5 code from git my flavours/html.flav/head contains: <a href="$(base_url)/">$(blog_title)</a> When I go to http://localhost/ this works fine: I see my blog with all entries, but then, I click a link to see an individual entry, say http://localhost/back_from_canada_archcon.html this page shows fine, i see the entry i wanted to see, but the $base_url is now the current page +'/', so the link to take me home points to http://localhost/back_from_canada_archcon.html/ which, btw, shows the home page So I can go to http://localhost/back_from_canada_archcon.html/, and click on any entry to see it, say: http://localhost/back_from_canada_archcon.html/arch_linux_interview_and_uzbl_article.html when I'm there, the $base_url is again http://localhost/back_from_canada_archcon.html/ To be sure, i disabled all plugins (and restarted the webserver) but the issue stays the same. Another thing, which is probably related: if i have enabled the tags plugin (took the latest one from git) and I am at http://localhost, then click on a tag-link, say: http://localhost/tag/foss it says: "The page you are looking for is not available Somehow I cannot find the page you want." and $base_url is now http://localhost/tag/ I know I can define $base_url in config.py, but I don't see why that should be needed, since my webserver does not do anything fancy like url rewriting, pyblosxom should be able to get the correct base_url by itself right? so I checked the code, more specifically class PyBlosxom , function initialize(), where I see SCRIPT_NAME from the http environment is stored in the base_url. And SCRIPT_NAME, when visiting http://localhost/back_from_canada_archcon.html is: /back_from_canada_archcon.html/ Is this normal? I couldn't immediately figure out what the SCRIPT_NAME is supposed to be. Is this a bug with my webserver or my setup? (I use lighttpd 1.4.28, my config is at http://sprunge.us/JCCO, the fastcgi script is at http://github.com/Dieterbe/dieterblog/blob/manageable/fcgi.py) Thanks, Dieter |
|
From: Dieter P. <di...@pl...> - 2010-11-01 21:53:09
|
Thanks guys for your input. On Mon, 1 Nov 2010 10:35:10 -0500 Terry Brown <ter...@ya...> wrote: > There's also http://alexgorbatchev.com/SyntaxHighlighter which is a > javascript approach. Seems wrong by design to me. They even mention it themselves (at http://alexgorbatchev.com/SyntaxHighlighter/manual/installation.html) If you want the code to be shown instead of interpreted, you must do all the escaping yourself, and then still rss readers will not apply the hilighting ("<pre> method"). The alternative "<script>" method allows you to not escape the html yourself, but will break horribly without support for js (i.e. in rss readers) On Mon, 1 Nov 2010 19:53:53 +0000 seanh <sn...@gm...> wrote: > My Python Markdown 2 plugin can do source code highlighting if you > have python pygments. It's another plugin that isn't in the plugin > registry: > > http://github.com/seanh/PyBlosxom-Python-Markdown-2-Plugin > > See the Python Markdown 2 instructions for how to use source code > highlighting: > > http://www.freewisdom.org/projects/python-markdown/CodeHilite > > You will have to edit line 35 of markdown-plugin.py to enable the > codehilite extension. Thanks, although I don't use markdown (nor RST), your plugin seems simple enough to try using as a starting point. Although i still don't get why my own plugin doesn't affect the text.. really weird.. Dieter |
|
From: Dieter P. <di...@pl...> - 2010-11-01 21:42:46
|
On Mon, 1 Nov 2010 19:49:23 +0000 seanh <sn...@gm...> wrote: > On Mon, Nov 01, 2010 at 12:13:26PM +0100, Dieter Plaetinck wrote: > > Hi all, > > is it possible to hardcode the mtime for a story in its metadata > > section? > > I.e. something like: > > > > $ cat entries/post.txt > > Title of the post > > # mtime 2010-10-30 12:00:00 > > hello, (..) > > > My metadate plugin does exactly that: > > http://github.com/seanh/PyBlosxom-metadate > > I did ask for it to be put in the plugin registry ages ago. Looking at > the code now, I do wonder if there is a shorter way to implement it, > without all that code for parsing entry files (which obviously > duplicates code that exists somewhere in pyblosxom itself). > Your plugin does more then i need :) I use Tim's plugin which is noticeably simpler/shorter and seems to do everything I need. Dieter |
|
From: seanh <sn...@gm...> - 2010-11-01 19:55:17
|
On Sun, Oct 31, 2010 at 11:08:15PM +0100, Dieter Plaetinck wrote: > Hi all, > is anyone showing source in pyblosxom blog posts? My Python Markdown 2 plugin can do source code highlighting if you have python pygments. It's another plugin that isn't in the plugin registry: http://github.com/seanh/PyBlosxom-Python-Markdown-2-Plugin See the Python Markdown 2 instructions for how to use source code highlighting: http://www.freewisdom.org/projects/python-markdown/CodeHilite You will have to edit line 35 of markdown-plugin.py to enable the codehilite extension. |
|
From: seanh <sn...@gm...> - 2010-11-01 19:50:52
|
On Mon, Nov 01, 2010 at 12:13:26PM +0100, Dieter Plaetinck wrote: > Hi all, > is it possible to hardcode the mtime for a story in its metadata > section? > I.e. something like: > > $ cat entries/post.txt > Title of the post > # mtime 2010-10-30 12:00:00 > hello, (..) My metadate plugin does exactly that: http://github.com/seanh/PyBlosxom-metadate I did ask for it to be put in the plugin registry ages ago. Looking at the code now, I do wonder if there is a shorter way to implement it, without all that code for parsing entry files (which obviously duplicates code that exists somewhere in pyblosxom itself). |
|
From: will kahn-g. <wi...@bl...> - 2010-11-01 16:35:48
|
I just started using SyntaxHighlighter. It works super for me and my needs, plus it was a couple of easy changes to my html flavour's head template. I'd love to add helper tips like this to the documentation somehow. Would it be good to add a FAQ section to the manual? Or should these kinds of configuration tips be sprinkled in appropriate sections? On 11/01/2010 11:35 AM, Terry Brown wrote: > On Sun, 31 Oct 2010 23:08:15 +0100 > Dieter Plaetinck <di...@pl...> wrote: > >> Hi all, >> is anyone showing source in pyblosxom blog posts? > > I have a blog posting on that here: > > http://codemostly.blogspot.com/2009/08/syntax-highlighting-for-pyblosxom.html > > it assumes you're writing restructured text, but you could start from there for other dialects. > > There's also http://alexgorbatchev.com/SyntaxHighlighter which is a javascript approach. > > Cheers -Terry |
|
From: Terry B. <ter...@ya...> - 2010-11-01 15:42:22
|
On Sun, 31 Oct 2010 23:08:15 +0100 Dieter Plaetinck <di...@pl...> wrote: > Hi all, > is anyone showing source in pyblosxom blog posts? I have a blog posting on that here: http://codemostly.blogspot.com/2009/08/syntax-highlighting-for-pyblosxom.html it assumes you're writing restructured text, but you could start from there for other dialects. There's also http://alexgorbatchev.com/SyntaxHighlighter which is a javascript approach. Cheers -Terry |
|
From: Tim G. <tg...@pr...> - 2010-11-01 14:49:51
|
On Nov 01, 2010 at 03:32 PM +0100, Dieter Plaetinck wrote: > What would be pretty cool, is if the pubdate is in the future, don't > show the story. this would allow me to time precisely when i want to > publish a story at some point in the future. That would be convenient. It's probably easily done by looping through entrylist at some point and comparing the current time to the post's time. If the post's time is later than the current time, remove it from entrylist. I'm not sure which cb_xxxxx would be best suited for this. I would think it should be done in a function that actually returns entrylist. cb_sortlist would probably work nicely. I'd add the check right before entrylist is reconstructed from entrylist2 in my plugin. |
|
From: Dieter P. <di...@pl...> - 2010-11-01 14:33:06
|
On Mon, 1 Nov 2010 10:21:14 -0400 Tim Gray <tg...@pr...> wrote: > On Nov 01, 2010 at 03:11 PM +0100, Dieter Plaetinck wrote: > > Thanks, this is actually another plugin then the one I was looking > > for. > > Yeah I wrote this from scratch the other month. > > > Notice that both the description for cb_prepare as well as the big > > comment block on top of your file imply that they reset/ignore mtime > > first, and then update using the info from the metadata. This is > > not correct, from looking at the code it seems that the pubdate can > > override the mtime, but the mtime is not discarded if there is no > > pubdate. > > That is correct. If there is not pubdate/pubtime, then the file's > mtime is used. If I recall correctly, the if those variables aren't > set in the post file, $(pubtime), $(pubdate), $(displaytime), and > $(displaydate) are all populated by the file's mtime, so you can use > the same set of templates and mix files with hardcoded dates and > files with mtime encoded dates. > > I think cb_prepare's comment reflects that fact that during the > cb_sortlist loop (which occurs before), a file's pubtime is set > according to the mtime if #pubtime/#pubdate doesn't exist. So once > you get to cb_prepare, we DO ignore file's actual mtime - it's > already been taking into account. hmmm.. okay. anyway, just tried your plugin, and it seems to works nicely. What would be pretty cool, is if the pubdate is in the future, don't show the story. this would allow me to time precisely when i want to publish a story at some point in the future. Dieter |