Package turbogears :: Package widgets :: Module base :: Class Resource

Class Resource

source code

object --+    
         |    
    Widget --+
             |
            Resource
Known Subclasses:

A resource for your widget.

For example, this can be a link to an external JavaScript/CSS file or inline source to include at the template the widget is displayed.

Nested Classes

Inherited from Widget: __metaclass__

Instance Methods

Inherited from Widget: __call__, __init__, __repr__, __setattr__, adjust_value, display, render, retrieve_css, retrieve_javascript, update_params

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __sizeof__, __str__, __subclasshook__

Class Variables
  order = 0
  params = ['order']
  params_doc = {'order': 'JS and CSS are sorted in this \'order\...

Inherited from Widget: css, default, javascript, name, template

Properties

Inherited from Widget: is_named

Inherited from object: __class__

Class Variable Details

params_doc

Value:
{'order': 'JS and CSS are sorted in this \'order\' at render time'}