conga/luci/site/luci/Extensions/ClusterModel A ...
CVSROOT: /cvs/cluster
Module name: conga
Branch: EXPERIMENTAL
Changes by: rmccabe at sourceware.org 2007-05-15 18:58:56
Modified files:
luci/site/luci/Extensions/ClusterModel: Apache.py
BaseResource.py Cluster.py ClusterNode.py ClusterNodes.py Clusterfs.py Cman.py Device.py FailoverDomain.py FailoverDomainNode.py FailoverDomains.py Fence.py FenceDaemon.py FenceDevice.py FenceDevices.py FenceXVMd.py Fs.py GeneralError.py Gulm.py Heuristic.py Ip.py LVM.py Lockserver.py Method.py ModelBuilder.py Multicast.py MySQL.py NFSClient.py NFSExport.py Netfs.py OpenLDAP.py Postgres8.py QuorumD.py RefObject.py Resources.py Rm.py SAPDatabase.py SAPInstance.py Samba.py Script.py Service.py TagObject.py Tomcat5.py Totem.py Vm.py
Log message:
Small tidy-ups and insertion of copyright notices.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ClusterModel/Apache.py.diff?cvsroot=cluster&only_with_tag=EXPERIMENTAL&r1=1.1.2.1&r2=1.1.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ClusterModel/BaseResource.py.diff?cvsroot=cluster&only_with_tag=EXPERIMENTAL&r1=1.1.2.1&r2=1.1.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ClusterModel/Cluster.py.diff?cvsroot=cluster&only_with_tag=EXPERIMENTAL&r1=1.1.2.1&r2=1.1.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ClusterModel/ClusterNode.py.diff?cvsroot=cluster&only_with_tag=EXPERIMENTAL&r1=1.1.2.1&r2=1.1.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ClusterModel/ClusterNodes.py.diff?cvsroot=cluster&only_with_tag=EXPERIMENTAL&r1=1.1.2.1&r2=1.1.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ClusterModel/Clusterfs.py.diff?cvsroot=cluster&only_with_tag=EXPERIMENTAL&r1=1.1.2.1&r2=1.1.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ClusterModel/Cman.py.diff?cvsroot=cluster&only_with_tag=EXPERIMENTAL&r1=1.1.2.1&r2=1.1.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ClusterModel/Device.py.diff?cvsroot=cluster&only_with_tag=EXPERIMENTAL&r1=1.1.2.1&r2=1.1.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ClusterModel/FailoverDomain.py.diff?cvsroot=cluster&only_with_tag=EXPERIMENTAL&r1=1.1.2.1&r2=1.1.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ClusterModel/FailoverDomainNode.py.diff?cvsroot=cluster&only_with_tag=EXPERIMENTAL&r1=1.1.2.1&r2=1.1.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ClusterModel/FailoverDomains.py.diff?cvsroot=cluster&only_with_tag=EXPERIMENTAL&r1=1.1.2.1&r2=1.1.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ClusterModel/Fence.py.diff?cvsroot=cluster&only_with_tag=EXPERIMENTAL&r1=1.1.2.1&r2=1.1.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ClusterModel/FenceDaemon.py.diff?cvsroot=cluster&only_with_tag=EXPERIMENTAL&r1=1.1.2.1&r2=1.1.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ClusterModel/FenceDevice.py.diff?cvsroot=cluster&only_with_tag=EXPERIMENTAL&r1=1.1.2.1&r2=1.1.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ClusterModel/FenceDevices.py.diff?cvsroot=cluster&only_with_tag=EXPERIMENTAL&r1=1.1.2.1&r2=1.1.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ClusterModel/FenceXVMd.py.diff?cvsroot=cluster&only_with_tag=EXPERIMENTAL&r1=1.1.2.1&r2=1.1.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ClusterModel/Fs.py.diff?cvsroot=cluster&only_with_tag=EXPERIMENTAL&r1=1.1.2.1&r2=1.1.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ClusterModel/GeneralError.py.diff?cvsroot=cluster&only_with_tag=EXPERIMENTAL&r1=1.1.2.1&r2=1.1.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ClusterModel/Gulm.py.diff?cvsroot=cluster&only_with_tag=EXPERIMENTAL&r1=1.1.2.1&r2=1.1.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ClusterModel/Heuristic.py.diff?cvsroot=cluster&only_with_tag=EXPERIMENTAL&r1=1.1.2.1&r2=1.1.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ClusterModel/Ip.py.diff?cvsroot=cluster&only_with_tag=EXPERIMENTAL&r1=1.1.2.1&r2=1.1.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ClusterModel/LVM.py.diff?cvsroot=cluster&only_with_tag=EXPERIMENTAL&r1=1.1.2.1&r2=1.1.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ClusterModel/Lockserver.py.diff?cvsroot=cluster&only_with_tag=EXPERIMENTAL&r1=1.1.2.1&r2=1.1.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ClusterModel/Method.py.diff?cvsroot=cluster&only_with_tag=EXPERIMENTAL&r1=1.1.2.1&r2=1.1.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ClusterModel/ModelBuilder.py.diff?cvsroot=cluster&only_with_tag=EXPERIMENTAL&r1=1.1.2.2&r2=1.1.2.3
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ClusterModel/Multicast.py.diff?cvsroot=cluster&only_with_tag=EXPERIMENTAL&r1=1.1.2.1&r2=1.1.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ClusterModel/MySQL.py.diff?cvsroot=cluster&only_with_tag=EXPERIMENTAL&r1=1.1.2.1&r2=1.1.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ClusterModel/NFSClient.py.diff?cvsroot=cluster&only_with_tag=EXPERIMENTAL&r1=1.1.2.1&r2=1.1.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ClusterModel/NFSExport.py.diff?cvsroot=cluster&only_with_tag=EXPERIMENTAL&r1=1.1.2.1&r2=1.1.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ClusterModel/Netfs.py.diff?cvsroot=cluster&only_with_tag=EXPERIMENTAL&r1=1.1.2.1&r2=1.1.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ClusterModel/OpenLDAP.py.diff?cvsroot=cluster&only_with_tag=EXPERIMENTAL&r1=1.1.2.1&r2=1.1.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ClusterModel/Postgres8.py.diff?cvsroot=cluster&only_with_tag=EXPERIMENTAL&r1=1.1.2.1&r2=1.1.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ClusterModel/QuorumD.py.diff?cvsroot=cluster&only_with_tag=EXPERIMENTAL&r1=1.1.2.1&r2=1.1.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ClusterModel/RefObject.py.diff?cvsroot=cluster&only_with_tag=EXPERIMENTAL&r1=1.1.2.1&r2=1.1.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ClusterModel/Resources.py.diff?cvsroot=cluster&only_with_tag=EXPERIMENTAL&r1=1.1.2.1&r2=1.1.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ClusterModel/Rm.py.diff?cvsroot=cluster&only_with_tag=EXPERIMENTAL&r1=1.1.2.1&r2=1.1.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ClusterModel/SAPDatabase.py.diff?cvsroot=cluster&only_with_tag=EXPERIMENTAL&r1=1.1.2.1&r2=1.1.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ClusterModel/SAPInstance.py.diff?cvsroot=cluster&only_with_tag=EXPERIMENTAL&r1=1.1.2.1&r2=1.1.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ClusterModel/Samba.py.diff?cvsroot=cluster&only_with_tag=EXPERIMENTAL&r1=1.1.2.1&r2=1.1.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ClusterModel/Script.py.diff?cvsroot=cluster&only_with_tag=EXPERIMENTAL&r1=1.1.2.1&r2=1.1.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ClusterModel/Service.py.diff?cvsroot=cluster&only_with_tag=EXPERIMENTAL&r1=1.1.2.1&r2=1.1.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ClusterModel/TagObject.py.diff?cvsroot=cluster&only_with_tag=EXPERIMENTAL&r1=1.1.2.1&r2=1.1.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ClusterModel/Tomcat5.py.diff?cvsroot=cluster&only_with_tag=EXPERIMENTAL&r1=1.1.2.1&r2=1.1.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ClusterModel/Totem.py.diff?cvsroot=cluster&only_with_tag=EXPERIMENTAL&r1=1.1.2.1&r2=1.1.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ClusterModel/Vm.py.diff?cvsroot=cluster&only_with_tag=EXPERIMENTAL&r1=1.1.2.1&r2=1.1.2.2
luci/site/luci/Extensions/ClusterModel/Attic/Apache.py +10 -5
@@ -1,10 +1,15 @@ -from BaseResource import BaseResource +# Copyright (C) 2006-2007 Red Hat, Inc. +# +# This program is free software; you can redistribute +# it and/or modify it under the terms of version 2 of the +# GNU General Public License as published by the +# Free Software Foundation. -import gettext -_ = gettext.gettext +from BaseResource import BaseResource +from gettext import gettext as _ -TAG_NAME = "apache" -RESOURCE_TYPE = _("Apache Server") +TAG_NAME = 'apache' +RESOURCE_TYPE = _('Apache Server') class Apache(BaseResource): def __init__(self):
luci/site/luci/Extensions/ClusterModel/Attic/BaseResource.py +7 -0
@@ -1,3 +1,10 @@ +# Copyright (C) 2006-2007 Red Hat, Inc. +# +# This program is free software; you can redistribute +# it and/or modify it under the terms of version 2 of the +# GNU General Public License as published by the +# Free Software Foundation. + from TagObject import TagObject TAG_NAME = "base_resource" #This tag name should never be seen
luci/site/luci/Extensions/ClusterModel/Attic/Cluster.py +7 -0
@@ -1,3 +1,10 @@ +# Copyright (C) 2006-2007 Red Hat, Inc. +# +# This program is free software; you can redistribute +# it and/or modify it under the terms of version 2 of the +# GNU General Public License as published by the +# Free Software Foundation. + from TagObject import TagObject TAG_NAME = "cluster"
luci/site/luci/Extensions/ClusterModel/Attic/ClusterNode.py +7 -0
@@ -1,3 +1,10 @@ +# Copyright (C) 2006-2007 Red Hat, Inc. +# +# This program is free software; you can redistribute +# it and/or modify it under the terms of version 2 of the +# GNU General Public License as published by the +# Free Software Foundation. + from TagObject import TagObject TAG_NAME = "clusternode"
luci/site/luci/Extensions/ClusterModel/Attic/ClusterNodes.py +7 -0
@@ -1,3 +1,10 @@ +# Copyright (C) 2006-2007 Red Hat, Inc. +# +# This program is free software; you can redistribute +# it and/or modify it under the terms of version 2 of the +# GNU General Public License as published by the +# Free Software Foundation. + from TagObject import TagObject CLUSTERNODES = "Cluster Nodes"
luci/site/luci/Extensions/ClusterModel/Attic/Clusterfs.py +11 -6
@@ -1,10 +1,15 @@ -from BaseResource import BaseResource +# Copyright (C) 2006-2007 Red Hat, Inc. +# +# This program is free software; you can redistribute +# it and/or modify it under the terms of version 2 of the +# GNU General Public License as published by the +# Free Software Foundation. -import gettext -_ = gettext.gettext +from BaseResource import BaseResource +from gettext import gettext as _ -TAG_NAME = "clusterfs" -RESOURCE_TYPE = _("GFS") +TAG_NAME = 'clusterfs' +RESOURCE_TYPE = _('GFS') class Clusterfs(BaseResource): def __init__(self):
@@ -12,4 +17,4 @@ self.TAG_NAME = TAG_NAME self.resource_type = RESOURCE_TYPE #only fstype supported right now is gfs - self.addAttribute("fstype","gfs") + self.addAttribute('fstype', 'gfs')
luci/site/luci/Extensions/ClusterModel/Attic/Cman.py +7 -0
@@ -1,3 +1,10 @@ +# Copyright (C) 2006-2007 Red Hat, Inc. +# +# This program is free software; you can redistribute +# it and/or modify it under the terms of version 2 of the +# GNU General Public License as published by the +# Free Software Foundation. + from TagObject import TagObject TAG_NAME = 'cman'
luci/site/luci/Extensions/ClusterModel/Attic/Device.py +7 -0
@@ -1,3 +1,10 @@ +# Copyright (C) 2006-2007 Red Hat, Inc. +# +# This program is free software; you can redistribute +# it and/or modify it under the terms of version 2 of the +# GNU General Public License as published by the +# Free Software Foundation. + import FenceHandler from TagObject import TagObject
luci/site/luci/Extensions/ClusterModel/Attic/FailoverDomain.py +7 -0
@@ -1,3 +1,10 @@ +# Copyright (C) 2006-2007 Red Hat, Inc. +# +# This program is free software; you can redistribute +# it and/or modify it under the terms of version 2 of the +# GNU General Public License as published by the +# Free Software Foundation. + from TagObject import TagObject TAG_NAME = "failoverdomain"
luci/site/luci/Extensions/ClusterModel/Attic/FailoverDomainNode.py +7 -0
@@ -1,3 +1,10 @@ +# Copyright (C) 2006-2007 Red Hat, Inc. +# +# This program is free software; you can redistribute +# it and/or modify it under the terms of version 2 of the +# GNU General Public License as published by the +# Free Software Foundation. + from TagObject import TagObject TAG_NAME = "failoverdomainnode"
luci/site/luci/Extensions/ClusterModel/Attic/FailoverDomains.py +7 -0
@@ -1,3 +1,10 @@ +# Copyright (C) 2006-2007 Red Hat, Inc. +# +# This program is free software; you can redistribute +# it and/or modify it under the terms of version 2 of the +# GNU General Public License as published by the +# Free Software Foundation. + from TagObject import TagObject TAG_NAME = "failoverdomains"
luci/site/luci/Extensions/ClusterModel/Attic/Fence.py +7 -0
@@ -1,3 +1,10 @@ +# Copyright (C) 2006-2007 Red Hat, Inc. +# +# This program is free software; you can redistribute +# it and/or modify it under the terms of version 2 of the +# GNU General Public License as published by the +# Free Software Foundation. + from TagObject import TagObject TAG_NAME = "fence"
luci/site/luci/Extensions/ClusterModel/Attic/FenceDaemon.py +7 -0
@@ -1,3 +1,10 @@ +# Copyright (C) 2006-2007 Red Hat, Inc. +# +# This program is free software; you can redistribute +# it and/or modify it under the terms of version 2 of the +# GNU General Public License as published by the +# Free Software Foundation. + from TagObject import TagObject POST_JOIN_DEFAULT = '3'
luci/site/luci/Extensions/ClusterModel/Attic/FenceDevice.py +7 -0
@@ -1,3 +1,10 @@ +# Copyright (C) 2006-2007 Red Hat, Inc. +# +# This program is free software; you can redistribute +# it and/or modify it under the terms of version 2 of the +# GNU General Public License as published by the +# Free Software Foundation. + import FenceHandler from TagObject import TagObject
luci/site/luci/Extensions/ClusterModel/Attic/FenceDevices.py +7 -0
@@ -1,3 +1,10 @@ +# Copyright (C) 2006-2007 Red Hat, Inc. +# +# This program is free software; you can redistribute +# it and/or modify it under the terms of version 2 of the +# GNU General Public License as published by the +# Free Software Foundation. + from TagObject import TagObject TAG_NAME = "fencedevices"
luci/site/luci/Extensions/ClusterModel/Attic/FenceXVMd.py +7 -0
@@ -1,3 +1,10 @@ +# Copyright (C) 2006-2007 Red Hat, Inc. +# +# This program is free software; you can redistribute +# it and/or modify it under the terms of version 2 of the +# GNU General Public License as published by the +# Free Software Foundation. + from TagObject import TagObject TAG_NAME = "fence_xvmd"
luci/site/luci/Extensions/ClusterModel/Attic/Fs.py +10 -5
@@ -1,10 +1,15 @@ -from BaseResource import BaseResource +# Copyright (C) 2006-2007 Red Hat, Inc. +# +# This program is free software; you can redistribute +# it and/or modify it under the terms of version 2 of the +# GNU General Public License as published by the +# Free Software Foundation. -import gettext -_ = gettext.gettext +from BaseResource import BaseResource +from gettext import gettext as _ -TAG_NAME = "fs" -RESOURCE_TYPE = _("File System") +TAG_NAME = 'fs' +RESOURCE_TYPE = _('File System') class Fs(BaseResource): def __init__(self):
luci/site/luci/Extensions/ClusterModel/Attic/GeneralError.py +7 -0
@@ -1,3 +1,10 @@ +# Copyright (C) 2006-2007 Red Hat, Inc. +# +# This program is free software; you can redistribute +# it and/or modify it under the terms of version 2 of the +# GNU General Public License as published by the +# Free Software Foundation. + """Exception class for throwing except on an unsuccessfully run lvm command. """
luci/site/luci/Extensions/ClusterModel/Attic/Gulm.py +7 -0
@@ -1,3 +1,10 @@ +# Copyright (C) 2006-2007 Red Hat, Inc. +# +# This program is free software; you can redistribute +# it and/or modify it under the terms of version 2 of the +# GNU General Public License as published by the +# Free Software Foundation. + from TagObject import TagObject TAG_NAME = "gulm"
luci/site/luci/Extensions/ClusterModel/Attic/Heuristic.py +7 -0
@@ -1,3 +1,10 @@ +# Copyright (C) 2006-2007 Red Hat, Inc. +# +# This program is free software; you can redistribute +# it and/or modify it under the terms of version 2 of the +# GNU General Public License as published by the +# Free Software Foundation. + from TagObject import TagObject TAG_NAME = "heuristic"
luci/site/luci/Extensions/ClusterModel/Attic/Ip.py +9 -4
@@ -1,10 +1,15 @@ -from BaseResource import BaseResource +# Copyright (C) 2006-2007 Red Hat, Inc. +# +# This program is free software; you can redistribute +# it and/or modify it under the terms of version 2 of the +# GNU General Public License as published by the +# Free Software Foundation. -import gettext -_ = gettext.gettext +from BaseResource import BaseResource +from gettext import gettext as _ TAG_NAME = 'ip' -RESOURCE_TYPE = _("IP Address") +RESOURCE_TYPE = _('IP Address') class Ip(BaseResource): def __init__(self):
luci/site/luci/Extensions/ClusterModel/Attic/LVM.py +8 -3
@@ -1,7 +1,12 @@ -from BaseResource import BaseResource +# Copyright (C) 2006-2007 Red Hat, Inc. +# +# This program is free software; you can redistribute +# it and/or modify it under the terms of version 2 of the +# GNU General Public License as published by the +# Free Software Foundation. -import gettext -_ = gettext.gettext +from BaseResource import BaseResource +from gettext import gettext as _ TAG_NAME = 'lvm' RESOURCE_TYPE = _('Logical Volume Management')
luci/site/luci/Extensions/ClusterModel/Attic/Lockserver.py +7 -0
@@ -1,3 +1,10 @@ +# Copyright (C) 2006-2007 Red Hat, Inc. +# +# This program is free software; you can redistribute +# it and/or modify it under the terms of version 2 of the +# GNU General Public License as published by the +# Free Software Foundation. + from TagObject import TagObject TAG_NAME = "lockserver"
luci/site/luci/Extensions/ClusterModel/Attic/Method.py +7 -0
@@ -1,3 +1,10 @@ +# Copyright (C) 2006-2007 Red Hat, Inc. +# +# This program is free software; you can redistribute +# it and/or modify it under the terms of version 2 of the +# GNU General Public License as published by the +# Free Software Foundation. + from TagObject import TagObject TAG_NAME = "method"
luci/site/luci/Extensions/ClusterModel/Attic/ModelBuilder.py +7 -0
@@ -1,3 +1,10 @@ +# Copyright (C) 2006-2007 Red Hat, Inc. +# +# This program is free software; you can redistribute +# it and/or modify it under the terms of version 2 of the +# GNU General Public License as published by the +# Free Software Foundation. + from xml.dom import minidom, Node from TagObject import TagObject from Cluster import Cluster
luci/site/luci/Extensions/ClusterModel/Attic/Multicast.py +7 -0
@@ -1,3 +1,10 @@ +# Copyright (C) 2006-2007 Red Hat, Inc. +# +# This program is free software; you can redistribute +# it and/or modify it under the terms of version 2 of the +# GNU General Public License as published by the +# Free Software Foundation. + from TagObject import TagObject TAG_NAME = "multicast"
luci/site/luci/Extensions/ClusterModel/Attic/MySQL.py +10 -5
@@ -1,10 +1,15 @@ -from BaseResource import BaseResource +# Copyright (C) 2006-2007 Red Hat, Inc. +# +# This program is free software; you can redistribute +# it and/or modify it under the terms of version 2 of the +# GNU General Public License as published by the +# Free Software Foundation. -import gettext -_ = gettext.gettext +from BaseResource import BaseResource +from gettext import gettext as _ -TAG_NAME = "mysql" -RESOURCE_TYPE = _("MySQL Server") +TAG_NAME = 'mysql' +RESOURCE_TYPE = _('MySQL Server') class MySQL(BaseResource): def __init__(self):
luci/site/luci/Extensions/ClusterModel/Attic/NFSClient.py +11 -6
@@ -1,10 +1,15 @@ -from BaseResource import BaseResource +# Copyright (C) 2006-2007 Red Hat, Inc. +# +# This program is free software; you can redistribute +# it and/or modify it under the terms of version 2 of the +# GNU General Public License as published by the +# Free Software Foundation. -import gettext -_ = gettext.gettext +from BaseResource import BaseResource +from gettext import gettext as _ -RESOURCE_TYPE = _("NFS Client") -TAG_NAME = "nfsclient" +TAG_NAME = 'nfsclient' +RESOURCE_TYPE = _('NFS Client') DENY_ALL_CHILDREN = True
@@ -13,5 +18,5 @@ BaseResource.__init__(self) self.TAG_NAME = TAG_NAME self.resource_type = RESOURCE_TYPE - self.addAttribute("name", " ") + self.addAttribute('name', ' ') self.deny_all_children = DENY_ALL_CHILDREN
luci/site/luci/Extensions/ClusterModel/Attic/NFSExport.py +10 -5
@@ -1,10 +1,15 @@ -from BaseResource import BaseResource +# Copyright (C) 2006-2007 Red Hat, Inc. +# +# This program is free software; you can redistribute +# it and/or modify it under the terms of version 2 of the +# GNU General Public License as published by the +# Free Software Foundation. -import gettext -_ = gettext.gettext +from BaseResource import BaseResource +from gettext import gettext as _ -RESOURCE_TYPE = _("NFS Export") -TAG_NAME = "nfsexport" +TAG_NAME = 'nfsexport' +RESOURCE_TYPE = _('NFS Export') class NFSExport(BaseResource): def __init__(self):
luci/site/luci/Extensions/ClusterModel/Attic/Netfs.py +10 -5
@@ -1,10 +1,15 @@ -from BaseResource import BaseResource +# Copyright (C) 2006-2007 Red Hat, Inc. +# +# This program is free software; you can redistribute +# it and/or modify it under the terms of version 2 of the +# GNU General Public License as published by the +# Free Software Foundation. -import gettext -_ = gettext.gettext +from BaseResource import BaseResource +from gettext import gettext as _ -TAG_NAME = "netfs" -RESOURCE_TYPE = _("NFS Mount") +TAG_NAME = 'netfs' +RESOURCE_TYPE = _('NFS Mount') class Netfs(BaseResource): def __init__(self):
luci/site/luci/Extensions/ClusterModel/Attic/OpenLDAP.py +10 -5
@@ -1,10 +1,15 @@ -from BaseResource import BaseResource +# Copyright (C) 2006-2007 Red Hat, Inc. +# +# This program is free software; you can redistribute +# it and/or modify it under the terms of version 2 of the +# GNU General Public License as published by the +# Free Software Foundation. -import gettext -_ = gettext.gettext +from BaseResource import BaseResource +from gettext import gettext as _ -TAG_NAME = "openldap" -RESOURCE_TYPE = _("Open LDAP Server") +TAG_NAME = 'openldap' +RESOURCE_TYPE = _('Open LDAP Server') class OpenLDAP(BaseResource): def __init__(self):
luci/site/luci/Extensions/ClusterModel/Attic/Postgres8.py +10 -5
@@ -1,10 +1,15 @@ -from BaseResource import BaseResource +# Copyright (C) 2006-2007 Red Hat, Inc. +# +# This program is free software; you can redistribute +# it and/or modify it under the terms of version 2 of the +# GNU General Public License as published by the +# Free Software Foundation. -import gettext -_ = gettext.gettext +from BaseResource import BaseResource +from gettext import gettext as _ -TAG_NAME = "postgres-8" -RESOURCE_TYPE = _("PostgreSQL 8 Server") +TAG_NAME = 'postgres-8' +RESOURCE_TYPE = _('PostgreSQL 8 Server') class Postgres8(BaseResource): def __init__(self):
luci/site/luci/Extensions/ClusterModel/Attic/QuorumD.py +7 -0
@@ -1,3 +1,10 @@ +# Copyright (C) 2006-2007 Red Hat, Inc. +# +# This program is free software; you can redistribute +# it and/or modify it under the terms of version 2 of the +# GNU General Public License as published by the +# Free Software Foundation. + from TagObject import TagObject TAG_NAME = "quorumd"
luci/site/luci/Extensions/ClusterModel/Attic/RefObject.py +7 -0
@@ -1,3 +1,10 @@ +# Copyright (C) 2006-2007 Red Hat, Inc. +# +# This program is free software; you can redistribute +# it and/or modify it under the terms of version 2 of the +# GNU General Public License as published by the +# Free Software Foundation. + from TagObject import TagObject TAG_NAME = "ref"
luci/site/luci/Extensions/ClusterModel/Attic/Resources.py +7 -0
@@ -1,3 +1,10 @@ +# Copyright (C) 2006-2007 Red Hat, Inc. +# +# This program is free software; you can redistribute +# it and/or modify it under the terms of version 2 of the +# GNU General Public License as published by the +# Free Software Foundation. + from TagObject import TagObject TAG_NAME = "resources"
luci/site/luci/Extensions/ClusterModel/Attic/Rm.py +7 -0
@@ -1,3 +1,10 @@ +# Copyright (C) 2006-2007 Red Hat, Inc. +# +# This program is free software; you can redistribute +# it and/or modify it under the terms of version 2 of the +# GNU General Public License as published by the +# Free Software Foundation. + from TagObject import TagObject TAG_NAME = "rm"
luci/site/luci/Extensions/ClusterModel/Attic/SAPDatabase.py +10 -5
@@ -1,10 +1,15 @@ -from BaseResource import BaseResource +# Copyright (C) 2006-2007 Red Hat, Inc. +# +# This program is free software; you can redistribute +# it and/or modify it under the terms of version 2 of the +# GNU General Public License as published by the +# Free Software Foundation. -import gettext -_ = gettext.gettext +from BaseResource import BaseResource +from gettext import gettext as _ -TAG_NAME = "SAPDatabase" -RESOURCE_TYPE = _("SAP Database") +TAG_NAME = 'SAPDatabase' +RESOURCE_TYPE = _('SAP Database') class SAPDatabase(BaseResource): def __init__(self):
luci/site/luci/Extensions/ClusterModel/Attic/SAPInstance.py +10 -5
@@ -1,10 +1,15 @@ -from BaseResource import BaseResource +# Copyright (C) 2006-2007 Red Hat, Inc. +# +# This program is free software; you can redistribute +# it and/or modify it under the terms of version 2 of the +# GNU General Public License as published by the +# Free Software Foundation. -import gettext -_ = gettext.gettext +from BaseResource import BaseResource +from gettext import gettext as _ -TAG_NAME = "SAPInstance" -RESOURCE_TYPE = _("SAP Instance") +TAG_NAME = 'SAPInstance' +RESOURCE_TYPE = _('SAP Instance') class SAPInstance(BaseResource): def __init__(self):
luci/site/luci/Extensions/ClusterModel/Attic/Samba.py +10 -5
@@ -1,10 +1,15 @@ -from BaseResource import BaseResource +# Copyright (C) 2006-2007 Red Hat, Inc. +# +# This program is free software; you can redistribute +# it and/or modify it under the terms of version 2 of the +# GNU General Public License as published by the +# Free Software Foundation. -import gettext -_ = gettext.gettext +from BaseResource import BaseResource +from gettext import gettext as _ -TAG_NAME = "smb" -RESOURCE_TYPE = _("Samba Service") +TAG_NAME = 'smb' +RESOURCE_TYPE = _('Samba Service') class Samba(BaseResource): def __init__(self):
luci/site/luci/Extensions/ClusterModel/Attic/Script.py +10 -5
@@ -1,10 +1,15 @@ -from BaseResource import BaseResource +# Copyright (C) 2006-2007 Red Hat, Inc. +# +# This program is free software; you can redistribute +# it and/or modify it under the terms of version 2 of the +# GNU General Public License as published by the +# Free Software Foundation. -import gettext -_ = gettext.gettext +from BaseResource import BaseResource +from gettext import gettext as _ -RESOURCE_TYPE = _("Script") -TAG_NAME = "script" +TAG_NAME = 'script' +RESOURCE_TYPE = _('Script') class Script(BaseResource): def __init__(self):
luci/site/luci/Extensions/ClusterModel/Attic/Service.py +7 -0
@@ -1,3 +1,10 @@ +# Copyright (C) 2006-2007 Red Hat, Inc. +# +# This program is free software; you can redistribute +# it and/or modify it under the terms of version 2 of the +# GNU General Public License as published by the +# Free Software Foundation. + from TagObject import TagObject TAG_NAME = "service"
luci/site/luci/Extensions/ClusterModel/Attic/TagObject.py +7 -0
@@ -1,3 +1,10 @@ +# Copyright (C) 2006-2007 Red Hat, Inc. +# +# This program is free software; you can redistribute +# it and/or modify it under the terms of version 2 of the +# GNU General Public License as published by the +# Free Software Foundation. + TAG_NAME = "document" class TagObject:
luci/site/luci/Extensions/ClusterModel/Attic/Tomcat5.py +10 -5
@@ -1,10 +1,15 @@ -from BaseResource import BaseResource +# Copyright (C) 2006-2007 Red Hat, Inc. +# +# This program is free software; you can redistribute +# it and/or modify it under the terms of version 2 of the +# GNU General Public License as published by the +# Free Software Foundation. -import gettext -_ = gettext.gettext +from BaseResource import BaseResource +from gettext import gettext as _ -TAG_NAME = "tomcat-5" -RESOURCE_TYPE = _("Tomcat 5 Server") +TAG_NAME = 'tomcat-5' +RESOURCE_TYPE = _('Tomcat 5 Server') class Tomcat5(BaseResource): def __init__(self):
luci/site/luci/Extensions/ClusterModel/Attic/Totem.py +7 -0
@@ -1,3 +1,10 @@ +# Copyright (C) 2006-2007 Red Hat, Inc. +# +# This program is free software; you can redistribute +# it and/or modify it under the terms of version 2 of the +# GNU General Public License as published by the +# Free Software Foundation. + from TagObject import TagObject TAG_NAME = 'totem'
luci/site/luci/Extensions/ClusterModel/Attic/Vm.py +7 -0
@@ -1,3 +1,10 @@ +# Copyright (C) 2006-2007 Red Hat, Inc. +# +# This program is free software; you can redistribute +# it and/or modify it under the terms of version 2 of the +# GNU General Public License as published by the +# Free Software Foundation. + from TagObject import TagObject TAG_NAME = "vm"