Package turbogears :: Package widgets :: Module base :: Class CSSLink

Class CSSLink

source code

object --+            
         |            
    Widget --+        
             |        
      Resource --+    
                 |    
              Link --+
                     |
                    CSSLink

A CSS link.

Nested Classes

Inherited from Widget: __metaclass__

Instance Methods
 
retrieve_css(self)
Return the needed CSS resources.
source code

Inherited from Link: __eq__, __hash__, __init__, update_params

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

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

Class Variables
  template = '\n <link rel="stylesheet"\n type="text/c...
hash(x)
  params = ['media', 'order']
  params_doc = {'media': 'Specify the media attribute for the CS...
  media = "all"
  engine_name = 'genshi'
hash(x)
  template_c = <MarkupTemplate "None">

Inherited from Resource: order

Inherited from Widget: css, default, javascript, name

Properties

Inherited from Widget: is_named

Inherited from object: __class__

Method Details

retrieve_css(self)

source code 

Return the needed CSS resources.

Return a setlike instance with all the CSSLinks and CSSSources the widget needs.

Overrides: Widget.retrieve_css
(inherited documentation)

Class Variable Details

template

hash(x)

Value:
'''
    <link rel="stylesheet"
        type="text/css"
        href="$link"
        media="$media"
    />
    '''

params_doc

Value:
{'media': 'Specify the media attribute for the CSS link tag',
 'order': 'JS and CSS are sorted in this \'order\' at render time'}