module: revu_mvc_data

Reviewers: underlying data class for the MVC model

class Assign_GUP.revu_mvc_data.AGUP_Reviewers_List(agup)[source]

Bases: PyQt4.QtCore.QObject

the list of all reviewers

addTopic(key, value=None)[source]

add a new topic key and initial value to all reviewers

addTopics(key_list)[source]

add several topics at once (with default values)

exists(sort_name)[source]

given sort_name string, does reviewer exist?

getByFullName(full_name)[source]

return reviewer selected by full_name string

getByIndex(index)[source]
getReviewer(sort_name)[source]

return reviewer selected by sort_name string

getReviewerAssignments(sort_name, role=None)[source]

find all proposals assigned to the named reviewer

Parameters:
  • sort_name (str) – key for reviewer name
  • role (int) – one of [None, 0, 1, 2], where None or 0 mean get both roles
importXml(filename)[source]
Parameters:filename (str) – name of XML file with reviewers
inOrder()[source]
keyOrder()[source]
removeReviewer(full_name)[source]

remove named reviewer

removeTopic(key)[source]

remove an existing topic key from all reviewers

removeTopics(key_list)[source]

remove several topics at once

setTopicValue(sort_name, topic, value)[source]

set the topic value on a reviewer identified by sort_name

writeXmlNode(specified_node)[source]

write Reviewers’ data to a specified node in the XML document

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