Пример #1
0
 def __init__(self, parent, data={}):
     GenericSkarphedObject.__init__(self)
     self.par = parent
     self.data = data
     self.data["available"] = []
     self.getRepoTemplates()
     self.load()
Пример #2
0
 def __init__(self,parent, data = {}):
     GenericSkarphedObject.__init__(self)
     self.par = parent
     self.data = data
     self.roledata = None
     self.permissiondata = None
     self.updated()
Пример #3
0
 def __init__(self, par, url="", dba_user="", dba_password=""):
     GenericSkarphedObject.__init__(self)
     self.par = par
     self.instanceTypeName = "database"
     self.displayName = "Database"
     self.dba_user = dba_user
     self.dba_password = dba_password
Пример #4
0
 def __init__(self, parent, data={}):
     GenericSkarphedObject.__init__(self)
     self.par = parent
     self.data = data
     self.data['available'] = []
     self.getRepoTemplates()
     self.load()
Пример #5
0
 def __init__(self, parent):
     GenericSkarphedObject.__init__(self)
     self.par = parent
     self.refresh()
     self.periodicRefresh = False
     self.refreshThread = self.RefreshThread(self)
     self.refreshThread.start()
Пример #6
0
 def __init__(self,par, data = {}):
     GenericSkarphedObject.__init__(self)
     self.par = par
     self.data = data
     self.actionList = None
     self.updated()
     self.loadActionList()
     self.loadMenuItems()
Пример #7
0
 def __init__(self, par, data={}):
     GenericSkarphedObject.__init__(self)
     self.par = par
     self.data = data
     self.actionList = None
     self.updated()
     self.loadActionList()
     self.loadMenuItems()
Пример #8
0
 def __init__(self,data,server):
     GenericSkarphedObject.__init__(self)
     self.server=server
     self.data  = data
     self.domain = ""
     self.installationId = int(random.random()*1000)
     self.BUILDPATH = os.path.join("/","tmp","scvinst"+str(self.installationId))
     self.installThread = self.InstallThread(self)
     self.status = 0
Пример #9
0
    def __init__(self, parent, data={}):
        GenericSkarphedObject.__init__(self)
        self.par = parent
        self.data = data
        self.updated()
        if self.data.has_key('installed') and self.data['installed']:
            self.loadWidgets()

        if not os.path.exists(MODULEGUI):
            os.mkdir(MODULEGUI)
            open(os.path.join(MODULEGUI, "__init__.py"), "w").close()
Пример #10
0
    def __init__(self,parent, data = {}):
        GenericSkarphedObject.__init__(self)
        self.par = parent
        self.data = data
        self.updated()
        if self.data.has_key('installed') and self.data['installed']:
            self.loadWidgets()

        if not os.path.exists(MODULEGUI):
            os.mkdir(MODULEGUI)
            open(os.path.join(MODULEGUI,"__init__.py"),"w").close()
Пример #11
0
 def __init__(self,parent, data):
     GenericSkarphedObject.__init__(self)
     self.par = parent
     self.data = data
     self.loaded_fully = False
     if not self.data.has_key('space_widget_mapping'):
         self.data['space_widget_mapping'] = {}
     if not self.data.has_key('box_mapping'):
         self.data['box_mapping'] = {}
     if not self.data.has_key('widget_param_mapping'):
         self.data['widget_param_mapping'] = {}
     if not self.data.has_key('page_id'):
         self.data['page_id'] = None
     self.updated()
Пример #12
0
 def __init__(self, parent, data):
     GenericSkarphedObject.__init__(self)
     self.par = parent
     self.data = data
     self.loaded_fully = False
     if not self.data.has_key('space_widget_mapping'):
         self.data['space_widget_mapping'] = {}
     if not self.data.has_key('box_mapping'):
         self.data['box_mapping'] = {}
     if not self.data.has_key('widget_param_mapping'):
         self.data['widget_param_mapping'] = {}
     if not self.data.has_key('page_id'):
         self.data['page_id'] = None
     self.updated()
Пример #13
0
 def __init__(self,par):
     GenericSkarphedObject.__init__(self)
     self.par = par
     self.status = False
     self.refresh()
Пример #14
0
 def __init__(self,parent,data):
     GenericSkarphedObject.__init__(self)
     self.par = parent
     self.data = data
     self.updated()
Пример #15
0
 def __init__(self, par, data={}):
     GenericSkarphedObject.__init__(self)
     self.par = par
     self.data = data
     self.updated()
     self.loadActions()
Пример #16
0
 def __init__(self,parent):
     GenericSkarphedObject.__init__(self)
     self.par = parent
     self.updated()
     self.refresh()
Пример #17
0
 def __init__(self,par, data = {}):
     GenericSkarphedObject.__init__(self)
     self.par = par
     self.data = data
     self.updated()
     self.loadActions()
Пример #18
0
 def __init__(self, par, db_name="", db_user="", db_password=""):
     GenericSkarphedObject.__init__(self)
     self.par = par
     self.db_name = db_name
     self.db_user = db_user
     self.db_password = db_password
Пример #19
0
# PURPOSE. See the GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public 
# License along with Skarphed. 
# If not, see http://www.gnu.org/licenses/.
###########################################################


