summaryrefslogtreecommitdiffstats
path: root/pyfirstaidkit/configuration.py
Commit message (Collapse)AuthorAgeFilesLines
* Changes to FAK Gui and Info objectMartin Sivak2010-09-071-2/+20
| | | | | - Gui allows to save results in info object - Info object allows attaching files and saving as .zip archive
* Set system.debug to False by defaultMartin Sivak2010-08-301-0/+1
|
* Update paths in default configurationMartin Sivak2010-03-021-2/+3
| | | | Add /usr/share prefixes for architecture independent data
* Various small fixes.Joel Andres Granados2008-11-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Add the revert functionality to firstaidkit.Joel Andres Granados2008-10-241-0/+2
| | | | | | | | | | | | | | | | | | | | | This introduces new requirements to the plugins. 1. If a plugin wants to be revertable it must implement the revert function. This function will be accessible from the plugins top most namespace. The same place where get_plugin is. 2. For the plugin's backend directory to be easily found, the plugin must give the backend its module name as an id. In this way when the user specifies in the revert command line plugin 'x', the revert class will go to the backup directory in search for a directory called the same way as the module of 'x'. 3. If the plugin developer does not want to use the system of backup dir naming, there is a second way how to specify the backup dir. The plugin must specify a function getBackupId(), that will return the id of the backup space that can be used for the backup dir search. Backup spaces that fail to comply with these directive will be ignored.
* Create a new backup directory every time, unless the user tells us otherwise.Joel Andres Granados2008-08-071-1/+2
| | | | | | 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.
* Name the path var by ignoring the first 4 chars.Joel Andres Granados2008-07-151-1/+1
|
* Separate the paths that hold the place where frontend lives.Joel Andres Granados2008-07-151-1/+1
|
* Avoid the ugly space left by adding "\" to a string separation.Joel Andres Granados2008-07-141-2/+2
| | | | | | | | | | | | | | | 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-0/+6
| | | | | | | 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-22/+43
| | | | | | | | | | | | | - 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/
* Handle the situation where /var/log/ directory is not present.Joel Andres Granados2008-07-111-0/+1
|
* Add the Info object and make it possible to override lock for single sectionMartin Sivak2008-06-301-1/+15
|
* Always use os.path.join when using the chroon.Joel Andres Granados2008-06-061-1/+1
| | | | This will avoid the double backslash.
* Get the default configuration names right.Joel Andres Granados2008-06-021-1/+1
|
* Two reasons to change the backup directory from /tmp/backup to ↵Joel Andres Granados2008-05-301-1/+1
| | | | | | | /tmp/firstaidkitbackup 1. The /tmp/backup might already exist and have some info 2. the directory /tmp/firstaidkitbackup is a bit more specific than the what was used.
* Add shortcut to getConfBitsMartin Sivak2008-04-251-1/+2
|
* Fix the gui searching code to support more directories and fix the default pathsMartin Sivak2008-04-241-1/+1
|
* Look for frontend in multiple directoriesMartin Sivak2008-04-241-2/+2
|
* Prepare gui for packaging and update the spec fileMartin Sivak2008-04-241-1/+4
|
* Introduce "interactive" configuration variable and set it to False by defaultMartin Sivak2008-04-221-0/+1
|
* Add --nodeps commandline parameter and associated operation.dependencies ↵Martin Sivak2008-04-221-0/+1
| | | | | | 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)
* Rename internal attributec of configuration object to avoid name clashesMartin Sivak2008-04-091-14/+14
| | | | Add architecture flags into the FLAGS file
* Honor the DEFAULT section in configuration fileMartin Sivak2008-04-091-3/+3
|
* Enhance the configuration system to allow getting configuration bits helping ↵Martin Sivak2008-04-091-1/+13
| | | | | | with different packages|plugins Do not print the lines around --print-config, so we can save it directly into correct configuration file
* If no mode is specified, fall back to the usage message.Joel Andres Granados2008-03-141-1/+1
|
* Introduce the common Backup interface and move utils package into directoryMartin Sivak2008-03-141-0/+2
|
* Fix syntax errorJoel Andres Granados2008-03-111-1/+1
|
* Be more intelligent about configuring the root for the plugin system.Joel Andres Granados2008-03-101-1/+6
|
* dont use '-' and '_' in the /etc/firstaidkit.conf file.Joel Andres Granados2008-03-101-2/+1
| | | | | With the use of these characters in files, directories, plugin names ... it is best not to use them in the conf file.
* Correctly search for the plugin paths and correctly add them when found.Joel Andres Granados2008-03-071-3/+3
|
* Rename the Return* classes to more sane names and update everything to use themMartin Sivak2008-02-261-1/+1
| | | | | Fix the NoOptionError exception throwing in configuration Add the -a|--auto parameter to launch the automatic mode of operation
* Move the check for root environment into the interpret and utilize flag ↵Martin Sivak2008-02-261-0/+1
| | | | | | system for it. Add --info and --list commands for getting the information about plugins.
* underline is much better.Joel Andres Granados2008-02-201-1/+1
|
* fix repeated line.Joel Andres Granados2008-02-201-1/+0
|
* Its better to have a section of paths. This will allow to add and erase pathsJoel Andres Granados2008-02-201-6/+17
| | | | as the user sees necessary.
* correct section name.Joel Andres Granados2008-02-201-1/+1
|
* fix some mistakes.Joel Andres Granados2008-02-201-3/+3
|
* Allow for a better detection of the whereabouts of the plugins. This is only ↵Joel Andres Granados2008-02-201-6/+9
| | | | for the default.
* Add a possibility to set list of flags, which are true from the beginningMartin Sivak2008-02-111-0/+1
|
* Log the pluginsystem stuff ot a file.Joel Andres Granados2008-01-161-35/+16
| | | | | Put the Logger in the __builtin__. Use Config object to initialize the default values.
* Specify that the firstaidkit plugin man page is for plugin development.Joel Andres Granados2008-01-111-3/+25
| | | | | | | Organise the packaging. (firstaidkit, firstaidkit-devel and firstaidkit-plugin-all) Comment in spec file on how to create the tar file. Use the reporting code in sample1Plugin.py script make a general way of creating the default config stuff
* Move from tasker to pyfirstaidkit to try to follow the standard in ↵Joel Andres Granados2008-01-021-0/+102
site-packages.