summaryrefslogtreecommitdiffstats
path: root/config-db/OpenSLX/MetaDB
Commit message (Collapse)AuthorAgeFilesLines
* * Switched indent used in Perl-code and settings files from tabs to 4 spaces.Oliver Tappe2008-03-204-1185/+1185
| | | | | | May need some manual corrections here and there, but should basically be ok. git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1658 95ad53e4-c205-0410-b2fa-d234c58c8868
* * removed debug outputOliver Tappe2008-03-171-2/+7
| | | | | | | | * fixed problem with respect to writing system attributes: do not filter unset attributes for the default-system, as we want that to show all existing attributes git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1649 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added support for stage1 attributes that are stored along each plugin ↵Oliver Tappe2008-03-141-9/+65
| | | | | | | | | installed into a vendor-OS. * an update of the slxos-plugin documentation is still missing (coming soon ;-) git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1633 95ad53e4-c205-0410-b2fa-d234c58c8868
* * correct implementation bug that caused last schema change to work only ↵Oliver Tappe2008-02-171-3/+3
| | | | | | | | | half-way: now we can install the default plugins into the default vendor-OS - leading to db schema version 0.28 git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1557 95ad53e4-c205-0410-b2fa-d234c58c8868
* * dropped attribute ramfs_screen as it is no longer needed (splashy doesOliver Tappe2008-02-091-0/+10
| | | | | | | | | | not need to be given the screen-size) - updating schema version to 0.25 * little code simplification in DBSchema.pm * removed ramfs_screen from all tests * added method removeAttributeByName() to MetaDB in order to be able to remove attributes from the DB in a simple manner git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1528 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added TODO about lacking performance of set...Attrs()Oliver Tappe2008-01-111-0/+3
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1465 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added new DB-table 'installed_plugin', moving schema version to 0.21Oliver Tappe2008-01-081-0/+47
| | | | | | | | * added functionality to DB-layer for adding, removing and fetching plugins that have been installed into a vendor-OS. * added a set of tests related to installed plugins. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1447 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed several smaller bugs found when testing slxexportOliver Tappe2008-01-071-16/+22
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1446 95ad53e4-c205-0410-b2fa-d234c58c8868
* * finished refactoring of attribute handling code, especially theOliver Tappe2008-01-071-320/+61Star
| | | | | | | | | | | | | merging of attributes, such that all tests are passed * tested and finished implementation of group support in slxconfig * added new class AttributeRoster which keeps track of the known attributes (the ones provided by the openslx core and any other ones that may have been added by some plugin). * added new option --list-attributes to slxconfig which shows information about all known attributes git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1444 95ad53e4-c205-0410-b2fa-d234c58c8868
* more refactoring (not limited to attribute handling)Oliver Tappe2008-01-041-64/+479
| | | | | | | | | * completed separation of attributes and standard (column) values * improved tests a lot That work is still not finished, so expect things to fail horribly. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1443 95ad53e4-c205-0410-b2fa-d234c58c8868
* more work at refactoring of the way attributes are handled:Oliver Tappe2008-01-041-36/+79
| | | | | | | | | | * finished and integrated support for declaring known attributes from within plugins (they need to install a AttrInfo module) * implemented support for checking which attributes are applicable to systems and clients respectively * adjusted slxconfig to new attribute handling (systems only at the moment) git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1442 95ad53e4-c205-0410-b2fa-d234c58c8868
* * intermediate checkin of refactoring of the way attributes are stored in DBOliver Tappe2008-01-032-38/+99
| | | | | | | and passed in and out via the DB-layer N.B.: this may break things, will be fixed later today git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1440 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added more tests for basic DB-features: group, global_info and Oliver Tappe2007-12-271-19/+32
| | | | | | | client_system_ref git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1435 95ad53e4-c205-0410-b2fa-d234c58c8868
* * completed regression tests for vendor-OSesOliver Tappe2007-12-161-7/+12
| | | | | | | | | * added regression tests for exports, systems and clients * fixed several bugs found by these tests * cosmetical cleanups in ConfigDB.pm git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1431 95ad53e4-c205-0410-b2fa-d234c58c8868
* * started to work on configDB-testsOliver Tappe2007-11-092-12/+40
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1407 95ad53e4-c205-0410-b2fa-d234c58c8868
* * now makes use of readPassword() from Utils.pmOliver Tappe2007-09-231-5/+2Star
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1343 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added POD to ConfigDB, and did some fixes along the wayOliver Tappe2007-08-021-3/+3
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1306 95ad53e4-c205-0410-b2fa-d234c58c8868
* * dropped support for CSV databases, as they are simply not good enoughOliver Tappe2007-07-312-185/+15Star
| | | | | | | | | | | | * added support for db-user and db-passwd: + the mysql backend will now ask for the password upon connect + you can specify the db-user and db-passwd via slxsettings (so you never have to enter it manually afterwards) * slxsettings now checks db-type against an explicit pattern to avoid problems caused by typos git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1295 95ad53e4-c205-0410-b2fa-d234c58c8868
* * base work towards utf8-cleanness (it is now possible to handle vendor-OSesOliver Tappe2007-07-212-8/+8
| | | | | | | | | whose name contain UTF8-characters * fixed problem with locale-specific number format being used during DB- creation (fixes the problem that database access would only work once for de_DE-locales [reported by Detlef Schulz]) git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1266 95ad53e4-c205-0410-b2fa-d234c58c8868
* * replaces most occurrences of confess() with croak(), as that is less noisy.Oliver Tappe2007-07-184-30/+31
| | | | | | | Confess()-ing can still be triggered by specifying --debug-confess on the commandline. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1249 95ad53e4-c205-0410-b2fa-d234c58c8868
* * more work towards perlcritic compliance, fixed the low-hanging fruit Oliver Tappe2007-07-105-5/+29
| | | | | | for level 4 git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1234 95ad53e4-c205-0410-b2fa-d234c58c8868
* * activated 'use warnings' to all modules and adjusted all occurences ofOliver Tappe2007-07-015-32/+16Star
| | | | | | | 'use of uninitialized values', a couple of which might still show up * adjusted all code with respect to passing perlcritic level 4 and 5 git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1207 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed showstopping bugs introduced with rev 1176, sorry!Oliver Tappe2007-06-204-386/+375Star
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1177 95ad53e4-c205-0410-b2fa-d234c58c8868
* * split export type into filesystem and (optional) blockdevice, closingOliver Tappe2007-06-205-36/+36
| | | | | | | ticket#139 * code-reformatting with perltidy git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1176 95ad53e4-c205-0410-b2fa-d234c58c8868
* largish change with respect to configurable paths:Oliver Tappe2007-06-174-27/+12Star
| | | | | | | | | | | | | | | | | | | | * instead of supporting configurable paths at different hierarchy levels, there are now only five configurable folder: + base-path (/opt/openslx), fixed at installation time + config-path (/etc/opt/openslx), fixed at installation time + private-path (/var/opt/openslx), freely configurable by user + public-path (/srv/openslx), freely configurable by user + temp-path (/tmp), freely configurable by user this closes ticket#143 * several holes have been plugged concerning the creation of folders before they are accessed, closing ticket#142 * the functionality of generating config default folders has been moved from the Makefile into a new Perl-module (ConfigFolder.pm), in order to be available to the Perl-scripts, too * slxsettings has been changed to reflect the nature of base-path and config-path as fixed paths git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1172 95ad53e4-c205-0410-b2fa-d234c58c8868
* * simplified declaration of base classes via 'use base'Oliver Tappe2007-05-135-28/+12Star
| | | | | | | * simplified checking for correct API-version of modules git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1072 95ad53e4-c205-0410-b2fa-d234c58c8868
* * cleanup in DB-modulesOliver Tappe2007-05-115-23/+16Star
| | | | | | * DBD::CSV is now required to be 0.22 or higher (to circumvent problems on SuSE-9.3) git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1046 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added new table global_info to DB-schema, in order to support nbd-server-portsOliver Tappe2007-05-062-10/+87
| | | | | | | | * added transaction support to config-DB * added support for incrementing global counters (which live in global_info) git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1011 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed some holes in param check, could lead to crashesOliver Tappe2007-05-051-5/+5
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@998 95ad53e4-c205-0410-b2fa-d234c58c8868
* overhaul the settings concept:Oliver Tappe2007-05-022-57/+0Star
| | | | | | | | | | * now all settings live in the settings file, no more settings table in the DB * clearified slxsettings and its options * removed all references to db table 'settings' * added some new extended settings git-svn-id: http://svn.openslx.org/svn/openslx/trunk@988 95ad53e4-c205-0410-b2fa-d234c58c8868
* * cleanupOliver Tappe2007-04-232-2/+1Star
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@918 95ad53e4-c205-0410-b2fa-d234c58c8868
* * improved error message in case a database module couldOliver Tappe2007-04-133-3/+3
| | | | | | | not be loaded git-svn-id: http://svn.openslx.org/svn/openslx/trunk@886 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed incorrect module names in error message.Oliver Tappe2007-04-133-3/+3
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@885 95ad53e4-c205-0410-b2fa-d234c58c8868
* * circumvent problem with older versions of DBD::CSV not supporting the ↵Oliver Tappe2007-04-111-1/+9
| | | | | | | | | max()-function (this caused problems on SUSE-9.3). git-svn-id: http://svn.openslx.org/svn/openslx/trunk@874 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed a bad bug in _updateRefTable that would delete many more items than ↵Oliver Tappe2007-03-261-1/+6
| | | | | | should have been git-svn-id: http://svn.openslx.org/svn/openslx/trunk@823 95ad53e4-c205-0410-b2fa-d234c58c8868
* * inserted correct copyright headerOliver Tappe2007-03-235-15/+50
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@813 95ad53e4-c205-0410-b2fa-d234c58c8868
* * largish overhaul, changed ConfigDB to be object-oriented (could be ↵Oliver Tappe2007-03-155-200/+198Star
| | | | | | | | | | | improved, though!) * slxos-setup, slxos-export, slxconfig and slxconfig-demuxer can now be run one after the other in order to get a complete setup * still problems when trying to boot that system here, need to investigate... git-svn-id: http://svn.openslx.org/svn/openslx/trunk@774 95ad53e4-c205-0410-b2fa-d234c58c8868
* * some work towards completing the API documentation (POD)Oliver Tappe2006-12-111-0/+478
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@530 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed several missing return statementsOliver Tappe2006-12-111-5/+7
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@529 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed linebreak problem, now we use '\x0a' only, in orderOliver Tappe2006-10-291-1/+1
| | | | | | | to be compatible with oocalc. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@496 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added support for new table 'settings', which containsOliver Tappe2006-10-292-0/+22
| | | | | | | the system-wide settings. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@489 95ad53e4-c205-0410-b2fa-d234c58c8868
* * we now check if we could create the database folder and Oliver Tappe2006-10-281-1/+5
| | | | | | | | bail in case we didn't succees, such that we no longer create db-files in the current directory in case of an error. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@478 95ad53e4-c205-0410-b2fa-d234c58c8868
* * renamed several scripts to our new convention: no .pl forOliver Tappe2006-10-281-197/+530
| | | | | | | user-executable stuff... git-svn-id: http://svn.openslx.org/svn/openslx/trunk@475 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed format of error-message.Oliver Tappe2006-10-063-6/+6
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@451 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added explicit check for required DBD-module in order to give a precise ↵Oliver Tappe2006-10-063-7/+16
| | | | | | | | | error-message if the respective db-module is not installed. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@443 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added OpenSLX-header to all my files.Oliver Tappe2006-10-035-21/+54
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@434 95ad53e4-c205-0410-b2fa-d234c58c8868
* * minor cleanupOliver Tappe2006-09-292-5/+3Star
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@407 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed problem with 'db-name' not being honoured at all, this fixesOliver Tappe2006-09-291-1/+2
| | | | | | | | the problem of test-config-demuxer.pl not being able to generate a database of its own (which does not harm the "production" db). git-svn-id: http://svn.openslx.org/svn/openslx/trunk@405 95ad53e4-c205-0410-b2fa-d234c58c8868
* * removed unfinished XML-implementation as I encounter several problems withOliver Tappe2006-09-291-186/+0Star
| | | | | | | | DBD::AnyData and we do not need XML anyway, as we are going to rely on CSV as editable base format and SQLite as a fast and simple binary format. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@398 95ad53e4-c205-0410-b2fa-d234c58c8868
* * some work on the testing script, fixed several errors on the wayOliver Tappe2006-09-261-2/+2
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@393 95ad53e4-c205-0410-b2fa-d234c58c8868