Removed some files + added .gitignore
[satega.git] / client.py
blob02aa30d4198b5b5bd4984988db3743b92e74b742
2 # Copyright (C) 2008
3 # Torbjorn Soiland <tosoil@start.no>
4 # Knut Saua Mathiesen <ks.mathiesen@gmail.com>
6 # This file is part of Satega.
8 # Satega is free software: you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation, either version 3 of the License, or
11 # (at your option) any later version.
13 # Satega is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with Satega. If not, see <http://www.gnu.org/licenses/>.
22 import xmlrpclib
24 server = xmlrpclib.ServerProxy("http://localhost:8000")
25 print server.rpc("TestModule", "about")
26 print server.rpc("TestModule", "someMethod")
27 print 'Setting some variabel'
28 server.rpc("TestModule", "setSomeVariable", "Bonjour")
29 print server.rpc("TestModule", "someMethod")