module: reviewer

Data for one Reviewer of General User Proposals

class Assign_GUP.reviewer.AGUP_Reviewer_Data(xmlParentNode=None, xmlFile=None)[source]

Bases: object

A Reviewer of General User Proposals

addTopic(topic, value=None)[source]

declare a new topic and give it an initial value

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

getAssignments(proposals, role)[source]

find all proposals assigned to this reviewer with the given role

getFullName()[source]
getKey(key)[source]
getSortName()[source]
getTopic(topic)[source]

return the value of the named topic

getTopicList()[source]

return a list of all topics

importXml(reviewer)[source]

Fill the class variables with values from the XML node

Parameters:reviewer – lxml node node of the Reviewer
removeTopic(key)[source]

remove the named topic

removeTopics(key_list)[source]

remove several topics at once

setKey(key, value)[source]

save a value to a known key

example:

self.setKey('full_name', 'Pete Jemian')
setTopic(topic, value=None)[source]

set value of an existing topic

topic must exist or KeyError exception will be raised

writeXmlNode(specified_node)[source]

write this Reviewer’s data to a specified node in the XML document

Parameters:specified_node (obj) – XML node to contain this data