Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Completed test case | Nima Talebi | 2009-05-23 | 2 | -3/+3 |
| | | | | | | | Removed trailing spaces from xml data file. Commented out fprintf()s for now (Perhapse should add them to the debug build at least). | ||||
* | More cleanup | Nima Talebi | 2009-05-23 | 5 | -7/+12 |
| | | | | | | | | | Don't write to stdout unless in debug mode (with respect to writing to memory devices. Added the xml datafile to setup (distutils). Updated test case (incorporating color and cleaning up tests). | ||||
* | Updating Debian-specifics | Nima Talebi | 2009-05-23 | 2 | -3/+5 |
| | |||||
* | Final cleanup | Nima Talebi | 2009-05-23 | 1 | -1/+1 |
| | |||||
* | Fixed minor bug which prevented debug builds | Nima Talebi | 2009-05-23 | 2 | -2/+4 |
| | |||||
* | Reversioned, relicensed, and rejigged | Nima Talebi | 2009-05-22 | 5 | -46/+85 |
| | | | | | | | | | | | The version is of now, v3.10.6. The version major field has been upped due to the newly added XML functionality. The version has been reverted to GPLv2. Some headers have been cleaned up, copyright notices added etc. Credits given where due. | ||||
* | Update copyright notice | Nima Talebi | 2009-05-22 | 2 | -6/+14 |
| | |||||
* | Bringing setup files upto date | Nima Talebi | 2009-05-22 | 2 | -9/+12 |
| | |||||
* | Fixed a bug, and preparing to dupload to Debian | Nima Talebi | 2009-05-22 | 1 | -1/+1 |
| | |||||
* | Changed the node content of /dmidecode/ProcessorInfo/CPUCore/cpu_flags/flag ↵ | David Sommerseth | 2009-05-20 | 1 | -30/+30 |
| | | | | | | | to maintain backwards compatibility The old python-dmidecode uses the format '{flag} ({description})'. This format is now used is well as contents for the cpu_flags/flag text nodes. | ||||
* | Fixed the bios field mapping to use relative XPaths | David Sommerseth | 2009-05-20 | 1 | -23/+23 |
| | |||||
* | Added field mapping for dmidecode.connectors() | David Sommerseth | 2009-05-20 | 1 | -0/+22 |
| | |||||
* | Added field mapping for dmidecode.slots() | David Sommerseth | 2009-05-20 | 1 | -0/+22 |
| | |||||
* | Use correct index value for ↵ | David Sommerseth | 2009-05-20 | 1 | -1/+1 |
| | | | | /dmidecode/SystemSlots/SlotCharacteristics/Characteristic/@index | ||||
* | Added field mapping for dmidecode.baseboard() | David Sommerseth | 2009-05-20 | 1 | -0/+28 |
| | |||||
* | Added field mapping for the dmidecode.system() section | David Sommerseth | 2009-05-20 | 1 | -3/+52 |
| | |||||
* | Added support for value type 'list:dict' for field mapping | David Sommerseth | 2009-05-20 | 2 | -14/+80 |
| | | | | | | | | | | | | | | This builds up a list of dicts. Syntax is: <Map keytype="constant" key="TestData" valuetype="list:dict" value="/xml/XPath/to/nodes"> <Map keytype="constant" key="field" valuetype="string" key="ValueNode"/> </Map> The parser will iterate all nodes defined in the @value attribute and the root path will of the nested mapping will be using the path in @value as the root path for further parsing. | ||||
* | Added field python dict mapping for CacheInfo | David Sommerseth | 2009-05-20 | 1 | -0/+36 |
| | |||||
* | Fixed some errors in the XML layout on CacheInfo | David Sommerseth | 2009-05-20 | 1 | -3/+3 |
| | |||||
* | Added a few missing comments | David Sommerseth | 2009-05-20 | 1 | -0/+8 |
| | |||||
* | Fixed some ugly, unattractive and unhealthy code | Nima Talebi | 2009-05-20 | 1 | -12/+0 |
| | | | | | These hangover lines must have crept in at the early stages of the initial conversion of dmidecode to python-dmidecode. Fixed. | ||||
* | Reorganised attributes in SystemSlots tag | David Sommerseth | 2009-05-15 | 1 | -6/+43 |
| | | | | | | This part of the XML result was not valid due to duplicated tag attributes. Moved some of this specifications from the SystemSlots tag to its own SlotID tag, with even more details. | ||||
* | Completed mapping the memory section | David Sommerseth | 2009-05-15 | 1 | -0/+46 |
| | |||||
* | Fixed some errors in decoding "3.3.5.9 Processor Characteristics" | David Sommerseth | 2009-05-15 | 1 | -2/+1 |
| | | | | Fixes regression in parsing introduced when rewriting dmidecode to use libxml2 | ||||
* | Added 'emptyValue' attribute in the Map tag | David Sommerseth | 2009-05-15 | 2 | -16/+34 |
| | | | | | This attribute defines a default value when XML source data is empty | ||||
* | Remove 'ns' from the speed_ns attribute in memory section | David Sommerseth | 2009-05-14 | 1 | -1/+1 |
| | |||||
* | Added new Map attribute - emptyIsNone | David Sommerseth | 2009-05-14 | 2 | -14/+59 |
| | | | | | | | | If the emptyIsNone attribute is set to "1", the Python result will be forced to Py_None if the referenced XML value is empty. When checking if the value is empty, the XML value is right trimmed to remove trailing spaces. Only spaces are are removed. | ||||
* | Support fixed size lists | David Sommerseth | 2009-05-14 | 2 | -3/+69 |
| | | | | | | | | | When using one of the list types as valuetype, the Map tag now also supports fixedsize and index_attr attributes. - fixedsize : Defines a fixed size of the list - index_attr : Defines an attribute name of the input XML data which contains the list index for the value | ||||
* | Fixed another parser issue | David Sommerseth | 2009-05-14 | 1 | -111/+122 |
| | | | | | When using rootpath, it did not parse all elements as expected. Also restricted the rootpath to only work when valuetype="dict". | ||||
* | Avoid segfault if XPATH_NODESET do not contain any data | David Sommerseth | 2009-05-13 | 1 | -1/+6 |
| | |||||
* | Added mapping for chassis information | David Sommerseth | 2009-05-13 | 1 | -0/+19 |
| | |||||
* | Added mapping for ProcessorInfo | David Sommerseth | 2009-05-13 | 1 | -0/+48 |
| | |||||
* | Big rewrite of xmlpythonizer | David Sommerseth | 2009-05-13 | 2 | -76/+157 |
| | | | | | | | | - Supports relative XPaths now by using the rootpath attribute in the Map tag. This path is then set for all elements inside this Map tag. - Rewrote the parser to recurse correctly. The former version did not recurse well on the very outer (first) Map level. | ||||
* | Mark CPU as Populated = 'No' when not present | David Sommerseth | 2009-05-13 | 1 | -1/+1 |
| | |||||
* | Add all CPU flags, and mark them as available or not | David Sommerseth | 2009-05-13 | 1 | -2/+4 |
| | | | | This is to preserve backwards compatibility | ||||
* | Fixed segfault when processing XPATH_NODESET type and the nodeset is NULL | David Sommerseth | 2009-05-13 | 1 | -1/+1 |
| | |||||
* | Corrected minor errors in ProcessorInfo XML tags | David Sommerseth | 2009-05-13 | 1 | -2/+3 |
| | |||||
* | Improved error handling when parsing mapping XML | David Sommerseth | 2009-05-04 | 2 | -5/+9 |
| | |||||
* | Fixed typo in config.h - error in pythonmap.xml filename | David Sommerseth | 2009-05-04 | 1 | -1/+1 |
| | |||||
* | Improved setting of pythonmap.xml | David Sommerseth | 2009-04-30 | 3 | -1/+31 |
| | | | | | | The default file is now set to /usr/share/python-dmidecode/pythonmap.xml (defined in config.h) and can be overridden with the dmidecode.pythonmap() function in Python. | ||||
* | Fixed a bug causing segv | David Sommerseth | 2009-04-30 | 1 | -2/+2 |
| | | | | | | | | When calling dmidecode_get_xml(...) several times could cause a crash due to the opt.dmiversion_n pointer being freed by a mistake when the generated dmixml_n got freed later on in the function. Also fixed an assertion typo | ||||
* | Version number fix | Nima Talebi | 2009-05-01 | 2 | -2/+2 |
| | |||||
* | Began completing the rewrite of needed dmidecodemodule changes | David Sommerseth | 2009-04-30 | 5 | -98/+154 |
| | |||||
* | Rewritten dmixml_GetXPathContent(...) and _get_key_value(...) | David Sommerseth | 2009-04-30 | 3 | -37/+53 |
| | | | | | This rewrite was to handle XPATH_NUMBER more correctly. Now these functions needs an preallocated memory buffer for the result. | ||||
* | Completed mapping the bios section | David Sommerseth | 2009-04-29 | 1 | -12/+23 |
| | |||||
* | Reimplemented the XPath integration | David Sommerseth | 2009-04-29 | 1 | -27/+43 |
| | | | | | | | Now the XPath expressions can include XPath functions as well. The previous implementation only supported XPATH_NODESET results from XPath queries. Now XPATH_STRING and XPATH_NUMBER results are supported as well. XPATH_BOOLEAN might be needed later on. | ||||
* | Added function for retrieving values from XPath objects | David Sommerseth | 2009-04-29 | 2 | -1/+36 |
| | | | | Reverted commit 75aaf67d43cf4a28fe8d3e07111dab75a0c4396d in addition | ||||
* | dmidecode: Moved ROMsize size unit into tag attribute | David Sommerseth | 2009-04-29 | 1 | -1/+3 |
| | |||||
* | Filter out BIOS characteristics with XPath expressions | David Sommerseth | 2009-04-29 | 1 | -19/+16 |
| | |||||
* | Revert "Added filter and filtervalue attributes to xmlpythonizer's <Map> tags" | David Sommerseth | 2009-04-29 | 2 | -78/+12 |
| | | | | | | | This reverts commit 4b925a1433b65c217e787804df3cf349d6b387aa. Discovered that XPath got the needed power for filtering, no need for this extra feature |