コード例 #1
0
ファイル: Template.py プロジェクト: joker234/skarphed
 def __init__(self, parent, data={}):
     GenericSkarphedObject.__init__(self)
     self.par = parent
     self.data = data
     self.data["available"] = []
     self.getRepoTemplates()
     self.load()
コード例 #2
0
ファイル: User.py プロジェクト: joker234/skarphed
 def __init__(self,parent, data = {}):
     GenericSkarphedObject.__init__(self)
     self.par = parent
     self.data = data
     self.roledata = None
     self.permissiondata = None
     self.updated()
コード例 #3
0
ファイル: Database.py プロジェクト: joker234/skarphed
 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
ファイル: Operation.py プロジェクト: joker234/skarphed
 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
ファイル: Menu.py プロジェクト: joker234/skarphed
 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
ファイル: Menu.py プロジェクト: joker234/skarphed
 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
ファイル: Skarphed.py プロジェクト: joker234/skarphed
 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
ファイル: Module.py プロジェクト: joker234/skarphed
    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
ファイル: Module.py プロジェクト: joker234/skarphed
    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
ファイル: View.py プロジェクト: joker234/skarphed
 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
ファイル: View.py プロジェクト: joker234/skarphed
 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
ファイル: Operation.py プロジェクト: joker234/skarphed
 def __init__(self,par):
     GenericSkarphedObject.__init__(self)
     self.par = par
     self.status = False
     self.refresh()
コード例 #14
0
ファイル: Operation.py プロジェクト: joker234/skarphed
 def __init__(self,parent,data):
     GenericSkarphedObject.__init__(self)
     self.par = parent
     self.data = data
     self.updated()
コード例 #15
0
ファイル: Menu.py プロジェクト: joker234/skarphed
 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
ファイル: Menu.py プロジェクト: joker234/skarphed
 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
ファイル: __init__.py プロジェクト: joker234/skarphed
# 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
ファイル: View.py プロジェクト: joker234/skarphed
 def __init__(self,parent):
     GenericSkarphedObject.__init__(self)
     self.par = parent
     self.updated()
     self.refresh()
コード例 #21
0
ファイル: Role.py プロジェクト: joker234/skarphed
 def __init__(self, parent, data={}):
     GenericSkarphedObject.__init__(self)
     self.par = parent
     self.permissiondata = None
     self.data = data
     self.updated()
コード例 #22
0
ファイル: Schema.py プロジェクト: joker234/skarphed
 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
ファイル: __init__.py プロジェクト: joker234/skarphed
# -*- 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
ファイル: Skarphed.py プロジェクト: joker234/skarphed
 def __init__(self, instanceid, instance):
     GenericSkarphedObject.__init__(self)
     self.instanceid = instanceid
     self.instance = instance
     self.status = 0
     self.destroyThread = self.DestroyThread(self)
コード例 #25
0
ファイル: __init__.py プロジェクト: joker234/skarphed
#!/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
ファイル: __init__.py プロジェクト: joker234/skarphed
#!/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
ファイル: __init__.py プロジェクト: joker234/skarphed
#!/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()