Home | Trees | Indices | Help |
---|
|
1 # 2 # Uncomplicated VM Builder 3 # Copyright (C) 2007-2009 Canonical Ltd. 4 # 5 # See AUTHORS for list of contributors 6 # 7 # This program is free software: you can redistribute it and/or modify 8 # it under the terms of the GNU General Public License version 3, as 9 # published by the Free Software Foundation. 10 # 11 # This program is distributed in the hope that it will be useful, 12 # but WITHOUT ANY WARRANTY; without even the implied warranty of 13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 # GNU General Public License for more details. 15 # 16 # You should have received a copy of the GNU General Public License 17 # along with this program. If not, see <http://www.gnu.org/licenses/>. 18 # 19 # Frontend interface and classes 20 21 import VMBuilder.plugins 22 28 29 # self.settings = [] 30 31 # def setting_group(self, help=None): 32 # return self.SettingsGroup(help) 33 # 34 # def add_setting_group(self, group): 35 # self.settings.append(group) 36 # 37 # def add_setting(self, **kwargs): 38 # self.settings.append(Setting(**kwargs)) 39 # 40 # setting_types = ['store', 'store'] 41 # class Setting(object): 42 # def __init__(self, **kwargs): 43 # self.shortarg = kwargs.get('shortarg', None) 44 # self.longarg = kwargs.get('shortarg', None) 45 # self.default = kwargs.get('default', None) 46 # self.help = kwargs.get('help', None) 47 # type = kwargs.get('type', 'store') 48 # if type not in setting_types: 49 # raise VMBuilderException("Invalid option type: %s" % type) 50 # 51 # class SettingsGroup(Setting): 52 # pass 53
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Tue Aug 16 14:11:30 2011 | http://epydoc.sourceforge.net |