Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | dbbase.py: Adds limitation to use only one db type | Devan Franchini | 2015-07-13 | 1 | -19/+29 |
| | |||||
* | overlay.py: Renames overlay variable to json to match parameter | Devan Franchini | 2015-07-13 | 1 | -28/+28 |
| | |||||
* | overlay.py: Fixes any other mistakes made in haste | Devan Franchini | 2015-07-13 | 1 | -2/+5 |
| | |||||
* | overlay.py: Corrects else on line 316 | Devan Franchini | 2015-07-13 | 1 | -1/+1 |
| | |||||
* | overlay.py: Modifies error message for missing "name" entry | Devan Franchini | 2015-07-13 | 1 | -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 descriptions | Devan Franchini | 2015-07-13 | 1 | -2/+2 |
| | |||||
* | xml_db/__init__.py: Modifies function descriptions | Devan Franchini | 2015-07-13 | 1 | -3/+3 |
| | |||||
* | json_db.py: Adds JSON databasing support to layman | Devan Franchini | 2015-07-13 | 2 | -0/+144 |
| | |||||
* | overlay.py: Adds json support for overlay definitions | Devan Franchini | 2015-07-13 | 1 | -254/+402 |
| | | | | Also reorganizes functions alphabetically. | ||||
* | Code clean-up | Devan Franchini | 2015-07-13 | 3 | -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__ functions | Devan Franchini | 2015-07-13 | 1 | -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 provided | Devan Franchini | 2015-07-13 | 2 | -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 cleanup | Devan Franchini | 2015-07-10 | 1 | -43/+70 |
| | |||||
* | Renames db module "xml" to "xml_db" | Devan Franchini | 2015-07-10 | 4 | -10/+10 |
| | | | | This prevents namespace collisions with the required xml class. | ||||
* | api.py: Removes annoying lack of space in error message | Devan Franchini | 2015-07-09 | 1 | -1/+1 |
| | |||||
* | external.py: Adds db_type to configs for DbBase tests | Devan Franchini | 2015-07-09 | 1 | -4/+8 |
| | |||||
* | dbbase.py: Modifies read_db function to allow for passing a text parameter | Devan Franchini | 2015-07-09 | 3 | -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 system | Devan Franchini | 2015-07-09 | 1 | -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 module | Devan Franchini | 2015-07-09 | 3 | -0/+199 |
| | |||||
* | external.py: Adds db_type to list of test config keys | Devan Franchini | 2015-07-09 | 1 | -1/+1 |
| | |||||
* | layman.cfg, config.py: Adds db_type option to configuration | Devan Franchini | 2015-07-09 | 1 | -0/+1 |
| | |||||
* | cli.py: Removes docstring test and provides docstring description | Devan Franchini | 2015-06-15 | 1 | -2/+1 |
| | |||||
* | external.py: Adds AddDeleteDB test | Devan Franchini | 2015-06-15 | 2 | -99/+91 |
| | | | | db.py: Removes docstring tests in favor of external test suite. | ||||
* | external.py: Renames test function to more appropriate name | Devan Franchini | 2015-06-15 | 1 | -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 cleanup | Devan Franchini | 2015-06-14 | 1 | -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 Franchini | 2015-06-13 | 1 | -1/+2 |
| | | | | | Ensures that the file being returned by get_file() is opened with the correct mode. | ||||
* | flocker.py: Removes assert for more verbose exception | Devan Franchini | 2015-06-12 | 1 | -1/+2 |
| | |||||
* | flocker.py: Adds check to ensure get_file isn't passing a closed io object | Devan Franchini | 2015-06-12 | 1 | -1/+1 |
| | |||||
* | api.py: Properly closes fatal error message brackets on line 470 | Devan Franchini | 2015-05-13 | 1 | -1/+1 |
| | |||||
* | api.py: Cleans up error message structure | Devan Franchini | 2015-05-13 | 1 | -16/+17 |
| | |||||
* | flocker.py: Adds exception raising to relay errors properly | Devan Franchini | 2015-05-13 | 1 | -2/+17 |
| | |||||
* | dbbase.py: Reorganizes imports | Devan Franchini | 2015-05-13 | 1 | -1/+3 |
| | |||||
* | flocker.py: Adds file locking utility class | Devan Franchini | 2015-05-13 | 1 | -0/+66 |
| | |||||
* | api.py: Adds prompt for user to re-add overlay after unsuccessful URL update | Devan Franchini | 2015-04-22 | 1 | -3/+6 |
| | | | | | X-Gentoo-Bug: 547388 X-Gentoo-Bug-URL: https://bugs.gentoo.org/547388 | ||||
* | updater.py: Corrects "Package" misspelling | Devan Franchini | 2015-04-20 | 1 | -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 Franchini | 2015-04-20 | 1 | -3/+5 |
| | | | | | X-Gentoo-Bug: 546852 X-Gentoo-Bug-URL: https://bugs.gentoo.org/546852 | ||||
* | version.py: Bumps version | Devan Franchini | 2015-03-27 | 1 | -1/+1 |
| | |||||
* | external.py: Attempts to set default string encoding to utf-8 | Devan Franchini | 2015-03-27 | 1 | -0/+6 |
| | | | | | X-Gentoo-Bug: 539416 X-Gentoo-Bug-URL: https://bugs.gentoo.org/539416 | ||||
* | external.py: Adds __future__ import for unicode_literals | Devan Franchini | 2015-03-27 | 1 | -0/+1 |
| | |||||
* | external.py: Adds protocol_filter to keys to test for CLIArgs test | Devan Franchini | 2015-03-27 | 1 | -8/+7 |
| | |||||
* | Renames protocol_order to protocol_filter | Devan Franchini | 2015-03-26 | 3 | -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 Franchini | 2015-03-26 | 1 | -1/+1 |
| | |||||
* | overlay.py: Modifies the implementation of filter_protocols | Devan Franchini | 2015-03-26 | 1 | -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 option | Devan Franchini | 2015-03-26 | 1 | -0/+2 |
| | |||||
* | argsparser.py: Fixes default override of protocol_order config option | Devan Franchini | 2015-03-26 | 1 | -1/+11 |
| | |||||
* | overlay.py: Adds overlay source protocol filtering | Devan Franchini | 2015-03-26 | 1 | -2/+33 |
| | |||||
* | reposconf.py: Adds check to prevent conf_path false negative | Devan Franchini | 2015-03-24 | 1 | -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.path | Devan Franchini | 2015-03-24 | 1 | -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 Franchini | 2015-03-24 | 1 | -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 directory | Devan Franchini | 2015-03-24 | 1 | -1/+12 |
| |