summaryrefslogtreecommitdiffstats
path: root/cobbler/serializer.py
Commit message (Collapse)AuthorAgeFilesLines
* Two things -- (A) remove rhpl dep as we aren't using it and we want to useMichael DeHaan2008-04-091-1/+1
| | | | | more standard xlat for other distros potentially, (B) fix the kerb module some more.
* Performance tweaking and benchmarks.Michael DeHaan2007-12-121-7/+40
|
* Abstract out the modules system to allow for other types of modules, and to ↵Michael DeHaan2007-11-121-17/+16
| | | | also centralize configuration/loading/access some more.
* Various changes to allow for increased performance in the WebUI and in ↵Michael DeHaan2007-10-171-1/+5
| | | | | | saving state, plus a fix to import that keeps from creating extra yum repo entries for various distros.
* Work on an shelve-based external storage, for performance testing. SqliteMichael DeHaan2007-10-151-0/+22
| | | | is just as likely at this point.
* Remove some dead code and update a few FIXMEs that no longer apply.Michael DeHaan2007-10-101-4/+0
|
* Allow for serialization modules to be selected by changing ↵Michael DeHaan2007-09-061-1/+13
| | | | /etc/cobbler/modules.conf
* Further work on interchangeable backends. Rather than keeping the config fileroot2007-09-051-13/+4
| | | | | | | | | | | | | | format choice in settings (which is something of a Catch-22 situation), this may end up being a config file setting in /etc. Module loaders work and still default to yaml, though I've coded up a sample simple_json serializer that will be functional if users install simple-json. This is just demoware, JSON isn't replacing yaml and is (at least in this case) not as readable because of the way it escapes slashes. This is primarily to enable future work to integrate with other config file formats, such as possibly getting some of the system info from LDAP. Possibly.
* Working on pluggable serializers.root2007-09-051-61/+30
|
* Fix python 2.3 sortingMichael DeHaan2007-07-031-1/+1
|
* updating cobblerd to use API rather than YAML deserialization.Michael DeHaan2007-06-221-1/+1
| | | | (find is case agnostic, etc)
* Keep track of depth of cobbler objects such that a pseudo-topological sortMichael DeHaan2007-06-131-1/+15
| | | | | | | | | | | | | can be done at deserialization time. The result of this is that full graph listing information can be reconstructed at time of config loading (up and down links), while only having to store the up links. This preserves the existing config file format while allowing for arbitrary inheritance and a reasonable measure of hand-editability. If changing profile relationships by hand, the cached depth info may be wrong, so some way to automatically resolve this could potentially be doable, but it's such a distinct corner case that I don't deem it neccessary at this point.
* Lots of work towards profile inheritance. This works in the UI now, withMichael DeHaan2007-06-131-1/+0
| | | | | | | | | | | | | | | | | | | some rough edges (like listing the tree). cobbler profile add --name=profile2 --inherit=profile1 --otherparameters=... cobbler profile edit --name=profile2 --stillmoreparamters=... Data is interleaved for hashes, combined for arrays, and overriden for scalar values. This was heavily inspired by Will-It-Blend, and in this implementation it all blends. Implementation notes -- Updating a parent profile doesn't apply changes to the child objects until a sync, so this seems like a good upgrade for a future commit. Also, the children mapping that makes this possible needs some tweaks because they may load out of order, in which case "cobbler list" can't render a full tree. There are various approaches to deal with this and it should be a (relatively) easy change.
* Begining of i18n of cobbler. Tests pass, works with English. Need to testMichael DeHaan2007-05-291-7/+4
| | | | | | | translation function and run manual testing to ensure no functional errors in other places (such as import). cobbler_msg (strings file) has been removed.
* Starting to add i18n to cobbler using rhplMichael DeHaan2007-05-251-0/+2
|
* Various improvements to make the API more usable and cobbler a bitMichael DeHaan2007-04-191-0/+1
| | | | | | | | more efficient. Make both the Config and BootAPI objects Borgs, to prevent duplicate configuration records. Also do not implicitly serialize configuration objects unless the with_copy parameter is used.
* More pychecker.Michael DeHaan2006-10-161-1/+1
|
* Make cobbler use the Howell-Evans YAML parser now, so RHEL4 supportMichael DeHaan2006-06-281-7/+6
| | | | will be possible (Syck needs Python 2.4).
* Added licensing and RH copyright. Pychecker (once again). Fixed one unit ↵Michael DeHaan2006-05-111-2/+14
| | | | test where I changed a command line syntax.
* Adding exception handling to remove the problem of propogating error codes ↵Michael DeHaan2006-05-081-8/+9
| | | | all the way up the stack. Still not quite super-consistant, but getting there. Util functions still return true/false since they just ask questions, but API functions will throw errors to ensure they are being dealt with. Main CLI class needs to take advantage of this fact and become simpler. Tests are already modified to detect new exceptions with one exception :)
* Interim checkin while straightening out exceptions. The last_error bit ↵Michael DeHaan2006-05-081-21/+57
| | | | | | | reminded me of the thing I hated most about Microsoft SDK/DDK programming (that being, last_error and inconsistant error handling), so it had to go.
* PyChecker.Michael DeHaan2006-05-081-2/+0
|
* Interim commit during refactoring. Pretty broken as a result of some ↵Michael DeHaan2006-05-051-4/+4
| | | | cleanup but it will get straightened out very soon. The main thing I'm doing here is to remove backreferences from the object tree and make the API simpler, so that folks using the API screw up less. This means making the CLI code simpler as well. The serializer has also been overhauled so it's not as much bolted on, although I have some fixing to do to make it work entirely correctly. Wanted to check all of this in case someone decided to patch something else, making diffing really complex in the interim. I'd recommend not patching anything else to this code as I'm not close to done, really.
* Interim commitMichael DeHaan2006-05-051-3/+14
|
* Interim refactoring commitMichael DeHaan2006-05-051-0/+19