Part of lp.answers.testing View In Hierarchy
Class Method | createManyByProject | Create a number of questions on selected projects. |
Class Method | createManyByTarget | Create a number of questions on a selected target |
Class Method | _getQuestionTarget | Return the IQuestionTarget to use. |
IQuestionTarget
to use.
It returns the pillar with the target_name and makes sure it
provides IQuestionTarget
.
The function expects a sequence of tuples of the form (project_name, question_count).
project_name should be the name of a pillar providing
IQuestionTarget
.
question_count is the number of questions to create on the target.
Questions will appear as posted by the currently logged in user.