aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* utils.py: Gives create_overlay_dict a well needed updatingDevan Franchini2015-08-271-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 overlaysDevan Franchini2015-08-272-96/+137
|
* overlay.py: Improves to_json() setting of descriptionsDevan Franchini2015-08-271-3/+1
|
* Adds remove parameter to database write() functionDevan Franchini2015-08-155-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 methodDevan Franchini2015-08-131-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" commandDevan Franchini2015-08-051-53/+54
|
* Adds remove function for overlay removal from databasesDevan Franchini2015-08-058-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 migrationDevan Franchini2015-08-031-1/+4
|
* setup.py: Fixes sqlite_db module nameDevan Franchini2015-08-031-1/+1
|
* Adds SQLite databasing module supportDevan Franchini2015-08-034-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 paramsDevan Franchini2015-08-031-3/+5
|
* overlay.py: Adds optional license attribute to overlay objectDevan Franchini2015-07-211-0/+19
|
* external.py: Adds json DB testingDevan Franchini2015-07-203-1/+73
| | | | updater.py: Adds proper line spacing for database migration output
* updater.py: Modifies the db_type setting methodDevan Franchini2015-07-181-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 toolDevan Franchini2015-07-171-1/+104
|
* updater.py: Cleans up importsDevan Franchini2015-07-171-5/+4
|
* Removes unnecessary "_db" appendage to db_type varDevan Franchini2015-07-175-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 checkingDevan Franchini2015-07-171-10/+17
|
* version.py: Changes version to 2.4.0-gitDevan Franchini2015-07-151-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_typeDevan Franchini2015-07-151-4/+9
|
* overlay.py: Adds better error handling for missing "source" entriesDevan Franchini2015-07-141-4/+10
|
* setup.py: Adds db_modules packages to list of install packagesDevan Franchini2015-07-141-1/+3
|
* external.py: Modifies ovl_dict keys to conform to new changesDevan Franchini2015-07-141-2/+2
|
* external.py: Adds db_type config option to tests which need itDevan Franchini2015-07-141-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 limitationDevan Franchini2015-07-131-2/+2
|
* 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
|
* layman.cfg: Adds json_db config option example to configDevan Franchini2015-07-131-1/+1
|
* 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-105-11/+11
| | | | 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-092-1/+10
|
* 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.