hardwareprofile::smolt Namespace Reference

Classes

class  Host
class  ServerError
class  SystemBusError
class  UUIDError
class  PubUUIDError
class  _HardwareProfile

Functions

def to_ascii
def get_file_systems
def ignoreDevice
def serverMessage
def error
def debug
def reset_resolver
def read_cpuinfo
def read_memory
def read_memory_2_4
def read_memory_2_6
def create_profile_nocatch
def create_profile
 For refactoring, I'll probably want to make a library Of command line tool functions This is one of them.
def get_profile_link
 This is another.
def read_uuid
def read_pub_uuid

Variables

string WITHHELD_MAGIC_STRING = 'WITHHELD'
int SELINUX_ENABLED = 1
int SELINUX_DISABLED = 0
int SELINUX_WITHHELD = 1
tuple fs_types = get_config_attr("FS_TYPES", ["ext2", "ext3", "xfs", "reiserfs"])
tuple fs_mounts = dict.fromkeys(get_config_attr("FS_MOUNTS", ["/", "/home", "/etc", "/var", "/boot"]), True)
tuple fs_m_filter = get_config_attr("FS_M_FILTER", False)
tuple fs_t_filter = get_config_attr("FS_T_FILTER", False)
tuple smoonURL = get_config_attr("SMOON_URL", "http://smolts.org/")
tuple secure = get_config_attr("SECURE", 0)
tuple hw_uuid_file = get_config_attr("HW_UUID", "/etc/smolt/hw-uuid")
tuple admin_token_file = get_config_attr("ADMIN_TOKEN", '' )
string clientVersion = '1.3.2'
string smoltProtocol = '0.97'
list supported_protocols = ['0.97',]
string user_agent = 'smolt/%s'
float timeout = 120.0
 proxies = None
 DEBUG = False
int PCI_BASE_CLASS_STORAGE = 1
int PCI_CLASS_STORAGE_SCSI = 0
int PCI_CLASS_STORAGE_IDE = 1
int PCI_CLASS_STORAGE_FLOPPY = 2
int PCI_CLASS_STORAGE_IPI = 3
int PCI_CLASS_STORAGE_RAID = 4
int PCI_CLASS_STORAGE_OTHER = 80
int PCI_BASE_CLASS_NETWORK = 2
int PCI_CLASS_NETWORK_ETHERNET = 0
int PCI_CLASS_NETWORK_TOKEN_RING = 1
int PCI_CLASS_NETWORK_FDDI = 2
int PCI_CLASS_NETWORK_ATM = 3
int PCI_CLASS_NETWORK_OTHER = 80
int PCI_CLASS_NETWORK_WIRELESS = 128
int PCI_BASE_CLASS_DISPLAY = 3
int PCI_CLASS_DISPLAY_VGA = 0
int PCI_CLASS_DISPLAY_XGA = 1
int PCI_CLASS_DISPLAY_3D = 2
int PCI_CLASS_DISPLAY_OTHER = 80
int PCI_BASE_CLASS_MULTIMEDIA = 4
int PCI_CLASS_MULTIMEDIA_VIDEO = 0
int PCI_CLASS_MULTIMEDIA_AUDIO = 1
int PCI_CLASS_MULTIMEDIA_PHONE = 2
int PCI_CLASS_MULTIMEDIA_HD_AUDIO = 3
int PCI_CLASS_MULTIMEDIA_OTHER = 80
int PCI_BASE_CLASS_BRIDGE = 6
int PCI_CLASS_BRIDGE_HOST = 0
int PCI_CLASS_BRIDGE_ISA = 1
int PCI_CLASS_BRIDGE_EISA = 2
int PCI_CLASS_BRIDGE_MC = 3
int PCI_CLASS_BRIDGE_PCI = 4
int PCI_CLASS_BRIDGE_PCMCIA = 5
int PCI_CLASS_BRIDGE_NUBUS = 6
int PCI_CLASS_BRIDGE_CARDBUS = 7
int PCI_CLASS_BRIDGE_RACEWAY = 8
int PCI_CLASS_BRIDGE_OTHER = 80
int PCI_BASE_CLASS_COMMUNICATION = 7
int PCI_CLASS_COMMUNICATION_SERIAL = 0
int PCI_CLASS_COMMUNICATION_PARALLEL = 1
int PCI_CLASS_COMMUNICATION_MULTISERIAL = 2
int PCI_CLASS_COMMUNICATION_MODEM = 3
int PCI_CLASS_COMMUNICATION_OTHER = 80
int PCI_BASE_CLASS_INPUT = 9
int PCI_CLASS_INPUT_KEYBOARD = 0
int PCI_CLASS_INPUT_PEN = 1
int PCI_CLASS_INPUT_MOUSE = 2
int PCI_CLASS_INPUT_SCANNER = 3
int PCI_CLASS_INPUT_GAMEPORT = 4
int PCI_CLASS_INPUT_OTHER = 80
int PCI_BASE_CLASS_SERIAL = 12
int PCI_CLASS_SERIAL_FIREWIRE = 0
int PCI_CLASS_SERIAL_ACCESS = 1
int PCI_CLASS_SERIAL_SSA = 2
int PCI_CLASS_SERIAL_USB = 3
int PCI_CLASS_SERIAL_FIBER = 4
int PCI_CLASS_SERIAL_SMBUS = 5
list FORMFACTOR_LIST

