Top.Mail.Ru
? ?
lj_dev, posts by tag: code: python - LiveJournal [entries|archive|friends|userinfo]
LiveJournal Development

[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

LJ formatting ATOM posted HTML? [Feb. 2nd, 2009|12:09 am]
LiveJournal Development
mcepl
[Tags|, , ]

Hi, I am trying to develop simple XSLT/Python system for publishing Docbook blog on Livejournal, but I have couple of problems which I haven’t found a way how to resolve:
  1. After every three to five posts, authentication fails -- which is weird, because obviously the same login and same password is used.
  2. Of course I have everything in utf-8 (seems kind of natural in the XML age), but seemingly LJ returns to me values in ISO 8859-1, even though I have set HTTP header Accept-Charset to utf-8.
  3. Even though I am sending pure HTML in <atom:content>, LJ still tries to reformat my text, which causes grotesquely misformatted entries, like this one. Why the hell LJ tries to format HTML as a plain text (<atom:content> has clearly set type to text/html and it is in html namespace)?
Any ideas about these questions?

Thanks for any response.

Matěj Cepl

link3 comments|post comment

couldn't retrieve anum for entry [Jan. 22nd, 2009|11:54 pm]
LiveJournal Development

forever_old
[Tags|, , ]

Hello. I am working with lj.py library from Zapys Livejournal client (you can find my sources at http://bitbucket.org/Davydov/ljpy/ ).

Currently I am trying to do the folowing: create entry and then delete it.

I get folowing error: "couldn't retrieve anum for entry at /home/lj/cgi-bin/LJ/Hooks/PackedLogs.pm line 171\n" but I am pretty sure it was working yesterday.

Thanks.
link2 comments|post comment

navigation
[ viewing | most recent entries ]