#2010: Add support for ToscaWidgets `retrieve_resources` to inject JS/CSS
---------------------------------------+------------------------------------
Reporter: alexbodn | Owner: faide
Type: task | Status: new
Priority: high | Milestone: 1.1 beta 2
Component: TurboGears | Version: 1.1 HEAD
Severity: major | Resolution:
Keywords: toscawidgets, needs patch |
---------------------------------------+------------------------------------
Changes (by Chris Arndt):
* keywords: => toscawidgets, needs patch
* summary: toscawidgets deprecated and disabled retrieve_javascript and
retrieve_css => Add support for ToscaWidgets
`retrieve_resources` to inject JS/CSS
* type: defect => task
* severity: blocker => major
Old description:
> however i disagree with the justness of this deprecation, tg should cope
> with that using the new retrieve_resources function, in addition to the
> older ones, still supported in tgwidgets.
>
> the hasattr method should be called to face further changes.
>
> this link explains how to revive the older interface but with the newer
> infrastructure. it may help in understanding the result of
> retrieve_resources:
> http://www.mail-archive.com/turbogears-
> [EMAIL PROTECTED]/msg03207.html
>
> best regards,
> alex
New description:
!ToscaWidgets finally deprecated and disabled the `retrieve_javascript`
and `retrieve_css` methods of widgets. This means that when you use tw
with !TurboGears 1.x, JS/CSS resources will not be injected into the page,
because `turbogears.controllers._process_output` relies on these two
methods.
TG 1.x should cope with the new situation by using the new
`retrieve_resources` function, in addition to the older ones, still
supported in Tg widgets. Additionally, `hasattr` should be used to check
for the presence of either method.
This mailing list thread explains how to revive the older interface but
with the newer infrastructure. It may help in understanding the result of
`retrieve_resources`:
http://www.mail-archive.com/turbogears-
[EMAIL PROTECTED]/msg03207.html
--
Ticket URL: <http://trac.turbogears.org/ticket/2010#comment:1>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "TurboGears Tickets" group.
This group is read-only. No posting by normal members allowed.
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears-tickets?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---