From 9bf0c2f057618b5cc7d53a45c7ed24a18bda554a Mon Sep 17 00:00:00 2001 From: LV-426 Date: Sun, 10 May 2015 21:42:51 +0300 Subject: rz_config: fragment_d_path, template_d_path defaults --- build.ant | 31 +++++++++++-------------------- src/server/rz_config.py | 7 ++++--- 2 files changed, 15 insertions(+), 23 deletions(-) diff --git a/build.ant b/build.ant index e75d1e1b..ff5737b1 100644 --- a/build.ant +++ b/build.ant @@ -76,7 +76,7 @@ value="${fragmentd_root_path}/default" description="source path for default fragments" /> + value="${fragmentd_root_path}/${targetDomain}" /> @@ -108,13 +108,15 @@ + + - - - - + + + @@ -143,17 +145,8 @@ failonerror="false" /> - - - - - - - + + @@ -163,10 +156,8 @@ - - + + diff --git a/src/server/rz_config.py b/src/server/rz_config.py index 09409726..03012048 100644 --- a/src/server/rz_config.py +++ b/src/server/rz_config.py @@ -39,11 +39,12 @@ class RZ_Config(object): # - root_path: path to server root - relative paths are converted to absolute # default: current working dir # - user_db_path: user_db path - relative paths are converted to absolute - # - template_d_relpath: root_path relative location of template dir + # - template_d_path: root_path relative location of template dir # - cfg['root_path'] = os.getcwd() + cfg['root_path'] = '.' cfg['user_db_path'] = './user_db.db' - cfg['template_d_relpath'] = 'fragment.d/template.d' + cfg['fragment_d_path'] = '/static/fragment.d' + cfg['template_d_path'] = '/static/fragment.d/template.d' # client configuration cfg['optimized_main'] = False -- cgit v1.3.1