Package turbogears :: Package widgets :: Module rpc :: Class RPC

Class RPC

source code

 object --+    
          |    
base.Widget --+
              |
             RPC
Known Subclasses:

RPC base widget.

Nested Classes

Inherited from base.Widget: __metaclass__

Instance Methods
 
update_params(self, d)
Update the template parameters.
source code
 
get_options(self, d) source code

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

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

Class Variables
  params = ['action', 'update', 'data', 'on_success', 'on_failur...
  javascript = [TGMochiKit(name='widget', charset=None, defer=Fa...
  action = <turbogears.widgets.meta.ParamDescriptor object at 0x...
  after = <turbogears.widgets.meta.ParamDescriptor object at 0x1...
  before = <turbogears.widgets.meta.ParamDescriptor object at 0x...
  confirm = <turbogears.widgets.meta.ParamDescriptor object at 0...
  data = <turbogears.widgets.meta.ParamDescriptor object at 0x1d...
  loaded = <turbogears.widgets.meta.ParamDescriptor object at 0x...
  loading = <turbogears.widgets.meta.ParamDescriptor object at 0...
  on_complete = <turbogears.widgets.meta.ParamDescriptor object ...
  on_failure = <turbogears.widgets.meta.ParamDescriptor object a...
  on_success = <turbogears.widgets.meta.ParamDescriptor object a...
  update = <turbogears.widgets.meta.ParamDescriptor object at 0x...

Inherited from base.Widget: css, default, name, params_doc, template

Properties

Inherited from base.Widget: is_named

Inherited from object: __class__

Method Details

update_params(self, d)

source code 

Update the template parameters.

This method will have the last chance to update the variables sent to the template for the specific request. All parameters listed at class attribute 'params' will be available at the 'params' dict this method receives.

*Must* call super(MyWidget, self).update_params(params) cooperatively, unless, of course, your know what you're doing. Preferably this should be done before any actual work is done in the method.

Overrides: base.Widget.update_params
(inherited documentation)

Class Variable Details

params

Value:
['action',
 'update',
 'data',
 'on_success',
 'on_failure',
 'on_complete',
 'before',
 'after',
...

javascript

Value:
[TGMochiKit(name='widget', charset=None, defer=False, order=0),
 JSLink(name='ajax.js', charset=None, defer=False, order=0)]

action

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

after

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

before

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

confirm

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

data

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

loaded

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

loading

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

on_complete

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

on_failure

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

on_success

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

update

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