Please enable JavaScript to use RhodeCode Enterprise
Commit Description:
fix utf8 for java
Commit Description:
fix utf8 for java
module ConfigSpecHelperMethods
def find_or_create_and_set_config ( key , type , value )
c = Configuration . find_by_key ( key )
c ||= Configuration . new ( :key => key ,
:value_type => type )
c . value = value
c . save!
end
def enable_multicontest
find_or_create_and_set_config ( Configuration :: MULTICONTESTS_KEY ,
'boolean' , 'true' )
end
def disable_multicontest
find_or_create_and_set_config ( Configuration :: MULTICONTESTS_KEY ,
'boolean' , 'false' )
end
def set_indv_contest_mode
find_or_create_and_set_config ( Configuration :: SYSTEM_MODE_CONF_KEY ,
'string' , 'indv-contest' )
end
def set_standard_mode
find_or_create_and_set_config ( Configuration :: SYSTEM_MODE_CONF_KEY ,
'string' , 'standard' )
end
def set_contest_time_limit ( limit )
find_or_create_and_set_config ( Configuration :: CONTEST_TIME_LIMIT_KEY ,
'string' , limit )
# clear old value
Configuration . contest_time_str = nil
end
end
Site-wide shortcuts
/
Use quick search box
g h
Goto home page
g g
Goto my private gists page
g G
Goto my public gists page
n r
New repository page
n g
New gist page
Repositories
g s
Goto summary page
g c
Goto changelog page
g f
Goto files page
g F
Goto files page with file search activated
g p
Goto pull requests page
g o
Goto repository settings
g O
Goto repository permissions settings