Classes | |
class | IndraConfig |
Functions | |
def | load |
def | dump |
def | update |
def | get |
def | set |
def | get_config |
Variables | |
_g_config = None |
\ @file config.py @brief Utility module for parsing and accessing the indra.xml config file. $LicenseInfo:firstyear=2006&license=mit$ Copyright (c) 2006-2008, Linden Research, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. $/LicenseInfo$
def indra::base::config::dump | ( | indra_xml_file, | ||
indra_cfg = None , |
||||
update_in_mem = False | ||||
) |
Dump config contents into a file Kindof reverse of load. Optionally takes a new config to dump. Does NOT update global config unless requested.
Definition at line 180 of file config.py.
Referenced by LLMemoryView::dumpData(), LLMemoryView::LLMemoryView(), and LLMessageSystem::processAcks().
def indra::base::config::load | ( | indra_xml_file = None |
) |
Definition at line 167 of file config.py.
Referenced by LLAudioSource::update().
def indra::base::config::set | ( | key, | ||
newval | ||||
) |
Sets the value of the config setting of key to be newval Once any key/value pair is changed via the set method, that key/value pair will remain set with that value until change via the update or set method or program termination
Definition at line 227 of file config.py.
Referenced by LLSelectMgr::deselectHighlightedObjects(), LLViewerObjectList::update(), and LLSelectMgr::updateSilhouettes().
def indra::base::config::update | ( | new_conf | ) |
Definition at line 206 of file config.py.
Referenced by LLInvFVBridge::changeCategoryParent(), LLInvFVBridge::changeItemParent(), LLInventoryModel::createNewCategory(), LLDiscardAgentOffer::done(), LLInventoryModel::messageUpdateCore(), LLFloaterLandmark::onBtnDelete(), LLPreview::onDiscardBtn(), LLInventoryModel::processBulkUpdateInventory(), LLInventoryModel::processMoveInventoryItem(), LLInventoryModel::processRemoveInventoryFolder(), LLInventoryModel::processRemoveInventoryItem(), LLInventoryModel::processUpdateInventoryFolder(), and LLInvFVBridge::removeBatchNoCheck().