summaryrefslogtreecommitdiffstats
path: root/cobbler/api.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2006-05-05 17:48:01 -0400
committerJim Meyering <jim@meyering.net>2006-05-05 17:48:01 -0400
commit8e434ed6574a5b391d9b57f3cbb10f73e62a403c (patch)
tree0ccf20785615db6ae452a674959451a77af8eebc /cobbler/api.py
parent297525dcb3c500d086bb4a5006a5839d98f8522b (diff)
downloadthird_party-cobbler-8e434ed6574a5b391d9b57f3cbb10f73e62a403c.tar.gz
third_party-cobbler-8e434ed6574a5b391d9b57f3cbb10f73e62a403c.tar.xz
third_party-cobbler-8e434ed6574a5b391d9b57f3cbb10f73e62a403c.zip
Interim commit
Diffstat (limited to 'cobbler/api.py')
-rw-r--r--cobbler/api.py16
1 files changed, 9 insertions, 7 deletions
diff --git a/cobbler/api.py b/cobbler/api.py
index d93bf54..4d93da2 100644
--- a/cobbler/api.py
+++ b/cobbler/api.py
@@ -10,14 +10,14 @@ import os
import traceback
import config
-import util
+import utils
import sync
import check
-from msg import *
+
+_config = config.Config()
class BootAPI:
- _config = config.Config()
def __init__(self):
"""
@@ -61,22 +61,21 @@ class BootAPI:
"""
Return a blank, unconfigured system, unattached to a collection
"""
- return system.System(self,None)
+ return _config.new_system()
def new_distro(self):
"""
Create a blank, unconfigured distro, unattached to a collection.
"""
- return distro.Distro(self,None)
+ return _config.new_distro()
def new_profile(self):
"""
Create a blank, unconfigured profile, unattached to a collection
"""
- return profile.Profile(self,None)
-
+ return _config.new_profile()
def check(self):
"""
@@ -113,3 +112,6 @@ class BootAPI:
"""
_config.deserialize()
+ def last_error(self):
+ return utils.last_error()
+