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

Class URLLink

source code

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

Hyperlink

Nested Classes

Inherited from base.Widget: __metaclass__

Instance Methods

Inherited from forms.FormField: __init__, update_params

Inherited from forms.InputWidget: adjust_value, display, render

Inherited from base.Widget: __call__, __repr__, __setattr__, 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://genshi.edgewall.org/"\n ...
hash(x)
  params = ['target', 'text', 'link', 'attrs', 'field_class', 'c...
  attrs = {}
  params_doc = {'attrs': 'Extra attributes', 'convert': 'Should ...
  engine_name = 'genshi'
hash(x)
  link = <turbogears.widgets.meta.ParamDescriptor object at 0x7f...
  target = <turbogears.widgets.meta.ParamDescriptor object at 0x...
  template_c = <MarkupTemplate "None">
  text = <turbogears.widgets.meta.ParamDescriptor object at 0x7f...

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://genshi.edgewall.org/"
       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 0x7f0d120e2690>

target

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

text

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