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

Class CSSSource

source code

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

A CSS source snippet.

Nested Classes

Inherited from Widget: __metaclass__

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

Inherited from Source: __eq__, __hash__, __init__

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

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

Class Variables
  template = '\n <style type="text/css" media="$media">$src</...
hash(x)
  params = ['media', 'src', 'order']
  params_doc = {'media': 'Specify the media the css source link ...
  media = "all"
  engine_name = 'genshi'
hash(x)
  template_c = <MarkupTemplate "None">

Inherited from Source: src

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:
'''
    <style type="text/css" media="$media">$src</style>
    '''

params_doc

Value:
{'media': 'Specify the media the css source link is for',
 'order': 'JS and CSS are sorted in this \'order\' at render time',
 'src': 'The CSS source for the link'}