1047
|
|
|
Xavier Antoviaque |
12 years ago
|
|
|
1046
|
|
|
Xavier Antoviaque |
12 years ago
|
|
|
1045
|
|
Refs #942844 #330895 - Web API for plugins & webchat
Disclaimer: The code in this patch is a quick proof of concept, to help feeding the discussion on the Web API. Once a decision is reached, the patch would be cleaned up/completed, and the different components split into specific patches: * Second option for the Web API for plugins, using the RPC interface. * Basic layout of a webchat plugin.
* The plugins can now return two types of objects on their RPC.remote_*() methods: * HTMLResponse(template, context={}), which generates and returns to the client the corresponding HTML code * Other python object, which gets converted to JSON and returned to the client * Deferred, which gets the server to keep the connection open until the deferred returns with one of the two previous possibilities.
* The generated HTML for the list of methods of a given feature is replaced by a JSON list of the available functions
* Added Pollable() class, to allow plugins to use the long-poll technique for communicating with browsers.
* Moved the RPC() class from the plugins module to http.WebRPC, as the class was already Web-specific (.render_GET(), etc.)
|
Xavier Antoviaque |
12 years ago
|
|
|
1044
|
|
|
Xavier Antoviaque |
12 years ago
|
|
|
1043
|
|
|
Max Rabkin |
12 years ago
|
|
|
1042
|
|
|
Max Rabkin |
12 years ago
|
|
|
1041
|
|
|
Stefano Rivera |
12 years ago
|
|
|
1040
|
|
|
Stefano Rivera |
12 years ago
|
|
|
1039
|
|
|
Stefano Rivera |
12 years ago
|
|
|
1038
|
|
|
Jonathan Hitchcock |
12 years ago
|
|
|
1037
|
|
|
Keegan Carruthers-Sm... |
12 years ago
|
|
|
1036
|
|
|
Stefano Rivera |
12 years ago
|
|
|
1035
|
|
|
Stefano Rivera |
12 years ago
|
|
|
1034
|
|
|
Stefano Rivera |
12 years ago
|
|
|
1033
|
|
|
Stefano Rivera |
12 years ago
|
|
|
1032
|
|
|
Stefano Rivera |
12 years ago
|
|
|
1031
|
|
|
Max Rabkin |
12 years ago
|
|
|
1030
|
|
|
Max Rabkin |
12 years ago
|
|
|
1029
|
|
|
Stefano Rivera |
12 years ago
|
|
|
1028
|
|
|
Stefano Rivera |
12 years ago
|
|
|