Changeset 967 for trunk/docs


Ignore:
Timestamp:
Dec 18, 2020, 2:13:22 PM (4 years ago)
Author:
djay
Message:

Add support for the two inputs / outputs syntaxes discussed in SWG in both the ZOO-Kernel and the HTML basic UI. Update documentation, add a section for the ZOO-API in Python language section. Rename variables in service.c to ease readabiliy.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/docs/services/howtos.rst

    r917 r967  
    2727
    2828You'll find here information needed to deploy your own Python Services Provider.
     29
     30ZOO-API
     31*******
     32
     33From your python module where you define your services, you can access
     34the ZOO-API by importing the ``zoo`` module. No need to install
     35anything here, the module will be automatically created from the
     36ZOO-Kernel code at runtime.
     37
     38The following attributes are available from the ZOO-API :
     39
     40SERVICE_SUCCEEDED
     41    Value to return in case your service end successfully.
     42SERVICE_FAILED
     43    Value to retrun in case of failure.
     44   
     45
     46The 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
     52update_status(dictConf,iPourcent)
     53    update the status of the running service
    2954
    3055Python ZCFG requirements
     
    102127  {
    103128  'variable_name': {'minOccurs': '1',
    104                     'DataType': 'string',
     129                    'dataType': 'string',
    105130                    'value': 'this_is_the_value',
    106131                    'maxOccurs': '1',
     
    118143
    119144  {
    120   'result': {'DataType': 'string',
     145  'result': {'dataType': 'string',
    121146             'inRequest': 'true',
    122147            }
     
    157182
    158183The ZOO-API for the PHP language is automatically available from your
    159 service code. Tthe following functions are defined in the ZOO-API:
     184service code. The following functions are defined in the ZOO-API:
    160185
    161186int zoo_SERVICE_SUCCEEDED()
Note: See TracChangeset for help on using the changeset viewer.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png