Re: how to get unescaped $body?

martin f krafft <madduck-JX/[email protected]>
Newsgroups gmane.comp.web.pyblosxom.user
Message-ID <[email protected]>
also sprach will guaraldi <[email protected]> [2005.07.25.1806 +0200]:
> >To do this, the EntryBase class would need to be extended to
> >store data and data_unescaped. I am not sure whether this is
> >a sensible way to do it as it seems even more like a hack. Please
> >advise in which direction I should be looking.
> 
> Adding it to the EntryBase class is a good idea.  I can toss
> something in right now and build a nightly tar thing for people to
> test.  More on plans below....

Any news? I would love to fix my blog today or tomorrow before I go
on vacation...

> Hrmmm...  I'm thinking it's better to have body and body_escaped
> and the two should be consistent in terms of the format of the
> data they hold (i.e. body is always unescaped and body_escaped is
> always escaped regardless of what the content-type is).  That
> would be a backwards-incompatible change and people with feeds
> will have to adjust their feeds.

Okay, if you are willing to do this, all the better!

> Also, there's a title plugin which escapes the title (good for
> Google links) and a date plugin which builds the date variables
> needed for RSS 2.0 and Atom.  I'm thinking of merging all those
> into PyBlosxom as well. Then it's possible to have Atom and RSS
> 2.0 flavours which aren't possible without helping plugins now.

Nice!

Also, could you include a variable $timezone. I am currently simply
doing

  import time
  py['timezone'] = time.tzname[time.localtime()[8]]

to get it.

Note that we also need RFC 822 dates for RSS2. The w3cdate plugin
does not work for this. I actually have no idea what the problem
is...
  http://feedvalidator.org/check.cgi?url=http%3A%2F%2Fblog.madduck.net%2F%3Fflav%3Drss2

I am using

  <pubDate>$date $ti $timezone</pubDate>

Thanks.

-- 
martin;              (greetings from the heart of the sun.)
  \____ echo mailto: !#^."<*>"|tr "<*> mailto:" net@madduck
 
invalid/expired pgp subkeys? use subkeys.pgp.net as keyserver!
spamtraps: madduck.bogus-JX/[email protected]
 
"it is easier to be a lover than a husband for the simple reason
 that it is more difficult to be witty every day
 than to say pretty things from time to time."
                                                   -- honoré de balzac
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFC6L/FIgvIgzMMSnURAv+CAKCZXYd74mAa7zCwk+uBR+ZF0gd/uQCdFRKZ
TCRil1j3Z5sSl9mULGtLYds=
=1uPr
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.