Package backend :: Package server :: Package handlers :: Package config :: Module rhn_config_management :: Class ConfigManagement
[hide private]
[frames] | no frames]

Class ConfigManagement

source code


Instance Methods [hide private]
 
__init__(self) source code
 
auth_system(self, systemid) source code
 
client_get_maximum_file_size(self, systemid) source code
 
client_get_delimiters(self, systemid) source code
 
client_list_channels(self, systemid) source code
 
client_set_namespaces(self, systemid, namespaces) source code
 
client_list_files(self, systemid, config_channel=None)
Return array of files (its path), which we manage on that system.
source code
 
client_get_file(self, systemid, filename)
Returns requested config file.
source code
 
_client_get_file(self, server_id, filename) source code
 
_get_client_config_channels(self, server_id) source code
 
client_upload_file(self, systemid, action_id, file) source code
 
client_upload_to_server_import(self, systemid, file) source code
 
_create_server_import_channel(self, server_id) source code

Inherited from spacewalk.server.configFilesHandler.ConfigFilesHandler: get_function, login, max_upload_file_size, new_config_channel_id, push_file, test_session

Inherited from spacewalk.server.configFilesHandler.ConfigFilesHandler (private): _add_author, _check_user_role, _format_file_results, _get_delimiters, _get_maximum_file_size, _insert_revision, _is_file, _is_link, _push_config_file, _push_contents, _push_file, _push_revision, _update_config_file, _update_revision, _validate_session

Class Variables [hide private]
  _query_client_list_files = <spacewalk.server.rhnSQL.sql_base.S...
  _query_client_get_file = <spacewalk.server.rhnSQL.sql_base.Sta...
  _query_client_config_channels = <spacewalk.server.rhnSQL.sql_b...
  _query_client_upload_files = <spacewalk.server.rhnSQL.sql_base...
  _query_lookup_import_channel = <spacewalk.server.rhnSQL.sql_ba...
  _query_create_server_import_channel = <spacewalk.server.rhnSQL...

Inherited from spacewalk.server.configFilesHandler.ConfigFilesHandler (private): _query_content_lookup, _query_current_selinux_lookup, _query_insert_content, _query_lookup_config_file, _query_lookup_non_symlink_config_info, _query_lookup_revision, _query_lookup_symlink_config_info, _query_update_config_file, _query_update_revision, _query_update_revision_add_author

Method Details [hide private]

__init__(self)
(Constructor)

source code 
Overrides: spacewalk.common.RPC_Base.RPC_Base.__init__

auth_system(self, systemid)

source code 
Overrides: spacewalk.server.rhnHandler.rhnHandler.auth_system

client_get_file(self, systemid, filename)

source code 

Returns requested config file. If file do not exist or system is not subscribed to, then we return. {'missing' : 1} Otherwise dictionary is returned. It should contains keys: path, config_channel, file_contents, checksum_type, checksum, delim_start delim_end, revision, username, groupname, filemode, encoding, filetype and selinux_ctx. See server/configFilesHandler.py:format_file_results


Class Variable Details [hide private]

_query_client_list_files

Value:
<spacewalk.server.rhnSQL.sql_base.Statement instance at 13998081163646\
4; statement=
        select cfn.path, cr.config_file_type_id
          from rhnConfigChannelType cct,
               rhnConfigChannel cc,
               rhnConfigFileState cfs,
               rhnConfigFileName cfn,
               rhnConfigRevision cr,
...

_query_client_get_file

Value:
<spacewalk.server.rhnSQL.sql_base.Statement instance at 13998081163653\
6; statement=
        select :path path,
               cc.label config_channel,
               c.contents file_contents,
               c.is_binary is_binary,
               c.checksum_type,
               c.checksum,
...

_query_client_config_channels

Value:
<spacewalk.server.rhnSQL.sql_base.Statement instance at 13998081163660\
8; statement=
        select cc.label,
               cc.name
          from rhnConfigChannelType cct,
               rhnConfigChannel cc,
               rhnServerConfigChannel scc
         where scc.server_id = :server_id
...

_query_client_upload_files

Value:
<spacewalk.server.rhnSQL.sql_base.Statement instance at 13998081163668\
0; statement=
        select acc.config_channel_id, ast.name action_status
          from rhnServerAction sa,
               rhnActionStatus ast,
               rhnActionConfigChannel acc
         where acc.server_id = :server_id
           and acc.action_id = :action_id
...

_query_lookup_import_channel

Value:
<spacewalk.server.rhnSQL.sql_base.Statement instance at 13998081166958\
4; statement=
        select cc.id
          from rhnConfigChannelType cct,
               rhnConfigChannel cc,
               rhnServerConfigChannel scc
         where scc.server_id = :server_id
           and scc.config_channel_id = cc.id
...

_query_create_server_import_channel

Value:
<spacewalk.server.rhnSQL.sql_base.Statement instance at 13998081166965\
6; statement=
        insert into rhnServerConfigChannel
               (server_id, config_channel_id, position)
        values (:server_id, :config_channel_id, :position)