summaryrefslogtreecommitdiff
path: root/archey.new
AgeCommit message (Collapse)Author
2010-11-19Migrated existing display classes to new get_value format.Laurie Clark-Michalek
2010-11-19Added 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-19Evaluate 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-19Base 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-18Added main function and conditional executionLaurie Clark-Michalek
2010-11-18Output 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-18Added 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-18Added @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-18Converted 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-17We don't need these imports anymore.David Vazgenovich Shakaryan
2010-11-17Get a list of processes that actually works.David Vazgenovich Shakaryan
2010-11-17added missing 'DjMelik
2010-11-17spaces > tabsDjMelik
2010-11-17added process detectionDjMelik
2010-11-17more cleanupDjMelik
2010-11-17Merge branch 'master' of github.com:djmelik/archeyDjMelik
2010-11-17cleanupDjMelik
2010-11-17If distro not detected, exit with error exit code.David Vazgenovich Shakaryan
2010-11-17No need to inherit from Output class.David Vazgenovich Shakaryan
2010-11-17Check if file exists instead of opening it.David Vazgenovich Shakaryan
2010-11-17cleanupDjMelik
2010-11-17initial push for archey in puthon3DjMelik