Package turbofeeds :: Module widgets :: Class FeedHeadLinks
[hide private]

Class FeedHeadLinks

source code

                    object --+        
                             |        
turbogears.widgets.base.Widget --+    
                                 |    
                         FeedLinks --+
                                     |
                                    FeedHeadLinks

One or more LINK elements to advertise feeds in the HTML header.

The value passed to the widget contructor or display method will be the text in the LINK element's title attribute. The value may use the "%(type)s" placeholder for the feed format name.

Nested Classes [hide private]
  template_c

Inherited from turbogears.widgets.base.Widget: __metaclass__

Instance Methods [hide private]

Inherited from FeedLinks: feed_url, update_params

Inherited from turbogears.widgets.base.Widget: __call__, __init__, __repr__, __setattr__, adjust_value, display, render, retrieve_css, retrieve_javascript

Inherited from turbogears.widgets.base.Widget (private): _get_is_named

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

Class Variables [hide private]
  template = '<div xmlns:py="http://purl.org/kid/ns#" py:strip="...

Inherited from FeedLinks: base_url, controller, css, feed_types, mimetypes, params, params_doc, title, url_params

Inherited from turbogears.widgets.base.Widget: default, javascript, name

Inherited from turbogears.widgets.base.Widget (private): _locked

Properties [hide private]

Inherited from turbogears.widgets.base.Widget: is_named

Inherited from object: __class__

Class Variable Details [hide private]

template

Value:
'''<div xmlns:py="http://purl.org/kid/ns#" py:strip="">
    <link rel="alternate" type="${mimetypes[type]}" href="${feed_url(t\
ype)}"
      py:attrs="dict(title=value % dict(type=name))" py:for="type, nam\
e in feed_types" />
</div>
'''