summaryrefslogtreecommitdiffstats
path: root/cobbler/api.py
Commit message (Collapse)AuthorAgeFilesLines
* Added licensing and RH copyright. Pychecker (once again). Fixed one unit ↵Michael DeHaan2006-05-111-2/+10
| | | | test where I changed a command line syntax.
* Simplified the command line, made a better 'list' function, some string and ↵Michael DeHaan2006-05-091-3/+11
| | | | | | exception cleanup.
* Adding exception handling to remove the problem of propogating error codes ↵Michael DeHaan2006-05-081-20/+33
| | | | 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-6/+0
| | | | | | | 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.
* More pychecker. More comments.Michael DeHaan2006-05-081-30/+11
|
* PyChecker.Michael DeHaan2006-05-081-4/+0
|
* Unit tests pass again.Michael DeHaan2006-05-081-19/+18
|
* Interim commit during refactoring. Pretty broken as a result of some ↵Michael DeHaan2006-05-051-6/+30
| | | | 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-7/+9
|
* Interim refactoring commitMichael DeHaan2006-05-051-31/+18
|
* Interim commit while refactoring. This breaks lots of stuff.Michael DeHaan2006-05-051-527/+21
|
* Make /etc/cobbler.conf be packaged instead of being created, proper handling ↵Michael DeHaan2006-05-051-3/+9
| | | | of parse errors on config files, tweaking unit tests tempfile stuff since sync() test is currently broken by the tempfile changes (why??)
* Fixing regression in common constructorMihai Ibanescu2006-05-041-1/+1
| | | | When transcribing the constructors, moved one bracket too far to the right.
* Moving code aroundMihai Ibanescu2006-05-041-158/+158
| | | | Just to define Collections after Items.
* Reducing duplication in the constructorsMihai Ibanescu2006-05-041-27/+15
| | | | | | | | | | We define a top-level constructor in the base class and define an _item_factory that is the class to be instantiated for each item. The code as it is checked in now is broken because we reference the class before we define it in the global scope; but wanted the checkins to be separate, the next one will move all the Collection-related stuff after the Item-related stuff (but the diff would have been difficult to read)
* Merged Michael's changes with mineMihai Ibanescu2006-05-041-41/+40
|
* Misc cobbler cleanup. Switched to the new yaml parser (it's uglier,Michael DeHaan2006-05-031-41/+48
| | | | | need to do something about that). Added some tests. Modified test code so it never clobbers a working install.
* Interim commit during packagingMichael DeHaan2006-05-031-0/+634