| Home | Trees | Indices | Help |
|
|---|
|
|
Library for calling REST API methods from other locations.
Status: Stable
|
|||
| String |
|
||
| elementtree.ElementTree |
|
||
| None |
|
||
| Tuple |
|
||
|
|||
| Dictionary |
errcodes = {'SUCCESS': 0, 'NO_SUCH_MACHINE': 1, 'INVALID_COMMAREST error codes. |
||
| Dictionary |
errmsgs = {}REST error messages. |
||
httpcodes = {'OK': 200, 'UNAUTHORIZED': 401, 'FORBIDDEN': 403,
|
|||
httpmsgs = {}
|
|||
|
|||
Return the shellout format of the specified result. Example usage: >>> from enomalism2 import REST_library >>> REST_library.shellout(['test'])
Status: Stable |
Returns a simple XML representation of the input dictionary. Example usage: >>> from enomalism2 import REST_library >>> REST_library.xmlout({'name':'test'})
Status: Stable |
Check if we have entered an endless REST recursion loop. In this case, we raise an exception. Example usage: >>> from enomalism2 import REST_library >>> REST_library.rest_loop_check()
Status: Stable |
Make a REST function call. Example usage: >>> from enomalism2 import REST_library >>> REST_library.call_rest('http://localhost:8080/rest/machine/', [123])
Status: Stable |
|
|||
errcodesREST error codes.
|
httpcodes
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Fri Sep 26 13:59:29 2008 | http://epydoc.sourceforge.net |