On 27/06/13 15:47, Tong wrote: > Hi, > > I noticed that it had happened many times -- when using blogpost.py to > update an old blog entry, sometimes the post date is changed, thus > resulting the old blog entry to change to an entirely new url. It hadn't > been much a trouble to me previously, when nobody reads my blogs. But > now that I've posted my old blog entry url to several places, it has > become a major concern to me. > > Here is the work log when I'm working on my old blog entry: > > $ blogpost.py post DebianPackagesBuilding.adoc > blogpost: updating published post 'Debian Packages Building'... > blogpost: id: 130 > blogpost: url: > http://sfxpt.wordpress.com/2013/05/24/debian-packages-building/ > blogpost: assigning categories: Debian,Ubuntu,Package Building > > $ blogpost.py post DebianPackagesBuilding.adoc > blogpost: updating published post 'Debian Packages Building'... > blogpost: id: 130 > blogpost: url: > http://sfxpt.wordpress.com/2013/05/24/debian-packages-building/ > blogpost: assigning categories: Debian,Ubuntu,Package Building > > . . . > > $ blogpost.py post DebianPackagesBuilding.adoc > blogpost: updating published post 'Debian Packages Building'... > blogpost: id: 130 > blogpost: url: > http://sfxpt.wordpress.com/2013/05/23/debian-packages-building/ > blogpost: assigning categories: Debian,Ubuntu,Package Building > > I.e., after several iteration of changes, my old blog entry's url was > suddenly changed. This happened around 11:30pm local time. I don't know > it is wordpress or blogpost's contribution, but I have a feeling it has > something to do with timezone, and my daylight saving time, etc. > > Any comments for fixes?
The 'updating published post' message means that the post already exists (it has an ID), the update is performed by the editPost() method in the wordpresslib library. blogpost does not set the creation date, that's set by WordPress when the post is created and is fetched by the getPost() method in the wordpresslib library. I often update my blog posts and have never experienced the problem (e.g http://srackham.wordpress.com/2011/08/30/fossil-backend-for-asciidoc/ was updated times but still retained it's create URL). I can only guess that at some point WordPress is changing your blog creation date, as to why, I have no idea. Cheers, Stuart > > Thanks > > > > -- > You received this message because you are subscribed to the Google > Groups "asciidoc" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/asciidoc. > For more options, visit https://groups.google.com/groups/opt_out. > > -- You received this message because you are subscribed to the Google Groups "asciidoc" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/asciidoc. For more options, visit https://groups.google.com/groups/opt_out.
