Changeset 1357 in products for quintagroup.themetemplate/trunk/quintagroup/themetemplate/localcommands/__init__.py
- Timestamp:
- Nov 1, 2009 11:07:11 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.themetemplate/trunk/quintagroup/themetemplate/localcommands/__init__.py
r1005 r1357 4 4 import os 5 5 from ConfigParser import SafeConfigParser 6 from paste.script import pluginlib7 6 8 7 from zopeskel.base import var 9 8 from zopeskel.localcommands import ZopeSkelLocalTemplate 9 10 from quintagroup.themetemplate import getEggInfo 11 from quintagroup.themetemplate import getThemeVarsFP 10 12 11 13 class QThemeSubTemplate(ZopeSkelLocalTemplate): … … 58 60 59 61 res = {} 60 egg_info = pluginlib.find_egg_info_dir(output_dir)61 theme_vars_fp = os.path.join(egg_info, 'theme_vars.txt')62 egg_info = getEggInfo(output_dir) 63 theme_vars_fp = getThemeVarsFP(egg_info) 62 64 63 if egg_info andos.path.exists(theme_vars_fp):65 if os.path.exists(theme_vars_fp): 64 66 config = SafeConfigParser() 65 67 config.read(theme_vars_fp) … … 77 79 def add_template_vars(self, output_dir, vars): 78 80 79 egg_info = pluginlib.find_egg_info_dir(output_dir)80 theme_vars_fp = os.path.join(egg_info, 'theme_vars.txt')81 egg_info = getEggInfo(output_dir) 82 theme_vars_fp = getThemeVarsFP(egg_info) 81 83 82 if egg_info andos.path.exists(theme_vars_fp):84 if os.path.exists(theme_vars_fp): 83 85 config = SafeConfigParser() 84 86 config.read(theme_vars_fp)
Note: See TracChangeset
for help on using the changeset viewer.