1 When debugging server issues or inspecting the expected results
2 its often useful to run
3 "utils/piston-helpers/piston_generic_helper.py" in debug mode.
6 $ PYTHONPATH=. utils/piston-helpers/piston_generic_helper.py \
7 --output=text --debug --needs-auth \
8 SoftwareCenterAgentAPI subscriptions_for_me
10 $ PYTHONPATH=. utils/piston-helpers/piston_generic_helper.py \
11 --output=text --debug --needs-auth \
12 SoftwareCenterAgentAPI available_apps_qa \
13 '{ "lang" : "en", "series" : "oneiric", "arch" : "i386" }'
15 $ PYTHONPATH=. utils/piston-helpers/piston_generic_helper.py \
16 --output=text --debug \
17 SoftwareCenterAgentAPI available_apps \
18 '{ "lang" : "en", "series" : "oneiric", "arch" : "i386" }'
20 $ PYTHONPATH=. utils/piston-helpers/piston_generic_helper.py \
21 --output=text --debug \
22 SoftwareCenterRecommenderAPI recommend_top
25 Any piston-mini-client API should work, first name is the class
26 second the method to run, optional is a json encoded kwargs string.
28 To get http debug output you can use the environment variable
29 SOFTWARE_CENTER_DEBUG_HTTP=1.