def __init__(self, parent, data={}): GenericSkarphedObject.__init__(self) self.par = parent self.data = data self.data["available"] = [] self.getRepoTemplates() self.load()
def __init__(self,parent, data = {}): GenericSkarphedObject.__init__(self) self.par = parent self.data = data self.roledata = None self.permissiondata = None self.updated()
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
def __init__(self, parent, data={}): GenericSkarphedObject.__init__(self) self.par = parent self.data = data self.data['available'] = [] self.getRepoTemplates() self.load()
def __init__(self, parent): GenericSkarphedObject.__init__(self) self.par = parent self.refresh() self.periodicRefresh = False self.refreshThread = self.RefreshThread(self) self.refreshThread.start()
def __init__(self,par, data = {}): GenericSkarphedObject.__init__(self) self.par = par self.data = data self.actionList = None self.updated() self.loadActionList() self.loadMenuItems()
def __init__(self, par, data={}): GenericSkarphedObject.__init__(self) self.par = par self.data = data self.actionList = None self.updated() self.loadActionList() self.loadMenuItems()
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
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()
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()
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()
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()
def __init__(self,par): GenericSkarphedObject.__init__(self) self.par = par self.status = False self.refresh()
def __init__(self,parent,data): GenericSkarphedObject.__init__(self) self.par = parent self.data = data self.updated()
def __init__(self, par, data={}): GenericSkarphedObject.__init__(self) self.par = par self.data = data self.updated() self.loadActions()
def __init__(self,parent): GenericSkarphedObject.__init__(self) self.par = parent self.updated() self.refresh()
def __init__(self,par, data = {}): GenericSkarphedObject.__init__(self) self.par = par self.data = data self.updated() self.loadActions()
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
# 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)
def __init__(self, parent, data={}): GenericSkarphedObject.__init__(self) self.par = parent self.permissiondata = None self.data = data self.updated()
# -*- 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()
def __init__(self, instanceid, instance): GenericSkarphedObject.__init__(self) self.instanceid = instanceid self.instance = instance self.status = 0 self.destroyThread = self.DestroyThread(self)
#!/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()
#!/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()
#!/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()