summaryrefslogtreecommitdiffstats
path: root/example.py
Commit message (Collapse)AuthorAgeFilesLines
* Cleaning up source area, ready for debianizing, and rpm after that.nima2008-12-171-54/+0
| | | | git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@108 abc39116-655e-4be6-ad55-d661dc543056
* Implemented reading a dump to - this concludes syncing to the upstream release.nima2008-10-311-9/+22
| | | | | | | | | Next, exceptions should be thrown in certain places, more error checking in the python side of things, and also in relation to setting and unsetting of the alternate memory file. git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@104 abc39116-655e-4be6-ad55-d661dc543056
* Dump-to-file is almost working, there seems to be a 4-byte misalignment in thenima2008-10-311-1/+4
| | | | | | | produced file though for now - needs to be fixed. git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@100 abc39116-655e-4be6-ad55-d661dc543056
* Removed verbose printout. nima2008-10-311-6/+24
| | | | git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@88 abc39116-655e-4be6-ad55-d661dc543056
* Cleanup.nima2008-10-291-6/+3
| | | | git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@85 abc39116-655e-4be6-ad55-d661dc543056
* Tested new dmidecode python module with this example file. A real test casenima2008-10-291-15/+18
| | | | | | | will be implemented sometime in future. git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@82 abc39116-655e-4be6-ad55-d661dc543056
* Cleaning up of the dmidecode module, mostly conversion of things that can benima2008-09-041-2/+2
| | | | | | | | | Python `None's or `Int's but were `String'. Replaced a meaningless int dictionary key to `data'. git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@68 abc39116-655e-4be6-ad55-d661dc543056
* Work on CPU details - seemed to been a bug with appending to a string rathernima2008-09-041-1/+8
| | | | | | | than rewriting it. git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@67 abc39116-655e-4be6-ad55-d661dc543056
* Replaced `%X' with `%x'.nima2008-08-081-9/+8
| | | | | | | Logic cleanup - Put the `Handle' info back into the dictionary. git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@66 abc39116-655e-4be6-ad55-d661dc543056
* Fixed many major bugs (all of which were expected based on the way we massnima2008-08-081-14/+10
| | | | | | | converted all the `case' blocks. git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@64 abc39116-655e-4be6-ad55-d661dc543056
* Fixed some conversion bits missed during last night.nima2008-08-071-16/+14
| | | | git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@62 abc39116-655e-4be6-ad55-d661dc543056
* Completed all conversions! Only problem now is of course finding all the memorynima2008-08-061-7/+3
| | | | | | | | leaks and introduced logic errors which (confirmed) do exists - use valgrind and see. git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@57 abc39116-655e-4be6-ad55-d661dc543056
* Cleanup.nima2008-08-061-1/+1
| | | | git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@35 abc39116-655e-4be6-ad55-d661dc543056
* Completed cases 1, 4, and 13. Also altered the main PyDict object such thatnima2008-07-261-2/+2
| | | | | | | | | | each case has a value of a list to which items are appended. Without this, each object of the same type would overwrite the previous, for example, 8 processors would result in one single cpu with data pertaining to the last cpu (7). git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@25 abc39116-655e-4be6-ad55-d661dc543056
* Completed `case 0'.nima2008-07-251-2/+2
| | | | git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@24 abc39116-655e-4be6-ad55-d661dc543056
* Added `case 3'.root2008-07-251-2/+2
| | | | git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@23 abc39116-655e-4be6-ad55-d661dc543056
* No new moves, cleanup on last commit and better test file template.root2008-07-251-6/+10
| | | | git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@22 abc39116-655e-4be6-ad55-d661dc543056
* Next phase is to start converting all pure C functions returning `char *' androot2008-07-251-2/+2
| | | | | | | | | | | | such to new Pythonized functions returning `PyObject *', to save from having to `PyString_FromString()' and similar, and more importantly, some functions return a long string that could better be represented by a PyDict, PyList etc. This is the first commit of many more to come, converting a `case XX:' at a time, making sure that each commit can actually compile and run. git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@21 abc39116-655e-4be6-ad55-d661dc543056
* Now that code has been converted, work has started on "bios", and at the pointnima2008-07-241-8/+7
| | | | | | | of proof-of-concept. git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@12 abc39116-655e-4be6-ad55-d661dc543056
* Major changes have been implemented, alas, untested, in hope to move towardsnima2008-07-031-0/+5
| | | | | | | | | | a new version of dmi decode where rather than having data just printed to screen in functions, data is passed around, and some data structure is constructed, which is then used to construct the Python list/dicitonary objects. git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@10 abc39116-655e-4be6-ad55-d661dc543056
* Now the `Handle' hex codes are the key values in the python dictionariesnima2008-07-021-6/+8
| | | | | | | returned. git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@8 abc39116-655e-4be6-ad55-d661dc543056
* Brought main() back into the python module and fixed malloc/free problems.nima2008-07-011-0/+14
git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@7 abc39116-655e-4be6-ad55-d661dc543056