Changeset 273
- Timestamp:
- 05.11.2008 14:07:36 (3 years ago)
- Location:
- ZMS/trunk
- Files:
-
- 11 edited
-
_cachemanager.py (modified) (1 diff)
-
_confmanager.py (modified) (2 diffs)
-
changes.txt (modified) (1 diff)
-
dtml/ZMS/manage_customize.dtml (modified) (1 diff)
-
dtml/ZMSSqlDb/input_details.dtml (modified) (4 diffs)
-
dtml/javascript/comlib.dtml (modified) (1 diff)
-
dtml/object/f_recordset_grid.dtml (modified) (3 diffs)
-
dtml/object/f_recordset_nav.dtml (modified) (2 diffs)
-
import/tex.conf.zip (modified) (previous)
-
version.txt (modified) (1 diff)
-
zmssqldb.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ZMS/trunk/_cachemanager.py
r121 r273 142 142 # -------------------------------------------------------------------------- 143 143 def fetchReqBuff(self, key, REQUEST, forced=False): 144 if forced or REQUEST.get('URL','/manage').find('/manage') < 0: 144 url = REQUEST.get('URL','/manage') 145 url = url[url.rfind('/'):] 146 if forced or not url.find('/manage') >= 0: 145 147 buff = getReqBuff(self,REQUEST) 146 148 reqBuffId = getReqBuffId(self,key,REQUEST) -
ZMS/trunk/_confmanager.py
r252 r273 435 435 v = self.parseXmlString(self.getXmlHeader() + v) 436 436 self.setConfProperty( k, v) 437 if REQUEST.get('portal_clients'): 438 for portalClient in self.getPortalClients(): 439 portalClient.setConfProperty( k, v) 437 440 except: 438 441 _globals.writeException( self, "[manage_customizeSystem]: can't set conf-property %s=%s"%(str(k),str(v))) … … 443 446 v = REQUEST.get( 'value', '') 444 447 self.setConfProperty( k, v) 448 if REQUEST.get('portal_clients'): 449 for portalClient in self.getPortalClients(): 450 portalClient.setConfProperty( k, v) 445 451 message = self.getZMILangStr('MSG_CHANGED') 446 452 params.append( 'option') -
ZMS/trunk/changes.txt
r267 r273 1023 1023 2008-11-03:zms-2.11.1-12 1024 1024 [01113] Added support for dynamic icons (requested by tf). 1025 -------------------------------------------------- 1025 [01114] Added support for saving system-configuration in portal-clients. 1026 -------------------------------------------------- 1027 2008-11-05:zms-2.11.1-13 1028 [01115] Revised special-object 'TeX' (requested by desy). 1029 -------------------------------------------------- -
ZMS/trunk/dtml/ZMS/manage_customize.dtml
r267 r273 346 346 <dtml-var "getTextInput(fmName='customForm',elName='value',value=getConfProperty(key,item.get('default','')),size=15,enabled=1,REQUEST=REQUEST,css='form-small')"> 347 347 </dtml-if> 348 <dtml-if "getPortalClients()"> 349 <input class="form-checkbox" type="checkbox" name="portal_clients" value="portal_clients"<dtml-if "REQUEST.form.get('portal_clients')"> checked="checked"</dtml-if>> Clients 350 </dtml-if> 348 351 <input class="form-submit" type="submit" name="btn" value="Change"> 349 352 </td> -
ZMS/trunk/dtml/ZMSSqlDb/input_details.dtml
r267 r273 129 129 ><dtml-call "sqlStatement.append( 'ORDER BY sort_id')" 130 130 ></dtml-if 131 ><dtml-try 132 ><dtml-call "REQUEST.set('res',query(' '.join(sqlStatement))['records'])" 133 ><dtml-except 131 ><!-- input_details.dtml.SQL: <dtml-var sqlStatement> --> 132 <dtml-try 133 ><dtml-call "REQUEST.set('res',query(' '.join(sqlStatement))['records'])"> 134 <dtml-except 134 135 ><div class="form-fixed" style="border: 1px solid black; background-color:white;color: red; margin:2px; padding:2px;">SQLException - Can't select records: <dtml-var error_type html_quote>: <dtml-var error_value html_quote><br/><dtml-var error_tb newline_to_br html_quote></div 135 136 ></dtml-try> … … 137 138 <dtml-call "REQUEST.set('rindex',-1)" 138 139 ><dtml-if "REQUEST.get('details_action')=='update'" 139 ><dtml-in resmapping140 ><dtml-in "REQUEST['res']" mapping 140 141 ><dtml-if "_.str(_[primary_key])==_.str(details_rowid)" 141 142 ><dtml-call "REQUEST.set('rindex',_['sequence-index'])" … … 158 159 </dtml-if> 159 160 <dtml-var "f_recordset_grid(_,_ 161 ,res=REQUEST['res'] 160 162 ,grid_url=URL 161 163 ,grid_cols=grid_cols … … 170 172 ><dtml-call "REQUEST.set('details_submit',getZMILangStr('BTN_INSERT'))" 171 173 ><dtml-if "REQUEST.get('details_action')=='update'" 172 ><dtml-in resmapping174 ><dtml-in "REQUEST['res']" mapping 173 175 ><dtml-call "REQUEST.set('row',_['sequence-item'])" 174 176 ><dtml-call f_recordset_init -
ZMS/trunk/dtml/javascript/comlib.dtml
r240 r273 51 51 function highlight_text(text) { 52 52 var exp = ""; 53 for (var i = 0; i < text.length; i++) 54 exp += "(" + text.charAt(i) + "|" + text.toUpperCase().charAt(i) + "|" + text.toLowerCase().charAt(i) + ")"; 53 for (var i = 0; i < text.length; i++) { 54 var ch = text.charAt(i); 55 if ( ch != '*') { 56 exp += "(" + ch + "|" + text.toUpperCase().charAt(i) + "|" + text.toLowerCase().charAt(i) + ")"; 57 } 58 } 55 59 var regexp = new RegExp( "(" + exp + ")", "g"); 56 60 var el = document.getElementsByTagName("body")[0]; -
ZMS/trunk/dtml/object/f_recordset_grid.dtml
r267 r273 1 < dtml-comment>1 <!-- 2 2 ############################################################################### 3 3 ### … … 5 5 ### 6 6 ### @explicit-param grid_url[string] 7 ### @explicit-param grid_cols[list] 7 ### @explicit-param grid_cols[list]: <dtml-var grid_cols> 8 8 ### @implicit-param qsize[int] 9 9 ### @implicit-param qorder[string] 10 10 ### @implicit-param qorderdir[string] desc|asc 11 11 ### @implicit-param qstart[int] 12 ### @implicit-param res[list] 12 ### @implicit-param res[list] <dtml-var "_.len(res)"> 13 13 ### @implicit-param REQUEST[HttpRequest] 14 14 ### 15 15 ############################################################################### 16 </dtml-comment>16 --> 17 17 18 18 <dtml-var f_recordset_nav> … … 23 23 <col width="<dtml-var "_.max( 24 24 _.len(_.filter(lambda x: x in ['insert','export'],grid_options.keys())), 25 _.len(_.filter(lambda x: x in ['delete','sort','update','choose'],grid_options.keys())))*22"> />25 _.len(_.filter(lambda x: x in ['delete','sort','update','choose'],grid_options.keys())))*22">"/> 26 26 </dtml-if> 27 27 <dtml-in grid_cols mapping> -
ZMS/trunk/dtml/object/f_recordset_nav.dtml
r121 r273 1 < dtml-comment>1 <!-- 2 2 ############################################################################### 3 3 ### … … 9 9 ### @implicit-param qorderdir[string] desc|asc 10 10 ### @implicit-param qstart[int] 11 ### @implicit-param res[list] 11 ### @implicit-param res[list]: <dtml-var "_.len(res)"> 12 12 ### @implicit-param REQUEST[HttpRequest] 13 13 ### 14 14 ############################################################################### 15 </dtml-comment>15 --> 16 16 17 17 <dtml-try> -
ZMS/trunk/version.txt
r267 r273 1 ZMS 2.11.1-1 21 ZMS 2.11.1-13 -
ZMS/trunk/zmssqldb.py
r267 r273 526 526 REQUEST.set('grid_cols',[]) 527 527 sqlStatement = REQUEST.get('sqlStatement',[]) 528 if type(sqlStatement) is not list: 529 sqlStatement = [] 528 530 if len(tabledefs) > 0: 529 531 if tablename not in map( lambda x: x['id'], tabledefs):
Note: See TracChangeset
for help on using the changeset viewer.
