コード例 #1
0
    def set_configuration_property(self, configuration_property):
        # retrieves the configuration
        configuration = configuration_property.get_data()

        # cleans the console configuration
        colony.map_clean(self.console_configuration)

        # copies the service configuration to the console configuration configuration
        colony.map_copy(configuration, self.console_configuration)
コード例 #2
0
    def set_startup_configuration_property(self, startup_configuration_property):
        # retrieves the startup configuration
        startup_configuration = startup_configuration_property.get_data()

        # cleans the startup configuration
        colony.map_clean(self.startup_configuration)

        # copies the startup configuration to the startup configuration
        colony.map_copy(startup_configuration, self.startup_configuration)
コード例 #3
0
    def set_handler_configuration_property(self, handler_configuration_property):
        # retrieves the handler configuration
        handler_configuration = handler_configuration_property.get_data()

        # cleans the handler configuration
        colony.map_clean(self.handler_configuration)

        # copies the handler configuration to the handler configuration
        colony.map_copy(handler_configuration, self.handler_configuration)
コード例 #4
0
 def unset_startup_configuration_property(self):
     # cleans the startup configuration
     colony.map_clean(self.startup_configuration)
コード例 #5
0
 def unset_configuration_property(self):
     # cleans the info user configuration map to avoid duplicate
     # values in the map (side effect may occur)
     colony.map_clean(self.info_user_configuration)
コード例 #6
0
 def set_configuration_property(self, configuration_property):
     # retrieves the configuration and runs the clean operation
     # in it then copies the configuration to the target map
     configuration = configuration_property.get_data()
     colony.map_clean(self.info_user_configuration)
     colony.map_copy(configuration, self.info_user_configuration)
コード例 #7
0
 def unset_configuration_property(self):
     # cleans the console configuration
     colony.map_clean(self.console_configuration)
コード例 #8
0
 def unset_handler_configuration_property(self):
     # cleans the handler configuration
     colony.map_clean(self.handler_configuration)