module: proposal¶
Data for one General User Proposal
-
class
Assign_GUP.proposal.
AGUP_Proposal_Data
(xmlParentNode=None, xmlFile=None)[source]¶ Bases:
object
A single General User Proposal
-
addTopic
(topic, value=None)[source]¶ declare a new topic and give it an initial value (default value=0.0)
topic must not exist or KeyError exception will be raised
-
addTopics
(topics_list)[source]¶ declare several new topics and give them all default values
each topic must not exist or KeyError exception will be raised
-
getExcludedReviewers
(reviewers)[source]¶ return a list of excluded reviewers for this proposal
Parameters: reviewers (obj) – list of all available reviewers
-
importXml
(proposal_node)[source]¶ Fill the class variables with values from the XML node
Parameters: proposal_node – lxml node of the Proposal
-
setAssignedReviewer
(reviewer, role=None)[source]¶ assign a reviewer to this proposal as primary (role=1) or secondary (role=2) or None (unassigned)
-