great thanks

-uhe

Anfang der weitergeleiteten E-Mail:

> Von: Tres Seaver <tsea...@palladion.com>
> Datum: 16. November 2010 02:38:53 MEZ
> An: Uwe Hentzschel <u...@gmh-systems-ost.de>
> Kopie: repoze-dev <repoze-dev@lists.repoze.org>
> Betreff: Re: [Repoze-dev] Chameleon and multiple select box
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On 11/15/2010 08:29 PM, Uwe Hentzschel wrote:
>> Hi
>> 
>> I create a new project and add a multiple select box in mytemplate.pt.
>> 
>> =============================== %< =====================================
>> 
>>                      </div>
>>              </div>
>>      </div>
>> 
>>    <div>  
>>      <select multiple id="select1">  
>>        <option value="1">Option 1</option>  
>>        <option value="2">Option 2</option>  
>>        <option value="3">Option 3</option>  
>>        <option value="4">Option 4</option>  
>>      </select>  
>>      <a href="#" id="add">add &gt;&gt;</a>  
>>    </div>  
>> 
>> 
>>    <div id="footer">
>>              <div class="footer">© Copyright 2008-2010, Agendaless 
>> Consulting.</div>
>>      </div>
>> 
>> =============================== %< =====================================
>> 
>> But I get an error:
>> 
>> =============================== %< =====================================
>> 
>>  File 
>> "/Users/uhe/develop/pyramid-env/lib/python2.6/site-packages/Chameleon-1.2.13-py2.6.egg/chameleon/core/etree.py",
>>  line 102, in parse
>>    raise xml.parsers.expat.ExpatError(error_msg)
>> RuntimeError: Caught exception rendering template.
>> - Filename:   
>> /Users/uhe/develop/pyramid-env/demo/demo/templates/mytemplate.pt
>> 
>> ExpatError: not well-formed (invalid token): line 77, column 24
>> ----------------------------------------
>> =============================== %< =====================================
> 
> Chameleon requires valid XHTML in templates:  in this case, the
> valueless 'multiple' attribute is the culprit (perfectly valid in HTML,
> but not XML).
> 
> Spell it::
> 
> <select multiple="multiple" id="select1">
> 
> 
> 
> Tres.
> - -- 
> ===================================================================
> Tres Seaver          +1 540-429-0999          tsea...@palladion.com
> Palladion Software   "Excellence by Design"    http://palladion.com
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
> 
> iEYEARECAAYFAkzh4KwACgkQ+gerLs4ltQ7fqQCgpq8q2JSiz4D7+O2y9OQZW0k9
> KbIAni8287Fyvk2z9YRmvEq2eWLrqTRG
> =gNB6
> -----END PGP SIGNATURE-----

_______________________________________________
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev

Reply via email to