Skip to contentSkip to conversation

conga/luci/site/luci/Extensions Vm.py cluster_ ...

Cluster-devel [email protected] 1 participant 1 message Jan 22, 2007

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: conga
Changes by: rmccabe at sourceware.org 2007-01-22 17:06:49

Modified files:
luci/site/luci/Extensions: Vm.py cluster_adapters.py

Log message:
vm resources need special handling. to fix later.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/Vm.py.diff?cvsroot=cluster&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/cluster_adapters.py.diff?cvsroot=cluster&r1=1.208&r2=1.209

luci/site/luci/Extensions/Vm.py +8 -9
@@ -1,16 +1,15 @@
 import string
 from TagObject import TagObject
-from BaseResource import BaseResource
-
-import gettext
-_ = gettext.gettext
 
 TAG_NAME = "vm"
-RESOURCE_TYPE = _("Virtual Machine")
 
-class Vm(BaseResource):
+class Vm(TagObject):
   def __init__(self):
-    BaseResource.__init__(self)
+    TagObject.__init__(self)
     self.TAG_NAME = TAG_NAME
-    self.resource_type = RESOURCE_TYPE
-    self.addAttribute('autostart', '1')
+    #Have autostart set by default
+    self.addAttribute("autostart","1")
+
+  def getProperties(self):
+    stringbuf = ""
+    return stringbuf
luci/site/luci/Extensions/cluster_adapters.py +0 -155

167 lines not on this page · raw message