aboutsummaryrefslogtreecommitdiff
path: root/layman
Commit message (Collapse)AuthorAgeFilesLines
* dbbase.py: Adds limitation to use only one db typeDevan Franchini2015-07-131-19/+29
|
* overlay.py: Renames overlay variable to json to match parameterDevan Franchini2015-07-131-28/+28
|
* overlay.py: Fixes any other mistakes made in hasteDevan Franchini2015-07-131-2/+5
|
* overlay.py: Corrects else on line 316Devan Franchini2015-07-131-1/+1
|
* overlay.py: Modifies error message for missing "name" entryDevan Franchini2015-07-131-4/+2
| | | | | If the Overlay object has no name then trying to use the name would result in erroneous or illogical reporting.
* json_db/__init__.py: Modifies function descriptionsDevan Franchini2015-07-131-2/+2
|
* xml_db/__init__.py: Modifies function descriptionsDevan Franchini2015-07-131-3/+3
|
* json_db.py: Adds JSON databasing support to laymanDevan Franchini2015-07-132-0/+144
|
* overlay.py: Adds json support for overlay definitionsDevan Franchini2015-07-131-254/+402
| | | | Also reorganizes functions alphabetically.
* Code clean-upDevan Franchini2015-07-133-32/+31
| | | | | | | | | | | overlay.py: Modifies what from_dict() expects in the overlay dictionary constants.py: Modifies POSSIBLE_COMPONENTS and REQUIRED_COMPONENTS to reflect change in overlay.py maker.py: Modifies components that form the overlay dict to follow in suit of what from_dict() expects. These changes have been made primarily for uniformity with the from_xml() function.
* xml_db.py: Removes unnecessary __eq__ and __ne__ functionsDevan Franchini2015-07-131-11/+0
| | | | | | These functions are in the DbBase class and will continue to be used in that class. As such there's no need for any DBHandler class to include them in their code.
* Adds switch on read_db if text is providedDevan Franchini2015-07-132-4/+9
| | | | | | | Logically speaking, if the database "document" text is provided then it will likely not be universal to every database provided. Therefore adding another parameter that specifies the type of text that is being provided will help distinguish which database type it is.
* overlay.py: Quick code cleanupDevan Franchini2015-07-101-43/+70
|
* Renames db module "xml" to "xml_db"Devan Franchini2015-07-104-10/+10
| | | | This prevents namespace collisions with the required xml class.
* api.py: Removes annoying lack of space in error messageDevan Franchini2015-07-091-1/+1
|
* external.py: Adds db_type to configs for DbBase testsDevan Franchini2015-07-091-4/+8
|
* dbbase.py: Modifies read_db function to allow for passing a text parameterDevan Franchini2015-07-093-10/+13
| | | | | | | | This was done to allow for only one read*() function and add compatibility with the way read() was originally set up. xml.py: read_db() is also modified in this file for the same purpose. remotedb.py: changes the calling of self.read() to self.read_db().
* dbbase.py: Adds use of db module plug-in systemDevan Franchini2015-07-091-84/+59
| | | | | | Other changes include code clean up and the disabling of the add_new() function. Currently the DbBase only supports the XML DBHandler but more support will be added soon.
* xml.py: Adds XML database handler moduleDevan Franchini2015-07-093-0/+199
|
* external.py: Adds db_type to list of test config keysDevan Franchini2015-07-091-1/+1
|
* layman.cfg, config.py: Adds db_type option to configurationDevan Franchini2015-07-091-0/+1
|
* cli.py: Removes docstring test and provides docstring descriptionDevan Franchini2015-06-151-2/+1
|
* external.py: Adds AddDeleteDB testDevan Franchini2015-06-152-99/+91
| | | | db.py: Removes docstring tests in favor of external test suite.
* external.py: Renames test function to more appropriate nameDevan Franchini2015-06-151-1/+1
| | | | | | Renames AddDeleteEnableDisableFromDB to AddDeleteEnableDisableFromConf as the test is mainly testing the functionality of the conf files, not the database classes.
* dbbase.py: Code cleanupDevan Franchini2015-06-141-43/+56
| | | | | | | | Cleans up things including: * docstring formatting, and file name in docstring * line spacing and formatting to coincide throughout the file * error message output * etc
* flocker.py: Adds file mode checking for get_file()Devan Franchini2015-06-131-1/+2
| | | | | Ensures that the file being returned by get_file() is opened with the correct mode.
* flocker.py: Removes assert for more verbose exceptionDevan Franchini2015-06-121-1/+2
|
* flocker.py: Adds check to ensure get_file isn't passing a closed io objectDevan Franchini2015-06-121-1/+1
|
* api.py: Properly closes fatal error message brackets on line 470Devan Franchini2015-05-131-1/+1
|
* api.py: Cleans up error message structureDevan Franchini2015-05-131-16/+17
|
* flocker.py: Adds exception raising to relay errors properlyDevan Franchini2015-05-131-2/+17
|
* dbbase.py: Reorganizes importsDevan Franchini2015-05-131-1/+3
|
* flocker.py: Adds file locking utility classDevan Franchini2015-05-131-0/+66
|
* api.py: Adds prompt for user to re-add overlay after unsuccessful URL updateDevan Franchini2015-04-221-3/+6
| | | | | X-Gentoo-Bug: 547388 X-Gentoo-Bug-URL: https://bugs.gentoo.org/547388
* updater.py: Corrects "Package" misspellingDevan Franchini2015-04-201-1/+1
| | | | | X-Gentoo-Bug: 546032 X-Gentoo-Bug-URL: https://bugs.gentoo.org/546032
* reposconf.py: Adds proper disabling of overlays when option is "ALL"Devan Franchini2015-04-201-3/+5
| | | | | X-Gentoo-Bug: 546852 X-Gentoo-Bug-URL: https://bugs.gentoo.org/546852
* version.py: Bumps versionDevan Franchini2015-03-271-1/+1
|
* external.py: Attempts to set default string encoding to utf-8Devan Franchini2015-03-271-0/+6
| | | | | X-Gentoo-Bug: 539416 X-Gentoo-Bug-URL: https://bugs.gentoo.org/539416
* external.py: Adds __future__ import for unicode_literalsDevan Franchini2015-03-271-0/+1
|
* external.py: Adds protocol_filter to keys to test for CLIArgs testDevan Franchini2015-03-271-8/+7
|
* Renames protocol_order to protocol_filterDevan Franchini2015-03-263-24/+22
| | | | | | | | | The config/cli flag name "protocol_order" has been changed to "protocol_filter" in an attempt to provide a more suitable name for users. The description of the option has been altered as well to provide a more fitting elaboration on what the option actually does. overlay.py: Calls filter_protocols from self to prevent run-time errors.
* overlay.py: Closes off interpolation tuple for error message in update()Devan Franchini2015-03-261-1/+1
|
* overlay.py: Modifies the implementation of filter_protocolsDevan Franchini2015-03-261-10/+19
| | | | | | | | | This modification allows for layman to only filter protocols when running Overlay.add() and Overlay.update(), preventing redundant code and checks along the way. X-Gentoo-Bug: 542342 X-Gentoo-Bug-URL: https://bugs.gentoo.org/542342
* argsparser.py: Adds proper splitting of protocol_order config optionDevan Franchini2015-03-261-0/+2
|
* argsparser.py: Fixes default override of protocol_order config optionDevan Franchini2015-03-261-1/+11
|
* overlay.py: Adds overlay source protocol filteringDevan Franchini2015-03-261-2/+33
|
* reposconf.py: Adds check to prevent conf_path false negativeDevan Franchini2015-03-241-1/+2
| | | | | | | | | | | | In the check_conf_path() function if the file did not previously exist and you tried to write to the repos.conf file specified by repos_conf it would generate a false negative declaring that repos_conf is a directory when it should be a file. This is clearly not the case and remedied by calling os.access () in conjunction with os.path.isfile () prior to declaring that the target is a directory. X-Gentoo-Bug: 538324 X-Gentoo-Bug-URL: https://bugs.gentoo.org/538324
* reposconf.py: Adds sanity checking on self.pathDevan Franchini2015-03-241-1/+16
| | | | | | | | A function has been created to properly relay any issues with the sanity of a specified repos_conf path. X-Gentoo-Bug: 538324 X-Gentoo-Bug-URL: https://bugs.gentoo.org/538324
* updater.py: Removes unnecessary else in create_repos_conf()Devan Franchini2015-03-241-3/+0
| | | | An else statement which results in a false negative is being removed.
* updater.py: Adds check to ensure repos_conf is not a directoryDevan Franchini2015-03-241-1/+12
|