askbot.management.commands.once_award_badges

class askbot.management.commands.once_award_badges.Command

Bases: askbot.management.commands.base_command.BaseCommand

alpha_user()

Before Jan 25, 2009(Chinese New Year Eve and enter into Beta for CNProg), every registered user will be awarded the “Alpha” badge if he has any activities.

beta_user()

Before Feb 25, 2009, every registered user will be awarded the “Beta” badge if he has any activities.

comment_count_10()

(5, ‘评论家’, 3, ‘评论家’, ‘评论10次以上’, 0, 0),

edit_count_100()

(27, ‘编辑主任’, 2, ‘编辑主任’, ‘编辑了100个帖子’, 0, 0)

first_answer_be_voted()

When user answerd questions and got first upvote, we award him following badge:

(15, ‘教师’, 3, ‘教师’, ‘第一次回答问题并且得到一个以上赞成票’, 0, 0),

first_answer_be_voted_10()

(32, ‘学问家’, 2, ‘学问家’, ‘第一次回答被投赞成票10次以上’, 0, 0)

first_ask_be_voted()

For user asked question and got first upvote, we award him following badge:

first_type_award()
handle_noargs(**options)
vote_count_300()

(26, ‘优秀市民’, 2, ‘优秀市民’, ‘投票300次以上’, 0, 0)

askbot.management.commands.once_award_badges.main()

This Page