~nataliabidart/software-center/winged-migration

« back to all changes in this revision

Viewing changes to README.debug-server

  • Committer: Michael Vogt
  • Date: 2012-01-31 08:24:04 UTC
  • Revision ID: michael.vogt@ubuntu.com-20120131082404-48wtnjqb7akoe15w
README.debug-server: add another example and how to enable HTTP header debug

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
  '{ "lang" : "en", "series" : "oneiric", "arch" : "i386" }'
14
14
 
15
15
$ PYTHONPATH=. utils/piston-helpers/piston_generic_helper.py \
 
16
  --output=text --debug  \
 
17
  SoftwareCenterAgentAPI available_apps \
 
18
  '{ "lang" : "en", "series" : "oneiric", "arch" : "i386" }'
 
19
 
 
20
 
 
21
$ PYTHONPATH=. utils/piston-helpers/piston_generic_helper.py \
16
22
   --output=text --debug \
17
23
   SoftwareCenterRecommenderAPI recommend_top
18
24
 
19
25
 
20
26
 
21
27
Any piston-mini-client API should work, first name is the class
22
 
second the method to run, optional is a json encoded kwargs string.
 
 
b'\\ No newline at end of file'
 
28
second the method to run, optional is a json encoded kwargs string.
 
29
 
 
30
To get http debug output you can use the environment variable
 
31
SOFTWARE_CENTER_DEBUG_HTTP=1.
 
 
b'\\ No newline at end of file'