Changeset 437 for trunk/docs


Ignore:
Timestamp:
Jul 9, 2013, 9:33:56 AM (11 years ago)
Author:
lucadelu
Message:

fix english, thank's to markus neteler

Location:
trunk/docs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/docs/api/zoo-process.txt

    r348 r437  
    44===========
    55
    6 Used to query OGC WPS process defined by its URL and its identifier.  Usefull for chaining localhost process.
     6Used to query OGC WPS process defined by its URL and its identifier.  Useful for chaining localhost process.
    77
    88Properties and Functions       
  • trunk/docs/services/debug.txt

    r406 r437  
    1313----
    1414
    15 Using the web request you can see any problem with the log file of Apache.
     15Using the web request you can see any problem in the log file of Apache.
    1616
    17 On Unix system usually to log file is in ``/var/log/apache2`` and the useful file
    18 is ``error_log``. A simple way to look inside the file is to use ``tail`` command,
     17On Unix system the log file is usually in ``/var/log/apache2`` and the relevant file
     18is ``error_log``. A simple way to read the file is to use the ``tail`` command,
    1919it permits to see the update of the file for each request ::
    2020
    2121  tail -f /var/log/apache2/error_log
    2222
    23 If the log is not so clear you can add some information inside your code. You have to write
    24 in the standard error.
     23If the log is not clear enough you can add some more debug information to your code. You have to write
     24to standard error.
    2525
    2626Python
    2727********
    28 Using Python for example you can do this
     28Using Python, you can for example do this
    2929
    3030.. code-block:: python
     
    3232  import sys
    3333 
    34   #add this line when you want see your message
     34  #add this line when you want see an own message
    3535  sys.stderr.write("My message")
    3636
     
    4040************
    4141
    42 You can user ``alert`` to print a string to the standard error.
     42You can user ``alert`` to print a string to standard error:
    4343
    4444.. code-block:: javascript
    4545
    46   // add this line when you want see your message
     46  // add this line when you want see an own message
    4747  alert('My message')
    4848  // you can debug value of inputs, outputs or conf
    4949  alert(inputs["S"]["value"])
    5050
    51 .. note:: If you try to pass an object it return only ``[object Object]``
     51.. note:: If you try to pass an object it will only return ``[object Object]``
    5252
    5353Command line
     
    5555
    5656It is possible to use the ZOO kernel ``zoo_loader.cgi`` also from command line.
    57 This is really useful to debug in a deeper way your service.
     57This is really useful to debug in a deeper way your service:
    5858
    5959.. code-block:: bash
    6060
    61   # to use it you have to copy test_service.py and HelloPy.zcfg from
     61  # in order to use it you have to copy test_service.py and HelloPy.zcfg from
    6262  # the example services
    6363  ./zoo_loader.cgi "service=wps&version=1.0.0&request=execute&identifier=HelloPy&datainputs=a=your name&responsedocument=Result"
    6464
    65 Using this way you can use standard debug system of the programming language used
    66 in your service.
     65Working this way you can use the standard debug system of the actual programming language used
     66to develop your service.
    6767
    6868GDB
    6969*****
    7070From command line you can use also the command line tool `GDB <http://www.gnu.org/software/gdb/>`_
    71 to debug ``zoo_loader.cgi``, you have to run
     71to debug ``zoo_loader.cgi``, you have to run:
    7272
    7373.. code-block:: bash
     
    7878  run "service=wps&version=1.0.0&request=execute&identifier=HelloPy&datainputs=a=your name&responsedocument=Result"
    7979
    80 At this point you can ask help to the `ZOO mailing list <http://lists.osgeo.org/cgi-bin/mailman/listinfo/zoo-discuss>`_
     80At this point you can ask help at the `ZOO mailing list <http://lists.osgeo.org/cgi-bin/mailman/listinfo/zoo-discuss>`_
    8181copying the result of the command.
    8282
    8383Python
    8484**********
    85 For Python you can use ``pdb``, more info at http://docs.python.org/2/library/pdb.html
     85For Python, you can use ``pdb``, more info at http://docs.python.org/2/library/pdb.html
    8686
    8787.. code-block:: python
     
    8989  import pdb
    9090 
    91   # add this line when you want investigate more in the code
     91  # add this line when you want investigate your code in more detail
    9292  pdb.set_trace()
    9393
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