Add media descriptions to newforms widgets
|Reported by:||russellm||Owned by:||russellm|
|Has patch:||yes||Needs documentation:||yes|
|Needs tests:||no||Patch needs improvement:||no|
At present, there is no easy way to:
- identify what media is required to display a form
- identify and eliminate any duplicate media requirements, e.g., a base css file required by two different widgets on a form.
It involves adding a meta-class to Widget that processes a 'Media' inner class; this inner class is turned into a 'Media' object. Media objects can be printed (yielding <link> and <script> statements). Media objects can also be added, so media from one widget can be added to another widget, yielding the union of required media.
Change History (8)
comment:1 Changed 9 years ago by russellm
- Needs documentation unset
- Needs tests unset
- Owner changed from adrian to russellm
- Patch needs improvement unset
- Triage Stage changed from Unreviewed to Accepted