Whoops, forgot a file.

This commit is contained in:
Greg Taylor 2007-06-04 04:00:08 +00:00
parent bc2ea1780b
commit 8cc9abfa94

View file

@ -1,8 +1,18 @@
from apps.config.models import ConfigValue
import os
import settings
"""
Handle the setting/retrieving of server config directives.
"""
def host_os_is(osname):
"""
Check to see if the host OS matches the query.
"""
if settings.OS_TYPE == osname:
return True
return False
def get_configvalue(configname):
"""
Retrieve a configuration value.