Re: A question and a little praise
will guaraldi <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <[email protected]> |
PyBlosxom doesn't do context-sensitive variable replacement. I don't think it's a good solution to store variable values for all the variations of text and encoding in PyBlosxom, though if you want to do a plugin that does that, that's cool and not hard to do. I use an rss2 renderer that Blake whipped up ages ago that I did some modifications to. Pretty much you drop it in as a plugin and then that gives you an rss2 feed at $baseurl/index.xml that works well as far as I know. I'm no RSS expert, though, so maybe it's got problems I don't know about. As a side note, I'm of the opinion that building a renderer is the best solution for all syndication types (ATOM, RSS*, OPML, ...). If we did that, then we could remove some icky code in PyBlosxom that does encoding if the content-type ends in xml which hoses folks who build their site in xhtml (there are long threads in regards to this issue in the mailing list archives). Anyone who really wants to help out PyBlosxom, knows syndication formats, and has some free time could jump on this--that'd help all of us out a lot. Anyhow, going back to Blake's RSS 2.0 plugin, I'll read through the code and make sure it's kosher and then get permission from Blake to post it to the registry. I'm in Pittsburgh for the next couple of days, though, so the soonest this will happen is Monday. I'm also uber-backlogged on email, so I've been dropping mail for the last two or three weeks in regards to pyblosxom issues. Sorry bout that. /will On Fri, 3 Sep 2004, Rune Morling wrote: > > Hi everyone, > > Doesn't Nathan have a point? > > Nathan Bullock wrote: >> Hello Everyone, >> >> I was writing a story.rss2, flavour file. And in it I >> needed the url of the current item so I used this, >> $url$file_path, which seems to work fine except when >> there are spaces in the filename. It leaves the spaces >> in instead of escaping them like '%20' (I think that >> is the proper url encoding). Is there a variable like >> $file_path that has the proper escaping? > > Maybe someone with the proper connection to the force > (and CVS commit access) could investigate the > s/" "/"%20"/ issue/solution in fileentry.py? > > If this is a problem, it must be a general problem when it comes to > referencing filenames in templates, or am I mistaken? > > I personally hold the opinion that there really is no reason > it shouldn't 'just work(tm)' with blanks in filenames... > > Also, Nathan, I believe there exist a better solution than my pyrss2 plugin. > > I read a post on this list about someone having whipped up an rss2 > formatter thingy that doesn't use the template approach. Maybe someone > here could kindly nudge you in the right direction :D > > Kind regards, > > - rune > > -- whatever it is, you can find it at http://www.bluesock.org/~willg/ except Will--you can only see him in real life. ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click