All of lore.kernel.org
 help / color / mirror / Atom feed
From: rmccabe@sourceware.org <rmccabe@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] conga/luci/site/luci/Extensions ModelBuilder.p ...
Date: 11 May 2007 02:36:45 -0000	[thread overview]
Message-ID: <20070511023645.12131.qmail@sourceware.org> (raw)

CVSROOT:	/cvs/cluster
Module name:	conga
Changes by:	rmccabe at sourceware.org	2007-05-11 02:36:44

Modified files:
	luci/site/luci/Extensions: ModelBuilder.py 
Added files:
	luci/site/luci/Extensions: SAPDatabase.py SAPInstance.py 

Log message:
	Add SAPDatabase and SAPInstance resource agent support to the cluster model.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/SAPDatabase.py.diff?cvsroot=cluster&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/SAPInstance.py.diff?cvsroot=cluster&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ModelBuilder.py.diff?cvsroot=cluster&r1=1.26&r2=1.27

/cvs/cluster/conga/luci/site/luci/Extensions/SAPDatabase.py,v  -->  standard output
revision 1.1
--- conga/luci/site/luci/Extensions/SAPDatabase.py
+++ -	2007-05-11 02:36:45.150800000 +0000
@@ -0,0 +1,13 @@
+from BaseResource import BaseResource
+
+import gettext
+_ = gettext.gettext
+
+TAG_NAME = "SAPDatabase"
+RESOURCE_TYPE = _("SAP Database")
+
+class SAPDatabase(BaseResource):
+  def __init__(self):
+    BaseResource.__init__(self)
+    self.TAG_NAME = TAG_NAME
+    self.resource_type = RESOURCE_TYPE
/cvs/cluster/conga/luci/site/luci/Extensions/SAPInstance.py,v  -->  standard output
revision 1.1
--- conga/luci/site/luci/Extensions/SAPInstance.py
+++ -	2007-05-11 02:36:45.277270000 +0000
@@ -0,0 +1,13 @@
+from BaseResource import BaseResource
+
+import gettext
+_ = gettext.gettext
+
+TAG_NAME = "SAPInstance"
+RESOURCE_TYPE = _("SAP Instance")
+
+class SAPInstance(BaseResource):
+  def __init__(self):
+    BaseResource.__init__(self)
+    self.TAG_NAME = TAG_NAME
+    self.resource_type = RESOURCE_TYPE
--- conga/luci/site/luci/Extensions/ModelBuilder.py	2007/03/15 22:08:42	1.26
+++ conga/luci/site/luci/Extensions/ModelBuilder.py	2007/05/11 02:36:44	1.27
@@ -1,12 +1,6 @@
-#!/usr/bin/python
-#import xml.dom.minidom
 from xml.dom import minidom, Node
 import string
 import os
-#import sys
-#directory = os.path.dirname(__file__)
-#from Cluster import Cluster
-#sys.path.append(directory)
 from TagObject import TagObject
 from Cluster import Cluster
 from ClusterNode import ClusterNode
@@ -32,6 +26,8 @@
 from OpenLDAP import OpenLDAP
 from Postgres8 import Postgres8
 from Tomcat5 import Tomcat5
+from SAPInstance import SAPInstance
+from SAPDatabase import SAPDatabase
 from Multicast import Multicast
 from FenceDaemon import FenceDaemon
 from FenceXVMd import FenceXVMd
@@ -79,6 +75,8 @@
            'openldap':OpenLDAP,
            'postgres-8':Postgres8,
            'tomcat-5':Tomcat5,
+           'SAPDatabase':SAPDatabase,
+           'SAPInstance':SAPInstance,
            'fence_daemon':FenceDaemon,
            'multicast':Multicast,
            'clusterfs':Clusterfs,
@@ -1169,12 +1167,3 @@
     self.object_tree.searchTree(objlist, tagtype)
 
     return objlist
- 
-   
-if __name__ == "__main__":
-  print "Starting main program"
-  mdl = ModelBuilder()
-  objs = mdl.buildModel(None)
-
-  mdl.exportModel("/tmp/tags.xml",objs)
- 



             reply	other threads:[~2007-05-11  2:36 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-11  2:36 rmccabe [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-05-11  2:38 [Cluster-devel] conga/luci/site/luci/Extensions ModelBuilder.p rmccabe
2007-05-11  2:38 rmccabe
2007-02-15 18:55 rmccabe
2007-01-23 14:05 rmccabe
2007-01-23 14:01 rmccabe
2007-01-10 21:48 kupcevic
2007-01-10 21:36 jparsons
2006-10-26 22:59 rmccabe
2006-10-24 15:05 jparsons
2006-10-24  1:42 jparsons
2006-10-06 21:08 rmccabe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070511023645.12131.qmail@sourceware.org \
    --to=rmccabe@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.