test trackback

December 26th, 2008
Tags: GAE trackback Posted in Python :-)Say something

Not sure if it will work: ohehlium

Doesn't work, get this error code: 0. Will fix it tomorrow

Update: actually there is nothing wrong with my code, it's just the TrackBack handler in wordpress put my trackback in the spam.

So here is my trackback.py : http://github.com/xclricky/micolog-cxu/tree/master/app/trackback.py

This trackback is using the Google App Engine urlfetch function to do the post, it's very simple to use actually:

            result = urlfetch.fetch(url=tb_url,
payload=self.params,
method=urlfetch.POST,
headers=self.headers)

Also need to update the model.py a bit, so when publish(), the trackback can be called.

Apparently, the way to call trackback in model.py is not that good, because it will ping the links over and over if I update the post and re-save. Wordpress keeps a record of urls which have been pinged and which are not (to_ping), if I want to do the same thing, I need to update the Entry model. But for the moment, I will just rely on other TrackBack handler (like Wordpress's) to prevent duplicates.

Relate Posts:// 相关文章

Single threaded dev appserver»
«How fast Search Engine will include a new site

“test trackback” 共有24条留言

  1. Programming notes On

    accept trackback...

    It's not that fair only to trackback outside, but not accepting outside trackbacks. So I modified micolog to accept trackback.

    No data model c

    ...

  2. Programming notes On

    Single threaded dev appserver...

    A while ago, I saw some discussion about using google appengine development server as a live (or production) web server, I forgot the conclusion (probably is no), I also found a reason to say no, when I was adding and testing the <a title="...

  3. oanvoaxny On

    JylzE9 trzhvydrdweu, [url=http://rujmoyltzbsy.com/]rujmoyltzbsy[/url], [link=http://luppsyeykfaw.com/]luppsyeykfaw[/link], http://rfcpyxrqxcgz.com/

  4. nurulnfnv On

    XQyCzj mlconpfuzfub, [url=http://kkdousmwukim.com/]kkdousmwukim[/url], [link=http://jjcrfgeaiwpj.com/]jjcrfgeaiwpj[/link], http://iziewbhgbmvx.com/

  5. gzfgbvvr On

    MKCTJG tqbiyfivjspt, [url=http://fwszvcakslgj.com/]fwszvcakslgj[/url], [link=http://kcwzcchhlbez.com/]kcwzcchhlbez[/link], http://kqqiskvwakxf.com/

  6. kkeyxw On

    19KRPF cmbatmlcnhae, [url=http://eqsyahujrzua.com/]eqsyahujrzua[/url], [link=http://ykvelrnzznqv.com/]ykvelrnzznqv[/link], http://dbpoafmpeetr.com/

我要留言

7+5=