Hi, got a really weird problem here: Error Type: ValueError Error Value: unsupported format character '"' (0x22) at index 45 testing the following python script: ## Script (Python) "create_tabheader" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters=tabs=['tab1','tab2'],activetab=1 ##title= ## # Example code: """ Erzeugt den Tempalte-Code für die Karteikarten, damit wird der HTML-Code übersichtlicher und ist nicht statisch an die Anzahl an Karteikarten gebunden """ # Import a standard function, and get the HTML request and response objects. from Products.PythonScripts.standard import html_quote request = container.REQUEST RESPONSE = request.RESPONSE spsrc = context.getImage('spacer.gif') wsrc = context.getImage('white-border-transp.gif') ysrc = context.getImage('yellow-border-transp.gif') fmtstr = '<tr><td style="background-color:#006699;width:3px"><img src="%s"' %(spsrc) fmtstr += ' style="display:block" width="3" height="3"></td>' fmtstr += '<td style="background-color:#FFFFFF"><table border="0" cellspacing="0" cellpadding="0"><tr>' for i in range(0,len(tabs[:-1])): fmtstr += '<td class="tabborder"><img src="%s" width="3" height="3"' %(spsrc) fmtstr += ' style="display:block"></td> ' fmtstr += '<td style="background-color:#FFFFFF"><img src="%s" ' %(context.getImage('border-begin.gif')) fmtstr += ' width="3" height="3" style="display:block;width:2em;"></td></tr><tr> ' lastelem = len(tabs)-1 for i in range(0,lastelem-1): if i == activetab: fmtstr += '<td class="headernamewhite"><a class="Karteikarte" ' fmtstr += ' href="index_html?activetab=%d">%s</a></td>' %(i,tabs[i]) else: fmtstr += ' <td class="headernameyellow"><a class="Karteikarte"' fmtstr += ' href="index_html?activetab=%d">%s</a></td>' %(i,tabs[i]) if i+1 == activetab: fmtstr += '<td class="headerborderwhite"><img ' else: fmtstr += '<td class="headerborderyellow"><img' if i == activetab: fmtstr += ' src="%s"' %(wsrc) else: fmtstr += ' src="%s"' %(ysrc) fmtstr += ' style="display:block; width:2em; height:2em;" width="10" height="10"></td>' if activetab == lastelem: fmtstr += '<td class="headernamewhite"><a class="Karteikarte" ' isrc = wsrc else: fmtstr += '<td class="headernameyellow"><a class="Karteikarte" ' isrc = ysrc fmtstr += ' href="index_html?activetab=%d">%s</a></td>' %(lastelem,tabs[lastelem]) fmtstr += '<td class="headerborderwhite"><img src="%s" ' %(isrc) fmtstr += ' width="10" height="10" style="display:block;width:2em;height:2em"></td></tr></table></td>' fmtstr += '<td style="background-color:#FFFFFF;width:95%"><img src="%s"' %(spsrc) fmtstr += ' width="3" height="3"></td></tr>' return fmtstr The error is because of the last %(spsrc) on the third-last code-line and I don't understand why it doesn't work there?? Andreas -- You are so boring that when I see you my feet go to sleep.