module: prop_mvc_data

Proposals: underlying data class for the MVC model

class Assign_GUP.prop_mvc_data.AGUP_Proposals_List(agup)[source]

Bases: PyQt4.QtCore.QObject

the list of all proposals

addTopic(key, value=None)[source]

add a new topic key and initial value to all proposals

addTopics(key_list)[source]

add several topics at once (with default values)

exists(prop_id)[source]

given ID string, does proposal exist?

getByIndex(index)[source]

given index in sorted list of proposals, return indexed proposal

note: index is not the proposal ID number

getProposal(prop_id)[source]

return proposal selected by ID string

importXml(filename)[source]
Parameters:filename (str) – name of XML file with proposals
removeTopic(key)[source]

remove an existing topic key from all proposals

removeTopics(key_list)[source]

remove several topics at once

setTopicValue(prop_id, topic, value)[source]

set the topic value on a proposal identified by GUP ID

writeXmlNode(specified_node)[source]

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

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