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

Class RPC

source code

 object --+    
          |    
base.Widget --+
              |
             RPC

RPC base widget.

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, is_named, 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 = [mochikit, JSLink(static, 'ajax.js')]

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

Properties

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", "loading", "loaded", "confirm"]