from data.Generic import GenericSkarphedObject
from data.Instance import InstanceType
from data.Server import InstallationTarget, Server
from glue.paths import INSTALLER
from os import listdir
from sys import path

o = GenericSkarphedObject()
o.getApplication().registerInstanceType(InstanceType("skarphed","Skarphed"))
o.destroy()

path.append(INSTALLER)
installers = listdir(INSTALLER)
for installer in installers:
    if installer.startswith("_"):
        continue
    try:
        exec "from %s import TARGETNAME, EXTRA_PARAMS, Installer, Destroyer"%installer
    except ImportError:
        print "Failed to load installer: %s"%installer
    else:
        target = InstallationTarget()
        target.setName(TARGETNAME)
Пример #20
0
 def __init__(self,parent):
     GenericSkarphedObject.__init__(self)
     self.par = parent
     self.updated()
     self.refresh()
Пример #21
0
 def __init__(self, parent, data={}):
     GenericSkarphedObject.__init__(self)
     self.par = parent
     self.permissiondata = None
     self.data = data
     self.updated()
Пример #22
0
 def __init__(self, par, db_name="", db_user="", db_password=""):
     GenericSkarphedObject.__init__(self)
     self.par = par
     self.db_name = db_name
     self.db_user = db_user
     self.db_password = db_password
Пример #23
0
# -*- coding: utf-8 -*-

###########################################################
# © 2011 Daniel 'grindhold' Brendle and Team
#
# This file is part of Skarphed.
#
# Skarphed is free software: you can redistribute it and/or
# modify it under the terms of the GNU Affero General Public License
# as published by the Free Software Foundation, either
# version 3 of the License, or (at your option) any later
# version.
#
# Skarphed is distributed in the hope that it will be
# useful, but WITHOUT ANY WARRANTY; without even the implied
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
# PURPOSE. See the GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public
# License along with Skarphed.
# If not, see http://www.gnu.org/licenses/.
###########################################################


from data.Generic import GenericSkarphedObject
from data.Instance import InstanceType

o = GenericSkarphedObject()
o.getApplication().registerInstanceType(InstanceType("database", "Skarphed Database"))
o.destroy()
Пример #24
0
 def __init__(self, instanceid, instance):
     GenericSkarphedObject.__init__(self)
     self.instanceid = instanceid
     self.instance = instance
     self.status = 0
     self.destroyThread = self.DestroyThread(self)
Пример #25
0
#!/usr/bin/python
#-*- coding: utf-8 -*-

###########################################################
# © 2011 Daniel 'grindhold' Brendle and Team
#
# This file is part of Skarphed.
#
# Skarphed is free software: you can redistribute it and/or
# modify it under the terms of the GNU Affero General Public License
# as published by the Free Software Foundation, either
# version 3 of the License, or (at your option) any later
# version.
#
# Skarphed is distributed in the hope that it will be
# useful, but WITHOUT ANY WARRANTY; without even the implied
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
# PURPOSE. See the GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public
# License along with Skarphed.
# If not, see http://www.gnu.org/licenses/.
###########################################################

from data.Generic import GenericSkarphedObject
from data.Instance import InstanceType
o = GenericSkarphedObject()
o.getApplication().registerInstanceType(
    InstanceType("skarphed_repo", "Skarphed Repository"))
o.destroy()
Пример #26
0
#!/usr/bin/python
#-*- coding: utf-8 -*-

###########################################################
# © 2011 Daniel 'grindhold' Brendle and Team
#
# This file is part of Skarphed.
#
# Skarphed is free software: you can redistribute it and/or 
# modify it under the terms of the GNU Affero General Public License 
# as published by the Free Software Foundation, either 
# version 3 of the License, or (at your option) any later 
# version.
#
# Skarphed is distributed in the hope that it will be 
# useful, but WITHOUT ANY WARRANTY; without even the implied 
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
# PURPOSE. See the GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public 
# License along with Skarphed. 
# If not, see http://www.gnu.org/licenses/.
###########################################################


from data.Generic import GenericSkarphedObject
from data.Instance import InstanceType
o = GenericSkarphedObject()
o.getApplication().registerInstanceType(InstanceType("database","Skarphed Database"))
o.destroy()
Пример #27
0
#!/usr/bin/python
#-*- coding: utf-8 -*-

###########################################################
# © 2011 Daniel 'grindhold' Brendle and Team
#
# This file is part of Skarphed.
#
# Skarphed is free software: you can redistribute it and/or 
# modify it under the terms of the GNU Affero General Public License 
# as published by the Free Software Foundation, either 
# version 3 of the License, or (at your option) any later 
# version.
#
# Skarphed is distributed in the hope that it will be 
# useful, but WITHOUT ANY WARRANTY; without even the implied 
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
# PURPOSE. See the GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public 
# License along with Skarphed. 
# If not, see http://www.gnu.org/licenses/.
###########################################################


from data.Generic import GenericSkarphedObject
from data.Instance import InstanceType
o = GenericSkarphedObject()
o.getApplication().registerInstanceType(InstanceType("skarphed_repo","Skarphed Repository"))
o.destroy()