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

Class CSSLink

source code

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

A CSS link.

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

Inherited from Link: __eq__, __hash__, __init__, update_params

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

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

Class Variables
  template = ...
hash(x)
  params = ["media"]
  params_doc = {'media': 'Specify the media attribute for the cs...
  media = "all"

Inherited from Resource: order

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

Properties

Inherited from object: __class__

Method Details

retrieve_css(self)

source code 

Return the needed CSS ressources.

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'}