summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* Completed python XML map for TypeMap 0x1ADavid Sommerseth2009-07-021-1/+24
|
* Completed python XML map for TypeMap 0x19David Sommerseth2009-07-021-1/+9
| | | | | | | | | | Format has changed slightly. The original format in v2.10 was: {'Next Scheduled Power-on': [' *','-*',' 0',':0',':0']} The new format is: {'Next Scheduled Power-on': '*-* *:*:*'} The reason is that the formatting in the original list was rather half-done, containing separators in some of the elements.
* Completed python XML map for TypeMap 0x18David Sommerseth2009-07-021-1/+16
|
* Completed python XML map for TypeMap 0x17David Sommerseth2009-07-021-1/+17
|
* Completed python XML map for TypeMap 0x16David Sommerseth2009-07-022-2/+23
|
* Completed python XML map for TypeMap 0x15David Sommerseth2009-07-021-0/+10
|
* Completed python XML map for TypeMap 0x14David Sommerseth2009-07-021-1/+18
|
* Completed python XML map for TypeMap 0x13David Sommerseth2009-07-021-1/+14
|
* Completed python XML map for TypeMap 0x12David Sommerseth2009-07-021-1/+18
|
* Completed python XML map for TypeMap 0x0CDavid Sommerseth2009-07-021-1/+11
|
* Completed python XML map for TypeMap 0x0BDavid Sommerseth2009-07-021-1/+11
|
* Completed python XML map for TypeMap 0x06David Sommerseth2009-07-022-3/+28
|
* Completed python XML map for TypeMap 0x05David Sommerseth2009-07-022-8/+39
|
* Undefine NDEBUG in normal compiles as well.David Sommerseth2009-07-011-1/+2
| | | | | | Arguments for doing so is that asserts are important to catch unhandled error situations and will help debugging if it fails in a production environment.
* Fixed incorrectly Py_DECREC() on Py_None valuesDavid Sommerseth2009-06-191-3/+5
|
* Fixed missing check which caused SEGV on Python2.3David Sommerseth2009-06-191-1/+1
| | | | | Could also be related to an older libxml2 version as well, as this behaviour was found on RHEL4u4
* Fixed issue with unterminated list in dmidecode_xmlapi()David Sommerseth2009-06-181-1/+1
| | | | This caused an exception on Python2.3
* Added dmidump utilityDavid Sommerseth2009-06-181-0/+13
| | | | | | | | | This is a simple utility which dumps DMI/SMBIOS data straight to a file, written i C and should not depend on anything extra. Useful to get DMI/SMBIOS data without installing python and/or python-dmidecode. The data dump can be parsed by python-dmidecode later on on a different box.
* Splitted out SMBIOS/DMI dump functions from dmidecode.c to separate filesDavid Sommerseth2009-06-189-169/+320
|
* Commented in the Debian workaround for `xml2mod'Nima Talebi2009-06-172-0/+2
|
* Added new function: dmixml_FindNodeByAttr_NoCase(...)David Sommerseth2009-06-153-7/+46
| | | | | | | | | | This function will ignore the case of the string of the value to be found. This improves the behaviour mentioned in commit 20030e42b4d3f7283f6143641cb009a8dbf1da24. At the moment, the immediate advantage is that the pymap.xml is not strictly bound to if the type IDs in hex are in upper and/or lower case. Both cases and mixed cases will now work.
* Fixed wrong behavivour in pythonizeXMLnode() when no key value is foundDavid Sommerseth2009-06-151-23/+22
| | | | | | | | | | | | | | | | | | | | | If the XPath expression for the key value points on a non-existing XML node, it would earlier abort pythonizing the XML data. Even though this could look like the correct behaviour, it will not work out well in reality. For sections like 'bios', it might be that the DMI/SMBIOS data do not describe or provide the BIOSLanguage section (type id 0x0D). Which means calling dmidecode.bios() would fail completely instead of reporting what it could find. This patch fixes this issue and it will normally ignore not found key values and just continue pythonizing the XML data and return what it managed to translate into a Python dictionary. If DEBUG is defined when compiling python-dmidecode, a warning message will be printed directly to stderr when a key value is not found. A warning is printed if dmidecode is compiled with DEBUG defined.
* Fixed wrong int->hex string conversionDavid Sommerseth2009-06-151-1/+1
| | | | | Upper case hex string values is used in the pymap.xml file. This should be improved so that type id is case insensitive.
* Fixed error in dumping DMI/SMBIOS data to diskDavid Sommerseth2009-06-121-2/+4
|
* Fixed another XML formatting error in dmidecode.cDavid Sommerseth2009-06-121-1/+1
|
* Fixed an XML formatting issue - dmispec attribute was duplicated in <OEMstrings>David Sommerseth2009-06-111-1/+0
|
* Pick the version info from version.hDavid Sommerseth2009-06-112-2/+4
|
* Make get_version() look for version.h one more placeDavid Sommerseth2009-06-111-1/+5
|
* Improved setup.py/setup-dbg.py even moreDavid Sommerseth2009-06-114-11/+128
| | | | | Get libxml2 compile time info from xml2-config. Retrieve version number from src/version.h
* Updated setup-dbg.py to be in sync with setup.pyDavid Sommerseth2009-06-111-3/+9
| | | | Also undefined the NDEBUG when building this package
* Made sure copyright is in place and right people get their deserved creditDavid Sommerseth2009-06-118-5/+265
|
* Implemented new dmidecode function - QueryTypeId(...)David Sommerseth2009-06-111-0/+4
| | | | | | This function shadows the dmidecode.type() function. This is to clarify more what the function does and to unify the API against the dmidecodeXML API.
* Implemented new dmidecode function - QuerySection(...)David Sommerseth2009-06-111-0/+16
| | | | | | | This is a more dynamic function than the static functions like dmidecode.bios(). The equivalent will be dmidecode.QuerySection('bios') This is to unify the dmidecode API and the dmidecodeXML API
* Renamed <description> to <DMIdescription> to avoid confusion with the ↵David Sommerseth2009-06-111-1/+1
| | | | <Description> tag
* Added mapping to retrieve all DMI/SMBIOS types dmidecode can decodeDavid Sommerseth2009-06-111-0/+46
|
* Fixed crashes and unexpected behaviour on unknown DMI/SMBIOS typesDavid Sommerseth2009-06-113-20/+48
| | | | | Also provide more useful information, both on unsupported types and types not found on the hardware
* Fixed error in XML data for dmi_temperature_probe_location(...)David Sommerseth2009-06-111-1/+1
|
* Cleaned up and fetch libdir from Python settings insteadDavid Sommerseth2009-06-101-2/+5
|
* Added missing include fileDavid Sommerseth2009-06-101-0/+249
|
* Discovered another issue with Python and importsDavid Sommerseth2009-06-102-3/+3
| | | | | | | | | | | | | | | | | | The shard library got renamed to dmidecodemodule.so, and this was not clever. When you do 'import dmidecode' in Python, it will look for files in this order: dmidecode dmidecode.so dmidecodemodule.so dmidecode.py dmidecode.pyc This is of course a problem when the wrapper introduced in commit 65c9384ec9b6e265aba11227ffa37ae7a6a787d1 is called dmidecode.py, and Python attempts to load dmidecodemodule.so before dmidecode.py. To solve this, dmidecodemodule.so is now renamed to dmidecodemod.so.
* Fixed missing include and disabled printing errors from stderrDavid Sommerseth2009-06-101-2/+2
|
* Fixed import issues with dmidecodeDavid Sommerseth2009-06-103-66/+5
| | | | | | | | | | | | | | | | As we now include libxml2 and the required libxml2mod (which is used to wrap xmlDoc and xmlNode data into Python objects), importing only dmidecode caused a failure. If adding import libxml2 first, everything would work out fine. To avoid this issue, due to backwards compatibility, a tiny dmidecode wrapper is implemted as well. The dmidecode.so module is now renamed to dmidecodemodule.so, and the wrapper is now called dmidecode.py. To simplify things, the dmidecodeXML module introduced in commit b25b2ca548508cd2beb26f465b7bc5a296592461 is not merged into the new dmidecode.py The constants mentioned are now called dmidecode.DMIXML_NODE and dmidecode.DMIXML_DOC and to instantiate the dmidecodeXML class, dmidecode.dmidecodeXML() is used.
* Implemented native libxml2 XML API for dmidecodeDavid Sommerseth2009-06-103-16/+180
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To use this API, you need to import dmidecodeXML. This is a wrapper class for the internal XML API which has been implemented. In addition, you might also want to import libxml2 as well. dmidecodeXML::QuerySection(<string>) Valid section strings can be found in the pymap.xml file, in the <GroupMapping> tag section. dmidecodeXML::TypeId(<integer between 0-255>) Valid values should match the DMI/SMBIOS specification. dmidecodeXML::SetResultType(resultType) Result type can be either dmidecodeXML.DMIXML_NODE or dmidecodeXML.DMIXML_DOC ---------------------------------------------------------- import libxml2 import dmidecodeXML dmixml = dmidecodeXML.dmidecodeXML() section_nodes = dmixml.QuerySection('processor') dmixml.SetResultType(dmidecodeXML.DMIXML_DOC) typeid_doc = dmixml.QueryTypeId(0x10) dmixml.SetResultType(dmidecodeXML.DMIXML_NODE) typeid_doc.saveFormatFileEnc("-", "UTF-8", 1) ----------------------------------------------------------
* Forgot to remove a comment in dmierror.cDavid Sommerseth2009-06-091-1/+1
|
* Remember to compile in dmierror.c ;-)David Sommerseth2009-06-092-0/+2
|
* Improved error handling and fixed last unit-test failuresDavid Sommerseth2009-06-091-64/+33
|
* Don't set exceptions when it should already be setDavid Sommerseth2009-06-091-4/+16
|
* Moved xmlpythonizer.c over to new error functionsDavid Sommerseth2009-06-091-59/+48
|
* Added new error handling code, to simplify error handlingDavid Sommerseth2009-06-092-0/+133
|
* Fixed SEGV when setting new devive fileDavid Sommerseth2009-06-091-2/+4
|