Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | utils.py: Gives create_overlay_dict a well needed updating | Devan Franchini | 2015-08-27 | 1 | -5/+4 | |
| | | | | | | As this function exists with the API consumer in mind the function was well overdue for getting it the result keys updated to reflect all the ongoing changes in layman's API. | |||||
* | Adds multiple owner support to layman overlays | Devan Franchini | 2015-08-27 | 2 | -96/+137 | |
| | ||||||
* | overlay.py: Improves to_json() setting of descriptions | Devan Franchini | 2015-08-27 | 1 | -3/+1 | |
| | ||||||
* | Adds remove parameter to database write() function | Devan Franchini | 2015-08-15 | 5 | -9/+12 | |
| | | | | | | | | | This parameter has been added in order to obtain proper parallelization support for layman sqlite databases. With this additional parameter it prompts the sqlite db module's write function to simply return when removing an overlay, preventing it from re-adding any database entires and causing oddness, run-time errors, or other unwanted badness. | |||||
* | sqlite_db.py: Modifies owner information gathering method | Devan Franchini | 2015-08-13 | 1 | -14/+9 | |
| | | | | | | Due to the fact that including the owner name isn't necessary layman needed to modify the way it gathered owner information to prevent run-time errors. | |||||
* | sqlite_db.py: read_db() connects to database with "with" command | Devan Franchini | 2015-08-05 | 1 | -53/+54 | |
| | ||||||
* | Adds remove function for overlay removal from databases | Devan Franchini | 2015-08-05 | 8 | -12/+53 | |
| | | | | | | sqlite_db.py: Also changes the way in which feeds are gathered in read_db(), this shows the nature of feeds being an unrequired attribute of the overlay. | |||||
* | update.py: Adds functionality to ensure proper sqlite migration | Devan Franchini | 2015-08-03 | 1 | -1/+4 | |
| | ||||||
* | setup.py: Fixes sqlite_db module name | Devan Franchini | 2015-08-03 | 1 | -1/+1 | |
| | ||||||
* | Adds SQLite databasing module support | Devan Franchini | 2015-08-03 | 4 | -3/+359 | |
| | | | | | | constants.py: Adds sqlite to list of supported database modules. setup.py: Adds db_modules.sqlite_db.sqlite_db to list of installable modules. | |||||
* | overlay.py: Reorganizes imports and cleans up init params | Devan Franchini | 2015-08-03 | 1 | -3/+5 | |
| | ||||||
* | overlay.py: Adds optional license attribute to overlay object | Devan Franchini | 2015-07-21 | 1 | -0/+19 | |
| | ||||||
* | external.py: Adds json DB testing | Devan Franchini | 2015-07-20 | 3 | -1/+73 | |
| | | | | updater.py: Adds proper line spacing for database migration output | |||||
* | updater.py: Modifies the db_type setting method | Devan Franchini | 2015-07-18 | 1 | -11/+25 | |
| | | | | | | | | | In order to preserve the config file set up of the layman config file the set_db_type() function has been modified to not use configparser as it doesn't preserve comments. Changes have also been made in case the database file ends with the old extension, so the backup name will end in ".bak" as opposed to the database's file type. | |||||
* | updater.py: Adds database migration tool | Devan Franchini | 2015-07-17 | 1 | -1/+104 | |
| | ||||||
* | updater.py: Cleans up imports | Devan Franchini | 2015-07-17 | 1 | -5/+4 | |
| | ||||||
* | Removes unnecessary "_db" appendage to db_type var | Devan Franchini | 2015-07-17 | 5 | -17/+17 | |
| | | | | | | | To avoid namespace collisions in py2.7 the database modules needed to have "_db" appended to their name. In order to avoid having this ugliness in the user's config file and elsewhere in layman's code the DbBase class simply adds the "_db" portion of the name itself. | |||||
* | constants.py: Adds constant DB_TYPES for supported db checking | Devan Franchini | 2015-07-17 | 1 | -10/+17 | |
| | ||||||
* | version.py: Changes version to 2.4.0-git | Devan Franchini | 2015-07-15 | 1 | -1/+1 | |
| | | | | | As the next release will include some noticeable changes an increment of the second version number in layman was necessary. | |||||
* | dbbase.py: Optimizes if check for db_type | Devan Franchini | 2015-07-15 | 1 | -4/+9 | |
| | ||||||
* | overlay.py: Adds better error handling for missing "source" entries | Devan Franchini | 2015-07-14 | 1 | -4/+10 | |
| | ||||||
* | setup.py: Adds db_modules packages to list of install packages | Devan Franchini | 2015-07-14 | 1 | -1/+3 | |
| | ||||||
* | external.py: Modifies ovl_dict keys to conform to new changes | Devan Franchini | 2015-07-14 | 1 | -2/+2 | |
| | ||||||
* | external.py: Adds db_type config option to tests which need it | Devan Franchini | 2015-07-14 | 1 | -4/+6 | |
| | | | | | | The Overlay, DbBase, and DB would require the db_type config option to be set. To prevent it from falling back on config option defaults it's best to specify it. | |||||
* | layman.cfg: Changes description of db_type to warn user of limitation | Devan Franchini | 2015-07-13 | 1 | -2/+2 | |
| | ||||||
* | 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 | |
| | ||||||
* | layman.cfg: Adds json_db config option example to config | Devan Franchini | 2015-07-13 | 1 | -1/+1 | |
| | ||||||
* | 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 | 5 | -11/+11 | |
| | | | | 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 | 2 | -1/+10 | |
| | ||||||
* | 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. |