askbot.management.commands.pg_once_award_badges

class askbot.management.commands.pg_once_award_badges.Command

Bases: askbot.management.commands.pg_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:

(13, ‘??’, 3, ‘??’, ‘???????????????’, 0, 0),

first_type_award()

This will award below badges for users first behaviors:

(7, ‘???’, 3, ‘???’, ‘?????????’, 0, 0), (8, ‘???’, 3, ‘???’, ‘???????’, 0, 0), (9, ‘???’, 3, ‘???’, ‘??????’, 0, 0), (10, ‘??’, 3, ‘??’, ‘???????’, 0, 0), (11, ‘??’, 3, ‘??’, ‘???????’, 0, 0), (12, ‘??’, 3, ‘??’, ‘???????’, 0, 0), (14, ‘???’, 3, ‘???’, ‘??????’, 0, 0), (16, ‘????’, 3, ‘????’, ‘????????????’, 0, 0),

handle_noargs(**options)
vote_count_300()

(26, ‘????’, 2, ‘????’, ‘??300???’, 0, 0)

askbot.management.commands.pg_once_award_badges.main()

This Page