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

Class URLLink

source code

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

Hyperlink

Nested Classes
  template_c

Inherited from base.Widget: __metaclass__

Instance Methods

Inherited from forms.FormField: __init__, update_params

Inherited from forms.InputWidget: adjust_value, display

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

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

Class Variables
  template = '\n <a xmlns:py="http://purl.org/kid/ns#"\n ...
hash(x)
  params = ['target', 'text', 'link', 'attrs', 'field_class', 'c...
  attrs = {}
  params_doc = {'attrs': 'Extra attributes', 'convert': 'Should ...
  link = <turbogears.widgets.meta.ParamDescriptor object at 0x1e...
  target = <turbogears.widgets.meta.ParamDescriptor object at 0x...
  text = <turbogears.widgets.meta.ParamDescriptor object at 0x1e...

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

Inherited from forms.InputWidget: convert, validator

Inherited from base.Widget: css, default, javascript

Properties

Inherited from forms.FormField: field_id, is_required, name

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

Inherited from base.Widget: is_named

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

Value:
['target',
 'text',
 'link',
 'attrs',
 'field_class',
 'css_classes',
 'convert']

params_doc

Value:
{'attrs': 'Extra attributes',
 'convert': 'Should the value be coerced by the validator at display?'\
,
 'css_classes': 'List of extra CSS classes for the field',
 'field_class': 'CSS class for the field',
 'link': 'Hyperlink',
 'target': 'Specify where the link should be opened',
 'text': 'The message to be shown for the link'}

link

Value:
<turbogears.widgets.meta.ParamDescriptor object at 0x1e4ae50>

target

Value:
<turbogears.widgets.meta.ParamDescriptor object at 0x1e4ad50>

text

Value:
<turbogears.widgets.meta.ParamDescriptor object at 0x1e4ae10>