Changeset 315 for trunk/docs
- Timestamp:
- Aug 11, 2011, 6:28:42 PM (13 years ago)
- Location:
- trunk/docs/services
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/docs/services/examples.txt
r272 r315 4 4 ================ 5 5 6 :Authors: Nicolas Bozon, Gérald Fenoy, Jeff McKenna 6 7 :Last Updated: $Date$ 7 :Id: $Id$ 8 :Author: $Author$ 9 :HeadURL: $HeadURL$ 8 9 ZOO Services are quite easy to create once you have installed the ZOO Kernel and have 10 chosen code (in the language of your choice) to turn into a ZOO service. Here are some 11 HelloWorlds with links to their corresponding ``.zcfg`` files. 12 13 .. contents:: Table of Contents 14 :depth: 3 15 :backlinks: top 10 16 11 17 GDAL ZOO Service -
trunk/docs/services/howtos.txt
r272 r315 4 4 ========================= 5 5 6 :Authors: Nicolas Bozon, Gérald Fenoy, Jeff McKenna 6 7 :Last Updated: $Date$ 7 :Id: $Id$8 :Author: $Author$9 :HeadURL: $HeadURL$10 8 11 ZOO Services are quiet easy to create once you have install ZOO Kernel and that you have 12 chosen a code to turn into a ZOO service. Here are some HelloWorlds in Python, PHP, Java 13 and JavaScript with link to the correpondant .zcfg files. 9 ZOO Services are quite easy to create once you have installed the ZOO Kernel and have 10 chosen code (in the language of your choice) to turn into a ZOO service. Here are some 11 HelloWorlds in Python, PHP, Java and JavaScript with links to their corresponding 12 ``.zcfg`` files. 13 14 .. contents:: Table of Contents 15 :depth: 3 16 :backlinks: top 14 17 15 18 Python 16 19 ------ 17 20 18 You'll find here information sneeded to deploy your own Python Services Provider.21 You'll find here information needed to deploy your own Python Services Provider. 19 22 20 23 Python ZCFG requirements 21 24 ************************ 22 25 23 For each Services providenby your ZOO Python Services Provider, the ZCFG File24 have to be namedas the Python module function name.26 .. Note:: For each Service provided by your ZOO Python Services Provider, the ZCFG File 27 must be named the same as the Python module function name. 25 28 26 29 The ZCFG file should contain the following : … … 30 33 Python 31 34 serviceProvider 32 the name of the Python module to use as a ZOO Service Provider. For instance, if your33 script, located in the same directory as your ZOO Kernel, was named my_module.pythen34 you should use my_module (the Python module name) asserviceProvider value in ZCFG file.35 The name of the Python module to use as a ZOO Service Provider. For instance, if your 36 script, located in the same directory as your ZOO Kernel, was named ``my_module.py`` then 37 you should use ``my_module`` (the Python module name) for the serviceProvider value in ZCFG file. 35 38 36 39 Python Data Structure used 37 40 ************************** 38 41 39 The Python module's function to be used as a service have to:42 The Python module's function to be used as a service must: 40 43 41 44 - take three arguments : the main configuration, inputs and outputs maps are passed to the 42 Python module as 43 - return an integer : corres opnding to the service status code.45 Python module as dictionaries. 46 - return an integer : corresponding to the service status code. 44 47 45 48 Sample Data Structure 46 49 ********************* 47 50 48 In the following you 51 In the following you'll find a sample argument passed to the Python module's function for 49 52 the two first main configuration file' sections. 50 53 … … 66 69 *********************************** 67 70 68 The following code represent a simple ZOO Python Services Provider which provides only one71 The following code represents a simple ZOO Python Services Provider which provides only one 69 72 Service, the HelloPy one. 70 73 -
trunk/docs/services/index.txt
r272 r315 11 11 introduction 12 12 zcfg-reference 13 howtos14 13 examples -
trunk/docs/services/zcfg-reference.txt
r272 r315 4 4 ========================================= 5 5 6 :Last Updated: $Date$ 7 :Id: $Id$ 8 :Author: $Author$ 9 :HeadURL: $HeadURL$ 6 :Authors: Nicolas Bozon, Gérald Fenoy, Jeff McKenna 7 :Last Updated: $Date$ 10 8 11 9 .. contents:: Table of Contents
Note: See TracChangeset
for help on using the changeset viewer.