Package backend :: Package server :: Module configFilesHandler :: Class ConfigFilesHandler
[hide private]
[frames] | no frames]

Class ConfigFilesHandler

source code


Instance Methods [hide private]
 
__init__(self) source code
 
get_function(self, function) source code
 
max_upload_file_size(self) source code
 
login(self, dict) source code
 
test_session(self, dict) source code
 
_get_delimiters(self) source code
 
_validate_session(self, session) source code
 
_check_user_role(self) source code
 
_is_file(self, file) source code
 
_is_link(self, file) source code
 
_push_file(self, config_channel_id, file) source code
 
push_file(self, config_channel_id, file) source code
 
_push_contents(self, file) source code
 
_push_config_file(self, file) source code
 
_push_revision(self, file) source code
 
_update_revision(self, file) source code
 
_insert_revision(self, file) source code
 
_add_author(self, file, author) source code
 
_update_config_file(self, file) source code
 
_format_file_results(self, row) source code
 
_get_maximum_file_size(self) source code
 
new_config_channel_id(self) source code

Inherited from spacewalk.server.rhnHandler.rhnHandler: auth_system

Class Variables [hide private]
  _query_current_selinux_lookup = <spacewalk.server.rhnSQL.sql_b...
  _query_content_lookup = <spacewalk.server.rhnSQL.sql_base.Stat...
  _query_insert_content = <spacewalk.server.rhnSQL.sql_base.Stat...
  _query_lookup_symlink_config_info = <spacewalk.server.rhnSQL.s...
  _query_lookup_non_symlink_config_info = <spacewalk.server.rhnS...
  _query_lookup_config_file = <spacewalk.server.rhnSQL.sql_base....
  _query_lookup_revision = <spacewalk.server.rhnSQL.sql_base.Sta...
  _query_update_revision = <spacewalk.server.rhnSQL.sql_base.Sta...
  _query_update_revision_add_author = <spacewalk.server.rhnSQL.s...
  _query_update_config_file = <spacewalk.server.rhnSQL.sql_base....
Method Details [hide private]

__init__(self)
(Constructor)

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

get_function(self, function)

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

Class Variable Details [hide private]

_query_current_selinux_lookup

Value:
<spacewalk.server.rhnSQL.sql_base.Statement instance at 13998081195832\
0; statement=
       select ci.selinux_ctx from rhnConfigInfo ci, rhnConfigRevision \
cr, rhnConfigFile cf
       where ci.id = cr.config_info_id
         and cf.id = cr.config_file_id
         and cf.config_file_name_id = lookup_config_filename(:path)
         and cr.revision = (
...

_query_content_lookup

Value:
<spacewalk.server.rhnSQL.sql_base.Statement instance at 13998081195839\
2; statement=
        select cc.id, cv.checksum_type, cv.checksum, file_size, conten\
ts, is_binary, delim_start, delim_end
          from rhnConfigContent cc, rhnChecksumView cv
         where cv.checksum = :checksum
           and cv.checksum_type = :checksum_type
           and file_size = :file_size
...

_query_insert_content

Value:
<spacewalk.server.rhnSQL.sql_base.Statement instance at 13998081195846\
4; statement=
        insert into rhnConfigContent
               (id, checksum_id, file_size, contents, is_binary, delim\
_start, delim_end)
        values (:config_content_id, lookup_checksum(:checksum_type, :c\
hecksum),
                :file_size, :contents, :is_binary, :delim_start, :deli\
...

_query_lookup_symlink_config_info

Value:
<spacewalk.server.rhnSQL.sql_base.Statement instance at 13998081195853\
6; statement=
        select lookup_config_info(null, null, null, :selinux_ctx, look\
up_config_filename(:symlink)) id
          from dual
    

_query_lookup_non_symlink_config_info

Value:
<spacewalk.server.rhnSQL.sql_base.Statement instance at 13998081195860\
8; statement=
        select lookup_config_info(:username, :groupname, :file_mode, :\
selinux_ctx, null) id
          from dual
    

_query_lookup_config_file

Value:
<spacewalk.server.rhnSQL.sql_base.Statement instance at 13998081195868\
0; statement=
        select id
          from rhnConfigFile
         where config_channel_id = :config_channel_id
           and config_file_name_id = lookup_config_filename(:path)
    

_query_lookup_revision

Value:
<spacewalk.server.rhnSQL.sql_base.Statement instance at 13998081195875\
2; statement=
        select id, revision, config_content_id, config_info_id,
               config_file_type_id
          from rhnConfigRevision
         where config_file_id = :config_file_id
         order by revision desc
    

_query_update_revision

Value:
<spacewalk.server.rhnSQL.sql_base.Statement instance at 13998081195882\
4; statement=
        update rhnConfigRevision
           set modified = current_timestamp
         where id = :config_revision_id
    

_query_update_revision_add_author

Value:
<spacewalk.server.rhnSQL.sql_base.Statement instance at 13998081195889\
6; statement=
        update rhnConfigRevision
            set changed_by_id = :user_id
        where id = :rev_id
    

_query_update_config_file

Value:
<spacewalk.server.rhnSQL.sql_base.Statement instance at 13998081195896\
8; statement=
        update rhnConfigFile
           set latest_config_revision_id = :config_revision_id,
               state_id = :state_id
         where config_channel_id = :config_channel_id
           and config_file_name_id = lookup_config_filename(:path)