~ubuntu-branches/ubuntu/karmic/ubuntu-system-service/karmic

« back to all changes in this revision

Viewing changes to test/test_get_proxy

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2008-08-19 11:30:43 UTC
  • Revision ID: james.westby@ubuntu.com-20080819113043-r8si74poyfx63411
Tags: 0.1.5
* support https in "get_proxy()"
* improve the verification for valid proxies
* put the modules under UbuntuSystemService

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/python
 
2
 
 
3
import dbus
 
4
import os
 
5
 
 
6
priv = "com.ubuntu.systemservice.sethttpproxy"
 
7
 
 
8
system_bus = dbus.SystemBus()
 
9
 
 
10
ser = dbus.Interface(system_bus.get_object("com.ubuntu.SystemService","/"),
 
11
                     "com.ubuntu.SystemService")
 
12
 
 
13
print ser.get_proxy("http")
 
14
print ser.get_proxy("https")
 
15
print ser.get_proxy("ftp")