예제 #1
0
from pyconfig import Namespace
import os

sunetpages = Namespace()
sunetpages.root = "/var/www"
sunetpages.owner = "www-data"
sunetpages.group = "www-data"
sunetpages.auth_cookie = os.getenv('SUNET_PAGES_AUTH_COOKIE',None)
예제 #2
0
# This is for testing localconfig import bugs that happened with the Python 3
# compatibility patch. It'll be automatically included with tests and cause
# regressions if there are any.
from pyconfig import Namespace

conf = Namespace()
conf.local = True
예제 #3
0
파일: test1.py 프로젝트: yarbelk/pyconfig
from pyconfig import Namespace

test = Namespace()
test.value = 1
test.name = 'test1'
예제 #4
0
# This is for testing localconfig import bugs that happened with the Python 3
# compatibility patch. It'll be automatically included with tests and cause
# regressions if there are any.
from pyconfig import Namespace

conf = Namespace({'inp1':True, 'inp2':False})
conf.local = True
conf.inp2 = True # overriding