RE: Changing templates (radio userland export tip)
"Bauer, Georg" <[email protected]> Tue, 10 Feb 2004 17:46:27 +0100
| Newsgroups | gmane.comp.python.pyds.user |
|---|---|
| Message-ID | <[email protected]> |
Hi! > I've made the jump now; http://www.jerf.org/iri/ is now a PyDS weblog. Cool! :-) > won't work; the XMLRPC connection will die on you. (I didn't > research it > but based on my experiences with Radio Userland I'd lay money it's > because Radio Userland is emitting invalid XML; they *still*, > **still** > do not have the encoding correct. RU is a very dangerous Yep. It's quite weird: they don't tell any charset in the xml header, but use latin1 mostly. It get's really weird if you trigger an error in RU, as the error page still includes a Macintosh only character and so it's not even latin1 :-) Usually it helps to convert all strings from latin1, encode to utf-8 and use the XMLRPC API for PyDS to push stuff in (that will be translated on the way into your documentEncoding whose default happens to be latin1 again :-) ). > That puts around 2100 posts into my PyDS weblog, and it seems to be > doing just fine. Hey, that's even more than I have in my main blog at http://hugo.muensterland.org ! > As I write this, the re-render is still occurring so if you see the > default template, it should go away in a while. Yep, it takes a while to rerender 2000 posts. That's why I do the rerendering in a timer at night. This helps to stomp out any glitches that happen sometimes when I run a development version of PyDS that breaks something - the nightly rerender will fix that. PyDS is smart enough to not upstream unchanged files, even when rerendering - when storing files it checks wether the new content is really different from the old content, if not it doesn't write the new file but throws the stuff just away. That way only files that really changed are changed in their file attributes (and that's what the upstream thread uses to discover what files need to upstream). bye, Georg