| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
- Gui allows to save results in info object
- Info object allows attaching files and saving as .zip archive
|
| |
|
|
|
|
| |
Add /usr/share prefixes for architecture independent data
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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")
|
|
|
|
|
|
|
| |
class.
The only condition to lookout for is that the fd must have a write function
implemented. By default the stdout is used.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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/
|
| |
|
| |
|
|
|
|
| |
This will avoid the double backslash.
|
| |
|
|
|
|
|
|
|
| |
/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.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
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)
|
|
|
|
| |
Add architecture flags into the FLAGS file
|
| |
|
|
|
|
|
|
| |
with different packages|plugins
Do not print the lines around --print-config, so we can save it directly into correct configuration file
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
With the use of these characters in files, directories, plugin names ...
it is best not to use them in the conf file.
|
| |
|
|
|
|
|
| |
Fix the NoOptionError exception throwing in configuration
Add the -a|--auto parameter to launch the automatic mode of operation
|
|
|
|
|
|
| |
system for it.
Add --info and --list commands for getting the information about plugins.
|
| |
|
| |
|
|
|
|
| |
as the user sees necessary.
|
| |
|
| |
|
|
|
|
| |
for the default.
|
| |
|
|
|
|
|
| |
Put the Logger in the __builtin__.
Use Config object to initialize the default values.
|
|
|
|
|
|
|
| |
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
|
|
site-packages.
|