Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #462 (closed enhancement: wontfix)

Opened 13 years ago

Last modified 12 years ago

[PATCH][TEST] allow css and js attributes to be retreive for non Widget

Reported by: David Bernard <dwayne@…> Owned by: anonymous
Priority: normal Milestone: 0.9
Component: TurboGears Version:
Severity: normal Keywords:
Cc:

Description

To allow turbogears to expose css and js into (head and body) for object with css an js attribute but that don't inherite from turbogears.widgets.Widget

Attachments

retrieve_js_and_css.patch Download (5.6 KB) - added by David Bernard <dwayne@…> 13 years ago.

Change History

Changed 13 years ago by David Bernard <dwayne@…>

comment:1 Changed 13 years ago by kevin

  • Status changed from new to closed
  • Resolution set to wontfix

This is too dangerous and magical. I do understand that, in general, in Python it's a good idea to check for the features you want in an object rather than the actual type (duck typing). But, the dictionary of values that comes in could have anything in it and I don't want to make assumptions about what we'd find in a "js" or "css" attribute.

Note: See TracTickets for help on using tickets.