Changeset 1358 in products
- Timestamp:
- Nov 3, 2009 4:32:17 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.themetemplate/trunk/quintagroup/themetemplate/__init__.py
r1357 r1358 1 1 # 2 2 import os 3 import warnings 3 4 from paste.script import pluginlib 4 5 5 6 from quintagroup.themetemplate.qplone3_theme import qPlone3Theme 7 8 warned = False 6 9 7 10 def getEggInfo(output_dir): … … 17 20 """ Return file system path to theme vars configurations 18 21 """ 22 global warned 23 old_path = os.path.join(egg_info, 'theme_vars.txt') 24 if os.path.exists(old_path): 25 if not warned: 26 warnings.warn( 27 "In 1.0 version theme variables from <the.theme.package>/theme_vars.cfg " \ 28 "file only will be used. Currently " \ 29 "<the.theme.package>/<the.theme.package>.egg_info/theme_vars.txt " \ 30 "also supported." , DeprecationWarning, 2) 31 warned = True 32 return old_path 19 33 return os.path.join(egg_info, '..', 'theme_vars.cfg')
Note: See TracChangeset
for help on using the changeset viewer.