Changeset 930


Ignore:
Timestamp:
10.03.2010 18:53:13 (2 years ago)
Author:
zmsdev
Message:

Added support for overwriting configuration

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ZMS/trunk/manage_addzmsform.dtml

    r929 r930  
    152152 <td><div class="form-text">Theme</div></td> 
    153153 <td> 
     154 
     155  <dtml-call "REQUEST.set('themes',None)"> 
     156  <dtml-if "REQUEST.get('themes') is None"><dtml-call "REQUEST.set('themes',misc_.zms['initutil'].import_instance_home(this(),'www/themes.zcml'))"></dtml-if> 
     157  <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> 
     158  <dtml-if "REQUEST.get('themes') is not None"><dtml-call "REQUEST.set('themes',misc_.zms['initutil'].re_sub('<!--(.|\s)*?-->','',themes))"></dtml-if> 
     159  <dtml-call "REQUEST.set('themes',misc_.zms['initutil'].re_search('source location=\042(.*?)\042/>',themes))"> 
    154160  <select class="form-element" name="theme:required" onchange="themeChange(this);" onkeyup="themeChange(this);"> 
    155161 
     
    169175     <dtml-call "REQUEST.set('default_img_theme','spacer.gif')"> 
    170176    </dtml-unless> 
    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> 
    174     <dtml-if "REQUEST.get('themes') is None"><dtml-call "REQUEST.set('themes',misc_.zms['initutil'].re_sub('<!--(.*?)-->','',themes))"></dtml-if> 
    175     <dtml-call "REQUEST.set('themes',misc_.zms['initutil'].re_search('source location=\042([.\\s]*?)\042/>',themes))"> 
    176177    <dtml-in themes> 
    177178     <dtml-let theme=sequence-item> 
Note: See TracChangeset for help on using the changeset viewer.