Changeset 1357 in products for quintagroup.themetemplate/trunk/quintagroup/themetemplate/localcommands/subtemplates.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/subtemplates.py
r1005 r1357 8 8 from zopeskel.base import var 9 9 from zopeskel.localcommands import ZopeSkelLocalTemplate 10 11 from quintagroup.themetemplate import getEggInfo 12 from quintagroup.themetemplate import getThemeVarsFP 10 13 from quintagroup.themetemplate.localcommands import QThemeSubTemplate 11 14 … … 156 159 def add_order_tag(self, output_dir, vars, pmarker): 157 160 need_update = True 158 egg_info = pluginlib.find_egg_info_dir(output_dir)159 theme_vars_fp = os.path.join(egg_info, 'theme_vars.txt')160 161 if egg_info andos.path.exists(theme_vars_fp):161 egg_info = getEggInfo(output_dir) 162 theme_vars_fp = getThemeVarsFP(egg_info) 163 164 if os.path.exists(theme_vars_fp): 162 165 config = SafeConfigParser() 163 166 config.read(theme_vars_fp) … … 215 218 def add_hidden_tag(self, output_dir, vars, pmarker): 216 219 add_hidden = True 217 egg_info = pluginlib.find_egg_info_dir(output_dir)218 theme_vars_fp = os.path.join(egg_info, 'theme_vars.txt')219 220 if egg_info andos.path.exists(theme_vars_fp):220 egg_info = getEggInfo(output_dir) 221 theme_vars_fp = getThemeVarsFP(egg_info) 222 223 if os.path.exists(theme_vars_fp): 221 224 config = SafeConfigParser() 222 225 config.read(theme_vars_fp)
Note: See TracChangeset
for help on using the changeset viewer.