summaryrefslogtreecommitdiffstats
path: root/cobbler/config.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2006-05-05 12:08:23 -0400
committerJim Meyering <jim@meyering.net>2006-05-05 12:08:23 -0400
commit09da6bb67e890de6dc5ba2716c79b0446f861b55 (patch)
treeffe52a708e4b8c6fe8263790790c3a615b9a2274 /cobbler/config.py
parent82b03d49c9d5591f9d2f83bc5022703a21bda18a (diff)
downloadthird_party-cobbler-09da6bb67e890de6dc5ba2716c79b0446f861b55.tar.gz
third_party-cobbler-09da6bb67e890de6dc5ba2716c79b0446f861b55.tar.xz
third_party-cobbler-09da6bb67e890de6dc5ba2716c79b0446f861b55.zip
Weakref additions prior to refactoring
Diffstat (limited to 'cobbler/config.py')
-rw-r--r--cobbler/config.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/cobbler/config.py b/cobbler/config.py
index 197da91..ac08ca5 100644
--- a/cobbler/config.py
+++ b/cobbler/config.py
@@ -6,6 +6,7 @@
import api
import util
from msg import *
+import weakref
import syck # pysyck > 0.61, so it has dump()
import os
@@ -25,7 +26,7 @@ class BootConfig:
users of this class need to call deserialize() to load config
file values. See cobbler.py for how the CLI does it.
"""
- self.api = api
+ self.api = weakref.proxy(api)
self.settings_file = global_settings_file
self.state_file = global_state_file
self.set_defaults()