Exemplo n.º 1
0
 def __init__(self, config):
     stream = StringIO()
     stream.write("Current platform settings:\n")
     configfile.pretty_print(config.get_all_platforms(), stream)
     self.description = stream.getvalue()
     stream.close()
     self.config = config
 def __init__(self, config):
     stream = StringIO()
     stream.write("Current platform settings:\n")
     configfile.pretty_print(config.get_all_platforms(), stream)
     self.description = stream.getvalue()
     stream.close()
     self.config = config
    def __init__(self, config):
        stream = StringIO()
        stream.write("Current package settings:\n")
        configfile.pretty_print(config.package_description, stream)
        self.description = stream.getvalue()
        stream.close()

        self.config = config

        self.interactive_delete = False
 def __init__(self, config):
     stream = StringIO()
     stream.write("Current configure and build settings:\n")
     configfile.pretty_print(config.get_all_platforms(), stream) 
     self.description = stream.getvalue()
     stream.close()
     stream = StringIO()
     stream.write("Use commas to separate items in options and arguments fields")
     self.help = stream.getvalue()
     self.config = config
Exemplo n.º 5
0
    def __init__(self, config):
        stream = StringIO()
        stream.write("Current package settings:\n")
        configfile.pretty_print(config.package_description, stream)
        self.description = stream.getvalue()
        stream.close()

        self.config = config

        self.interactive_delete = False
Exemplo n.º 6
0
 def __init__(self, config):
     stream = StringIO()
     stream.write("Current platform archive settings:\n")
     archives = {}
     for platform, description in config.get_all_platforms().iteritems():
         if description.archive is not None:
             archives[platform] = description.archive
     configfile.pretty_print(archives, stream)
     self.description = stream.getvalue()
     stream.close()
     self.config = config
Exemplo n.º 7
0
 def __init__(self, config):
     stream = StringIO()
     stream.write("Current configure and build settings:\n")
     configfile.pretty_print(config.get_all_platforms(), stream)
     self.description = stream.getvalue()
     stream.close()
     stream = StringIO()
     stream.write(
         "Use commas to separate items in options and arguments fields")
     self.help = stream.getvalue()
     self.config = config
Exemplo n.º 8
0
    def __init__(self, config):
        """
        This default __init__ for an interactive command has the following characteristics:
        
        config      an instance of configfile.ConfigurationDescription()

        description prints out the current configuration for a user to examine prior to modification
        help        text displayed providing info about field entry

        """
        stream = StringIO()
        stream.write("Current settings:\n")
        configfile.pretty_print(config, stream)
        self.description = stream.getvalue()
        self.help = "Enter new or modified configuration values."
        self.config = config
Exemplo n.º 9
0
    def __init__(self, config):
        """
        This default __init__ for an interactive command has the following characteristics:
        
        config      an instance of configfile.ConfigurationDescription()

        description prints out the current configuration for a user to examine prior to modification
        help        text displayed providing info about field entry

        """
        stream = StringIO()
        stream.write("Current settings:\n")
        configfile.pretty_print(config, stream)
        self.description = stream.getvalue()
        self.help = "Enter new or modified configuration values."
        self.config = config
Exemplo n.º 10
0
 def run(self, args):
     config = configfile.ConfigurationDescription(args.config_file)
     configfile.pretty_print(config)
 def run(self, args):
     config = configfile.ConfigurationDescription(args.config_file)
     configfile.pretty_print(config)