functions.py process_article_edit, tags, and microblog update

Asked by Roberto R

Hi, I added a related question just a few minutes ago about two other lines of code in functions.py. I think I found the line of code that might be the spot that is causing some unexpected behavior for tags on article/blog post edits.

http://bazaar.launchpad.net/~jgoguen/gablog/trunk/view/head:/handlers/functions.py#L472

If "and article.draft" is removed/commented out, the tag counts are updated as expected. I'm not sure why property_hash would not include draft but the article would be a draft. Thanks for the help!

472
  if not property_hash["draft"] and article.draft:
473
   for key in property_hash["tag_keys"]:
474
    db.get(key).counter.increment()
475
   if CONFIG['send_microblog_update'] and article.article_type == "blog post":
476
    try:
477
     do_status_updates(article)
478
    except Exception, de:
479
     logging.error("Download error: %s", de.message)

Question information

Language:
English Edit question
Status:
Solved
For:
GABlog Edit question
Assignee:
Joel Goguen Edit question
Last query:
Last reply:
Revision history for this message
Joel Goguen (jgoguen) said :
#1

Hi Roberto,

Since you are reporting a suspected bug in GABlog, I have converted your question to a bug. Please see bug 711831 for future updates regarding this issue.

In general, Launchpad Answers should be used for questions about a piece of software. Launchpad Bugs should be used for any bug reports, even if you only suspect that you have found a bug and are not certain.

Revision history for this message
Joel Goguen (jgoguen) said :
#2

Taken care of with bug 711831

Revision history for this message
Roberto R (roberto-rabe) said :
#3

Ok, understood. Thanks!