On Aug 28, 2007, at 10:41 PM, Diez B. Roggisch wrote:

>
> Alberto Valverde schrieb:
>>
>> On Aug 28, 2007, at 9:06 PM, Diez B. Roggisch wrote:
>>
>>> Ok, I tried the retrieve_javascript-function as well as a simple
>>> javascript-property.
>>>
>>> So my widget looks like this:
>>>
>>> class TagInputWidget(Widget):
>>>
>>>      template = """
>>> <input xmlns="http://www.w3.org/1999/xhtml";
>>>        xmlns:py="http://genshi.edgewall.org/";
>>>        type="text"
>>>        name="name"
>>> />
>>> """
>>>      javascript = [JSSource("""
>>> alert("huhu");
>>> """)]
>>>
>>>
>>>
>>> But this gives me the error
>>>
>>>    File
>>> "/Users/deets/Projects/privat/TurboGears/Versions/TG11/lib/
>>> python2.5/Genshi-0.4.4-py2.5.egg/genshi/input.py",
>>> line 41, in ET
>>>      tag_name = QName(element.tag.lstrip('{'))
>>> AttributeError: 'Stream' object has no attribute 'tag'

Hmm, are javascript and css wrapped with ET in sitetemplate.html?  
They shouldn't be wrapped since TW takes care of adapting output...

Alberto

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Trunk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears-trunk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to