Changeset 967 for trunk/docs
- Timestamp:
- Dec 18, 2020, 2:13:22 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/docs/services/howtos.rst
r917 r967 27 27 28 28 You'll find here information needed to deploy your own Python Services Provider. 29 30 ZOO-API 31 ******* 32 33 From your python module where you define your services, you can access 34 the ZOO-API by importing the ``zoo`` module. No need to install 35 anything here, the module will be automatically created from the 36 ZOO-Kernel code at runtime. 37 38 The following attributes are available from the ZOO-API : 39 40 SERVICE_SUCCEEDED 41 Value to return in case your service end successfully. 42 SERVICE_FAILED 43 Value to retrun in case of failure. 44 45 46 The following functions are defined in the ZOO-API: 47 48 _(strToTranslate) 49 return the translated string (using the "zoo-service" `textdomain 50 <http://www.gnu.org/software/libc/manual/html_node/Locating-gettext-catalog.html#index-textdomain>`__) 51 52 update_status(dictConf,iPourcent) 53 update the status of the running service 29 54 30 55 Python ZCFG requirements … … 102 127 { 103 128 'variable_name': {'minOccurs': '1', 104 ' DataType': 'string',129 'dataType': 'string', 105 130 'value': 'this_is_the_value', 106 131 'maxOccurs': '1', … … 118 143 119 144 { 120 'result': {' DataType': 'string',145 'result': {'dataType': 'string', 121 146 'inRequest': 'true', 122 147 } … … 157 182 158 183 The ZOO-API for the PHP language is automatically available from your 159 service code. T the following functions are defined in the ZOO-API:184 service code. The following functions are defined in the ZOO-API: 160 185 161 186 int zoo_SERVICE_SUCCEEDED()
Note: See TracChangeset
for help on using the changeset viewer.