Ignore:
Timestamp:
09.03.2010 21:43:48 (2 years ago)
Author:
zmsdev
Message:

Added support for overwriting configuration of $ZMS_HOME/www/themes.zcml by $INSTANCE_HOME/etc/zms/www/themes.zcml

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ZMS/trunk/manage_addzmsform.dtml

    r750 r927  
    154154  <select class="form-element" name="theme:required" onchange="themeChange(this);" onkeyup="themeChange(this);"> 
    155155 
    156     <dtml-in "_.range(99)" reverse> 
     156    <dtml-in "range(99)" reverse> 
    157157     <dtml-let idx=sequence-item> 
    158158      <dtml-try> 
     
    169169     <dtml-call "REQUEST.set('default_img_theme','spacer.gif')"> 
    170170    </dtml-unless> 
    171     <dtml-call "REQUEST.set('themes',misc_.zms['initutil'].http_import('%s/misc_/zms/themes.zcml'%BASE0.replace('https','http')))"> 
     171    <dtml-call "REQUEST.set('themes',None)"> 
     172    <dtml-if "REQUEST.get('themes') is None"><dtml-call "REQUEST.set('themes',misc_.zms['initutil'].import_instance_home(this(),'www/themes.zcml'))"></dtml-if> 
     173    <dtml-if "REQUEST.get('themes') is None"><dtml-call "REQUEST.set('themes',misc_.zms['initutil'].http_import('%s/misc_/zms/themes.zcml'%BASE0.replace('https','http')))"></dtml-if> 
    172174    <dtml-call "REQUEST.set('themes',misc_.zms['initutil'].re_search('source location=\042(.*?)\042/>',themes))"> 
    173175    <dtml-in themes> 
Note: See TracChangeset for help on using the changeset viewer.