| Trees | Index | Help |
|
|---|
| Module AjaxStub :: Class AjaxStubDispatch |
|
object --+
|
AjaxStubDispatch
AjaxStub| Method Summary | |
|---|---|
| |
Add new content types to the defaults. (Class method) | |
Dispatch the JavaScript request code, of your choice, plus the stubs to standard out. | |
Send the content type to the client. | |
Print to standard out the results of the requested function or method call. | |
Encode HTML for sending to the client. | |
Encode JSON to send to the client. | |
Encode XML to send to the client. | |
Returns the content type. | |
| Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__repr__() <==> repr(x) | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) | |
| Class Variable Summary | |
|---|---|
str |
HTML = 'HTML'
|
str |
JSON = 'JSON'
|
str |
XML = 'XML'
|
dict |
_AjaxStubDispatch__CONTENT_TYPE = {'XML': 'text/xml', 'J...
|
| Instance Method Details |
|---|
__init__(self,
cType='HTML')
|
dispatchJavascript(self)Dispatch the JavaScript request code, of your choice, plus the stubs to standard out. |
initRequest(self)Send the content type to the client. |
processClientRequest(self)Print to standard out the results of the requested function or method call. |
_encodeHTML(self, data)Encode HTML for sending to the client. We just send the raw data for HTML. NOTE: It is recommended that this feature not be used as it has no way to return errors to the client.
|
_encodeJSON(self, data)Encode JSON to send to the client.
|
_encodeXML(self, data)Encode XML to send to the client.
|
_getContentType(self)Returns the content type.
|
| Class Method Details |
|---|
addContentType(self, typeMap)Add new content types to the defaults.
|
| Class Variable Details |
|---|
HTML
|
JSON
|
XML
|
_AjaxStubDispatch__CONTENT_TYPE
|
| Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Fri Aug 3 23:25:20 2007 | http://epydoc.sf.net |