Function Documentation

def hardwareprofile::smolt::to_ascii (   o,
  current_encoding = 'utf-8' 
)

Definition at line 192 of file smolt.py.

def hardwareprofile::smolt::get_file_systems (   gate  ) 

Definition at line 332 of file smolt.py.

def hardwareprofile::smolt::ignoreDevice (   device  ) 

Definition at line 353 of file smolt.py.

def hardwareprofile::smolt::serverMessage (   page  ) 

Definition at line 379 of file smolt.py.

def hardwareprofile::smolt::error (   message  ) 

Definition at line 389 of file smolt.py.

def hardwareprofile::smolt::debug (   message  ) 

Definition at line 392 of file smolt.py.

def hardwareprofile::smolt::reset_resolver (  ) 
Attempt to reset the system hostname resolver.
returns 0 on success, or -1 if an error occurs.

Definition at line 396 of file smolt.py.

def hardwareprofile::smolt::read_cpuinfo (  ) 

Definition at line 926 of file smolt.py.

def hardwareprofile::smolt::read_memory (  ) 

Definition at line 1176 of file smolt.py.

def hardwareprofile::smolt::read_memory_2_4 (  ) 

Definition at line 1186 of file smolt.py.

def hardwareprofile::smolt::read_memory_2_6 (  ) 

Definition at line 1209 of file smolt.py.

def hardwareprofile::smolt::create_profile_nocatch (   gate,
  uuid 
)

Definition at line 1242 of file smolt.py.

def hardwareprofile::smolt::create_profile (   gate,
  uuid 
)

For refactoring, I'll probably want to make a library Of command line tool functions This is one of them.

Definition at line 1249 of file smolt.py.

def hardwareprofile::smolt::get_profile_link (   smoonURL,
  pub_uuid 
)

This is another.

Definition at line 1259 of file smolt.py.

def hardwareprofile::smolt::read_uuid (  ) 

Definition at line 1262 of file smolt.py.

def hardwareprofile::smolt::read_pub_uuid (   uuiddb,
  uuid,
  user_agent = user_agent,
  smoonURL = smoonURL,
  timeout = timeout,
  silent = False 
)

Definition at line 1277 of file smolt.py.


Variable Documentation

Definition at line 70 of file smolt.py.

Definition at line 71 of file smolt.py.

Definition at line 72 of file smolt.py.

Definition at line 73 of file smolt.py.

tuple hardwareprofile::smolt::fs_types = get_config_attr("FS_TYPES", ["ext2", "ext3", "xfs", "reiserfs"])

Definition at line 76 of file smolt.py.

tuple hardwareprofile::smolt::fs_mounts = dict.fromkeys(get_config_attr("FS_MOUNTS", ["/", "/home", "/etc", "/var", "/boot"]), True)

Definition at line 77 of file smolt.py.

tuple hardwareprofile::smolt::fs_m_filter = get_config_attr("FS_M_FILTER", False)

Definition at line 78 of file smolt.py.

tuple hardwareprofile::smolt::fs_t_filter = get_config_attr("FS_T_FILTER", False)

Definition at line 79 of file smolt.py.

tuple hardwareprofile::smolt::smoonURL = get_config_attr("SMOON_URL", "http://smolts.org/")

Definition at line 81 of file smolt.py.

tuple hardwareprofile::smolt::secure = get_config_attr("SECURE", 0)

Definition at line 82 of file smolt.py.

tuple hardwareprofile::smolt::hw_uuid_file = get_config_attr("HW_UUID", "/etc/smolt/hw-uuid")

Definition at line 83 of file smolt.py.

tuple hardwareprofile::smolt::admin_token_file = get_config_attr("ADMIN_TOKEN", '' )

Definition at line 84 of file smolt.py.

Definition at line 86 of file smolt.py.

Definition at line 87 of file smolt.py.

Definition at line 88 of file smolt.py.

Definition at line 89 of file smolt.py.

Definition at line 90 of file smolt.py.

