Package entropy :: Package server :: Package interfaces :: Module main :: Class ServerSystemSettingsPlugin

Class ServerSystemSettingsPlugin

source code


Instance Methods
None
__init__(self, plugin_id, helper_interface)
SystemSettingsPlugin constructor.
source code
set
get_updatable_configuration_files(self, repository_id)
Overridden from SystemSettings.
source code
 
dep_rewrite_parser(self, sys_set) source code
 
dep_blacklist_parser(self, sys_set) source code
 
qa_sets_parser(self, sys_set) source code
 
server_parser(self, sys_set)
Parses Entropy server system configuration file.
source code

Inherited from core.settings.plugins.skel.SystemSettingsPlugin: add_parser, get_id, parse, post_setup

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods
None
analyze_server_repo_string(cls, repostring, product=None)
Analyze a server repository string (usually contained in server.conf), extracting all the parameters.
source code
Static Methods
 
server_conf_path()
Return current server.conf path, this takes into account the current configuration files directory path (which is affected by "root" path changes [default: /])
source code
 
extend_repository_metadata(system_settings, repository_id, metadata)
Extend server-side Repository metadata dictionary with information required by Entropy Server.
source code
 
get_repository_remote_path(system_settings, repository_id) source code
 
set_override_remote_repository(system_settings, repository_id, override_repository_id)
Used to set an overridden remote path where to push repository database.
source code
Class Variables
  REPOSITORIES = {}

Inherited from core.settings.plugins.skel.SystemSettingsPlugin: BASE_PLUGIN_API_VERSION

Properties

Inherited from object: __class__

Method Details

__init__(self, plugin_id, helper_interface)
(Constructor)

source code 

SystemSettingsPlugin constructor.

Parameters:
  • plugin_id - plugin identifier, must be unique
  • helper_interface - any Python object that could be of help to your parsers
Returns: None
None
Overrides: object.__init__
(inherited documentation)

analyze_server_repo_string(cls, repostring, product=None)
Class Method

source code 

Analyze a server repository string (usually contained in server.conf), extracting all the parameters.

Parameters:
  • repostring (string) - repository string
  • product - system product which repository belongs to
Returns: None
None

get_updatable_configuration_files(self, repository_id)

source code 

Overridden from SystemSettings.

Parameters:
  • repository_id - repository identifier, if needed to return a list of specific configuration files
Returns: set
list (set) of package files paths (must check for path avail)
Overrides: core.settings.plugins.skel.SystemSettingsPlugin.get_updatable_configuration_files

server_parser(self, sys_set)

source code 

Parses Entropy server system configuration file.

@return dict data

set_override_remote_repository(system_settings, repository_id, override_repository_id)
Static Method

source code 

Used to set an overridden remote path where to push repository database. This can be used for quickly testing repository changes without directly overwriting the real repository.