Probably you have to investigate into the resources injection
middleware of toscawidgets.

On TW2 resources have a location parameters (bodybottom and so on)
that you can specify to force injection into a specific position. Not
sure about TW1.


On Thu, Jul 19, 2012 at 9:08 AM, alex bodnaru <[email protected]> wrote:
>
> hello alessandro,
>
> thanks for your answer.
>
> i'd personaly like to focus on the second solution, but add_call will enclose
> the code in <script type="text/javascript"> </script> tag.
>
> any way to bypass it?
>
> best regards,
> alex
>
> On 07/18/2012 04:49 PM, Alessandro Molina wrote:
>> The debugbar render_bars method does exactly what you are looking for:
>> https://bitbucket.org/_amol_/tgext.debugbar/src/4d3f497dc3c4/tgext/debugbar/initialize.py#cl-59
>>
>> just register a method like that for @after_render hook.
>>
>> Otherwise you can actually use TW add_call registering resources for 
>> injection.
>>
>> On Wed, Jul 18, 2012 at 11:54 AM, alex bodnaru
>> <[email protected]> wrote:
>>>
>>> hello friends,
>>>
>>> i'd like to ask whether i could append some arbitrary html before end body, 
>>> in
>>> the spirit of add_call.
>>>
>>> the usage is for popup divs that could be injected by widgets.
>>>
>>> thanks in advance,
>>> alex
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups 
>>> "TurboGears" 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?hl=en.
>>>
>>
>
> --
> You received this message because you are subscribed to the Google Groups 
> "TurboGears" 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?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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?hl=en.

Reply via email to