diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2006-05-05 15:41:27 -0400 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2006-05-05 15:41:27 -0400 |
commit | 036eb874ffbaf70236427ebe7c10fb883706e291 (patch) | |
tree | cd01d8978c977f5283eb72d4fdc0fe5ad05d2026 /cobbler/systems.py | |
parent | 09da6bb67e890de6dc5ba2716c79b0446f861b55 (diff) | |
download | third_party-cobbler-036eb874ffbaf70236427ebe7c10fb883706e291.tar.gz third_party-cobbler-036eb874ffbaf70236427ebe7c10fb883706e291.tar.xz third_party-cobbler-036eb874ffbaf70236427ebe7c10fb883706e291.zip |
Interim commit while refactoring. This breaks lots of stuff.
Diffstat (limited to 'cobbler/systems.py')
-rw-r--r-- | cobbler/systems.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/cobbler/systems.py b/cobbler/systems.py new file mode 100644 index 0000000..47dc042 --- /dev/null +++ b/cobbler/systems.py @@ -0,0 +1,22 @@ +import system +import runtime + +#-------------------------------------------- + +""" +Systems are hostnames/MACs/IP names and the associated profile +they belong to. +""" +class Systems(Collection): + _item_factory = system.System + + def remove(self,name): + """ + Remove element named 'name' from the collection + """ + if self.find(name): + del self.listing[name] + return True + runtime.set_error("delete_nothing") + return False + |