Age | Commit message (Collapse) | Author | |
---|---|---|---|
2010-11-19 | Migrated existing display classes to new get_value format. | Laurie Clark-Michalek | |
2010-11-19 | Added get_value and get_key functions to BaseDisplay class. | Laurie Clark-Michalek | |
These allow the key/value to be generated seperatly from the other, as if they are not overridden, they will simply return either the classes key or value attribute. This way they are fully backwards compatible. See the relevent docstring for more information. | |||
2010-11-19 | Evaluate display classes at the last minute, and via an accessor function. | Laurie Clark-Michalek | |
This allows display classes to implement functions to return their key value pairs, instead of forcing them to do it in the __init__ function. Output.append has been removed, as it is implemented by the inherited list. | |||
2010-11-19 | Base the Output class on the list type for a small speed up. | Laurie Clark-Michalek | |
Basing a class on a type implemented in C makes the derived class much faster. It's not much use here, but it's a good habbit. | |||
2010-11-18 | Added main function and conditional execution | Laurie Clark-Michalek | |
2010-11-18 | Output is now aligned from the center outwards. | Laurie Clark-Michalek | |
Renamed globals to uppercase to allow for better understanding. Added Output._getlogo in anticipation of configuration system, and Output._color for convinience. Output._center_results centers a list inside another list of ' 's. Length out outputed list can be given via max_length kwarg. | |||
2010-11-18 | Added BaseDisplay base class. | Laurie Clark-Michalek | |
This class should be inherited by all Display classes. It implements generic display functions, though only repr currently. See help(BaseDisplay) for more info. | |||
2010-11-18 | Added @enviromental_variable class decorator. | Laurie Clark-Michalek | |
The @enviromental_variable class decorator automaticly generates the value of a class, aslong as it has both a 'key' and a 'env' variable. See the docstring for more info, and example usage. | |||
2010-11-18 | Converted classes to new style classes. | Laurie Clark-Michalek | |
Old style classes (with out a pair of brackets at the end of their name) are due to be depreciated some time in the future. | |||
2010-11-17 | We don't need these imports anymore. | David Vazgenovich Shakaryan | |
2010-11-17 | Get a list of processes that actually works. | David Vazgenovich Shakaryan | |
2010-11-17 | added missing ' | DjMelik | |
2010-11-17 | spaces > tabs | DjMelik | |
2010-11-17 | added process detection | DjMelik | |
2010-11-17 | more cleanup | DjMelik | |
2010-11-17 | Merge branch 'master' of github.com:djmelik/archey | DjMelik | |
2010-11-17 | cleanup | DjMelik | |
2010-11-17 | If distro not detected, exit with error exit code. | David Vazgenovich Shakaryan | |
2010-11-17 | No need to inherit from Output class. | David Vazgenovich Shakaryan | |
2010-11-17 | Check if file exists instead of opening it. | David Vazgenovich Shakaryan | |
2010-11-17 | cleanup | DjMelik | |
2010-11-17 | initial push for archey in puthon3 | DjMelik | |