summaryrefslogtreecommitdiffstats
path: root/pyfirstaidkit/interpret.py
Commit message (Collapse)AuthorAgeFilesLines
* Add a finer grained possibility to interrupt execution and do some tweaks in ↵Martin Sivak2010-06-211-5/+13
| | | | Gtk UI
* Make END message more generic, so the plugins can use it to signal the end ↵Martin Sivak2009-07-141-2/+2
| | | | of answer
* Reset the flags before the root checkMartin Sivak2008-11-201-1/+3
|
* Various small fixes.Joel Andres Granados2008-11-191-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | Makefile: 1. Cut counts from 1 not 0. 2. Create the "about" info in the makefile instead of spec file. 3. Put subdirs and about targets into one build target. firstaidkit.spec: 1. Erase the about creation from here. 2. Erase the fedora 7 specific stuff. 3. Call make build. 4. xserver plugin does not need rhpl nor rhpxl anymore. 5. Actually include the COPYING file where the about says it is. configuration.py: 1. Change the default backup dir from /tmp/fakbackup to /tmp. /tmp/fakbackup caused some file permission strangeness when a non root user executed fak after root had executed it. This can still occur, but it will be left like this as the user should not execute fak in non root anyway. logging: plugins.py,interpreter.py. __init__.py 1. Always use the reporting object when possible. 2. Add time stamp and level of message to log messages.
* Fix typo.Joel Andres Granados2008-08-081-1/+1
|
* Make backup.rootpath = "" when user defines fullpath.Joel Andres Granados2008-08-081-0/+4
| | | | | | This is more an esthetic change. Now, when the user defines the fullpath the rootpath will be "" and not have some other value that does not relate to the fullpath.
* Create a new backup directory every time, unless the user tells us otherwise.Joel Andres Granados2008-08-071-1/+3
| | | | | | Use tempfile to create safe backup directories. User should define backup.fullpath if he wants to override the default behaviour. User can also choose the directory where the backup directory goes.
* Avoid the ugly space left by adding "\" to a string separation.Joel Andres Granados2008-07-141-7/+7
| | | | | | | | | | | | | | | When deviding a string into two lines one must use pythons automatic string concatenation (python concatenates strings that are in different line but are inside parenthesis). Do not use the "\" in the string as this will cause strange and unwanted output. Yes: print("long string" "rest of string") No: print("long string \ rest of string")
* Put the header and footer for the print information function in the FAKInfo ↵Joel Andres Granados2008-07-141-3/+1
| | | | | | | class. The only condition to lookout for is that the fd must have a write function implemented. By default the stdout is used.
* Fix the format of the firstaidkit file.Joel Andres Granados2008-07-141-32/+65
| | | | | | | | | | | | | - Indendtation should be 4 spaces. There was a function indented with 8 spaces. - Lines should be shorted than 80 chars. It just looks pretty :) Think of terminals whith only 80 char of length. Think of debuging in rescue mode. - Change also the print statements. Just getting ready for python 3000. - Get some spaces between elifs - There should not be any lines ending in spaces. - This can all be read in the python code conventions http://www.python.org/dev/peps/pep-0008/
* Add the Info object and make it possible to override lock for single sectionMartin Sivak2008-06-301-0/+7
|
* Issue reporting and Tasker interruptMartin Sivak2008-04-231-1/+7
|
* Fix the flow modeMartin Sivak2008-04-221-0/+1
|
* Add --nodeps commandline parameter and associated operation.dependencies ↵Martin Sivak2008-04-221-23/+23
| | | | | | configuration flag Modify the Tasker to accept list of plugins and list of flows to run with them (so it is possible to choose arbitrary combination in gui)
* Make the flags and Tasker object reusableMartin Sivak2008-04-211-0/+1
|
* Improvements targeted at better Gui integrationMartin Sivak2008-04-211-5/+24
|
* Add --flags commandline option to list all known dependency flagsMartin Sivak2008-04-181-2/+4
|
* Split the dependency system to its own file, to have better readability when ↵Martin Sivak2008-04-181-40/+1
| | | | new features are introduced
* Flag system is able to list all known flagsMartin Sivak2008-04-181-0/+13
|
* Introduce the common Backup interface and move utils package into directoryMartin Sivak2008-03-141-1/+3
|
* There can be a flow name exception when the user defins the plugin/flowJoel Andres Granados2008-03-141-1/+1
|
* Create an use the invalidpluginname exception.Joel Andres Granados2008-03-141-1/+4
|
* Make the interpret.py file readable in limited screan environments :)Joel Andres Granados2008-03-071-8/+19
|
* Sanitize the origin/level/importance systemMartin Sivak2008-03-051-7/+12
| | | | | Use reporting when possible (some messages automatically use Logger to avoid duplication) Improve the Output thread to use the new level/importance system
* Fix behaviour when default flow does not exist and the auto mode is running ↵Martin Sivak2008-02-291-2/+2
| | | | without specified flow
* One little mistake.. fix the condition in interpreterMartin Sivak2008-02-281-1/+1
|
* Modify the plugins, tasker and cli launcher to provide means to split the ↵Martin Sivak2008-02-281-2/+9
| | | | | | flows into diagnostics and fixes. So when the user launches ./firstaidkit -a it runs only diagnostics. For fixing use ./firstaidkit -a fix
* Move the check for root environment into the interpret and utilize flag ↵Martin Sivak2008-02-261-0/+27
| | | | | | system for it. Add --info and --list commands for getting the information about plugins.
* Stupid typo...Martin Sivak2008-02-111-1/+1
|
* Add a possibility to set list of flags, which are true from the beginningMartin Sivak2008-02-111-0/+4
|
* Add conflict flags to plugin definitionMartin Sivak2008-02-111-1/+14
| | | | Add "activity" flags, so our "Tracker plugins logic" can work
* Fix two errors reported by pylintMartin Sivak2008-02-041-0/+1
| | | | Missing import in interpret and bad module specification for exit in utils
* Make logging workJoel Andres Granados2008-02-011-1/+2
|
* The log in __builtins__ might have some strange sideeffects.Joel Andres Granados2008-02-011-1/+1
|
* Log the pluginsystem stuff ot a file.Joel Andres Granados2008-01-161-1/+1
| | | | | Put the Logger in the __builtin__. Use Config object to initialize the default values.
* Move from tasker to pyfirstaidkit to try to follow the standard in ↵Joel Andres Granados2008-01-021-0/+84
site-packages.