Package turbogears :: Package widgets :: Module big_widgets :: Class URLLink

Class URLLink

source code

   object --+            
            |            
  base.Widget --+        
                |        
forms.InputWidget --+    
                    |    
      forms.FormField --+
                        |
                       URLLink

Hyperlink

Instance Methods

Inherited from forms.FormField: __init__, field_id, is_required, update_params

Inherited from forms.InputWidget: adjust_value, display, error, fq_name, is_validated, name_path, path, render

Inherited from base.Widget: __call__, __repr__, __setattr__, is_named, retrieve_css, retrieve_javascript

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

Class Variables
  template = ...
hash(x)
  params = ["target", "text", "link", "attrs"]
  attrs = {}
  params_doc = {'link': 'Hyperlink', 'target': 'Specify where th...

Inherited from forms.FormField: css_classes, field_class, help_text, label, name

Inherited from forms.InputWidget: convert, validator

Inherited from base.Widget: __metaclass__, css, default, engine_name, javascript

Properties

Inherited from object: __class__

Class Variable Details

template

hash(x)

Value:
"""
    <a xmlns:py="http://purl.org/kid/ns#"
       href="$link"
       target="$target"
       py:attrs="attrs"
    >$text</a>
    """

params_doc

Value:
{'link': 'Hyperlink', 'target': 'Specify where the link should be open\
ed', 'text': 'The message to be shown for the link', 'attrs': 'Extra a\
ttributes'}