Package turbogears :: Package widgets :: Module base :: Class CSSSource

Class CSSSource

source code

object --+            
         |            
    Widget --+        
             |        
      Resource --+    
                 |    
            Source --+
                     |
                    CSSSource

A CSS source snippet.

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

Inherited from Source: __eq__, __hash__, __init__

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

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

Class Variables
  template = ...
hash(x)
  params = ["media"]
  params_doc = {'src': 'The CSS source for the link', 'media': '...
  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:
"""
    <style type="text/css" media="$media">$src</style>
    """

params_doc

Value:
{'src': 'The CSS source for the link', 'media': 'Specify the media the\
 css source link is for'}