Referenced by _set_nv_timer(), TV::ActiveHandleAction(), AppleRemote::AppleRemote(), BackendConnectionManager::BackendConnectionManager(), CECAdapter::CECAdapter(), channelscan_detect(), channelscan_find_lock(), LCDProcClient::connectToHost(), TrackInfoPopup::Create(), PlaybackBox::Create(), MythMusicVolumeDialog::Create(), LogViewer::Create(), TV::customEvent(), BackendConnectionManager::customEvent(), RemoteEncoder::GetSignalLockTimeout(), GLSingleView::GLSingleView(), GuideGrid::GuideGrid(), hdhomerun_device_wait_for_lock(), hdhomerun_discover_find_devices(), hdhomerun_sock_wait_for_read_event(), hdhomerun_sock_wait_for_write_event(), IdleScreen::IdleScreen(), MythRemoteLineEdit::Init(), GuideGrid::Init(), JumpToChannel::JumpToChannel(), LCD::LCD(), LCDProcClient::LCDProcClient(), MainServer::MainServer(), MiniPlayer::MiniPlayer(), MythMainWindow::MythMainWindow(), MythNews::MythNews(), MythUIButton::MythUIButton(), MythUIFileBrowser::MythUIFileBrowser(), NewKernelDeintFilter(), MythPlayer::OpenFile(), OutboundRequestHandler::OutboundRequestHandler(), UPNPScanner::ParseDescription(), RingBuffer::PauseAndWait(), TV::PauseLiveTV(), DecoderIOFactoryShoutCast::periodicallyCheckResponse(), DeviceReadBuffer::Poll(), MythUDPListener::Process(), BiopTap::Process(), RSSManager::RSSManager(), TVRec::run(), ScreenSaverX11Private::ScreenSaverX11Private(), UPNPSubscription::SendSubscribeRequest(), setupStreamSocket(), DecoderIOFactoryShoutCast::shoutcastChangedState(), SingleView::SingleView(), UPNPScanner::Start(), sub_read_line_subrip(), ThemeUpdateChecker::ThemeUpdateChecker(), UPNPScanner::timerEvent(), UIKeyType::UIKeyType(), TV::UpdateOSDTimeoutMessage(), Weather::Weather(), WeatherSource::WeatherSource(), WelcomeDialog::WelcomeDialog(), MSocketDevice::writeData(), YadifDeintFilter(), ZMClient::ZMClient(), ZMConsole::ZMConsole(), and ZMLivePlayer::ZMLivePlayer().

Definition at line 91 of file smolt.py.

Referenced by setHttpProxy().

Definition at line 95 of file smolt.py.

Definition at line 96 of file smolt.py.

Definition at line 97 of file smolt.py.

Definition at line 98 of file smolt.py.

Definition at line 99 of file smolt.py.

Definition at line 100 of file smolt.py.

Definition at line 101 of file smolt.py.

Definition at line 103 of file smolt.py.

Definition at line 104 of file smolt.py.

Definition at line 105 of file smolt.py.

Definition at line 106 of file smolt.py.

Definition at line 107 of file smolt.py.

Definition at line 108 of file smolt.py.

Definition at line 109 of file smolt.py.

Definition at line 111 of file smolt.py.

Definition at line 112 of file smolt.py.

Definition at line 113 of file smolt.py.

Definition at line 114 of file smolt.py.

Definition at line 115 of file smolt.py.

Definition at line 117 of file smolt.py.

Definition at line 118 of file smolt.py.

Definition at line 119 of file smolt.py.

Definition at line 120 of file smolt.py.

Definition at line 121 of file smolt.py.

Definition at line 122 of file smolt.py.

Definition at line 124 of file smolt.py.

Definition at line 125 of file smolt.py.

Definition at line 126 of file smolt.py.

Definition at line 127 of file smolt.py.

Definition at line 128 of file smolt.py.

Definition at line 129 of file smolt.py.

Definition at line 130 of file smolt.py.

Definition at line 131 of file smolt.py.

Definition at line 132 of file smolt.py.

Definition at line 133 of file smolt.py.

Definition at line 134 of file smolt.py.

Definition at line 136 of file smolt.py.

Definition at line 137 of file smolt.py.

Definition at line 138 of file smolt.py.

Definition at line 139 of file smolt.py.

Definition at line 140 of file smolt.py.

Definition at line 141 of file smolt.py.

Definition at line 143 of file smolt.py.

Definition at line 144 of file smolt.py.

Definition at line 145 of file smolt.py.

Definition at line 146 of file smolt.py.

Definition at line 147 of file smolt.py.

Definition at line 148 of file smolt.py.

Definition at line 149 of file smolt.py.

Definition at line 151 of file smolt.py.

Definition at line 152 of file smolt.py.

Definition at line 153 of file smolt.py.

Definition at line 155 of file smolt.py.

Definition at line 156 of file smolt.py.

Definition at line 157 of file smolt.py.

Definition at line 158 of file smolt.py.

Initial value:
[ "Unknown",
                "Other",
                "Unknown",
                "Desktop",
                "Low Profile Desktop",
                "Pizza Box",
                "Mini Tower",
                "Tower",
                "Portable",
                "Laptop",
                "Notebook",
                "Hand Held",
                "Docking Station",
                "All In One",
                "Sub Notebook",
                "Space-saving",
                "Lunch Box",
                "Main Server Chassis",
                "Expansion Chassis",
                "Sub Chassis",
                "Bus Expansion Chassis",
                "Peripheral Chassis",
                "RAID Chassis",
                "Rack Mount Chassis",
                "Sealed-case PC",
                "Multi-system",
                "CompactPCI",
                "AdvancedTCA"
    ]

Definition at line 162 of file smolt.py.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Generated on Mon May 28 06:42:34 2012 for MythTV by  doxygen 1.6.3