Mercurial > MadButterfly
diff inkscape/firefox/testsoap.py @ 274:96aae15527c8
Port all basic scene editor from pyGtk to the firefox
author | wycc |
---|---|
date | Thu, 29 Jan 2009 22:30:46 +0800 |
parents | c39b24036a75 |
children |
line wrap: on
line diff
--- a/inkscape/firefox/testsoap.py Mon Jan 26 01:37:04 2009 +0800 +++ b/inkscape/firefox/testsoap.py Thu Jan 29 22:30:46 2009 +0800 @@ -3,13 +3,19 @@ import sys,os class Inkscape(object): def __init__(self): - self.server = soap.Proxy('http://localhost:19192') + self.server = soap.Proxy('http://localhost:8080') def PUBLISH(self): return self.server.callRemote('PUBLISH') def SCENE(self,n): return self.server.callRemote('SCENE',n) def START(self): return self.server.callRemote('START') + def INSERTKEY(self,layer,n): + return self.server.callRemote('INSERTKEY',layer,n) + def EXTENDSCENE(self,layer,n): + return self.server.callRemote('EXTENDSCENE',layer,n) + def GETDOC(self): + return self.server.callRemote('GETDOC') def quitSession(result): @@ -29,6 +35,12 @@ d = ink.SCENE(sys.argv[2]) elif sys.argv[1] == 'START': d = ink.START() +elif sys.argv[1] == 'INSERTKEY': + d = ink.INSERTKEY(sys.argv[2], sys.argv[3]) +elif sys.argv[1] == 'GETDOC': + d = ink.GETDOC() +elif sys.argv[1] == 'EXTENDSCENE': + d = ink.EXTENDSCENE(sys.argv[2],sys.argv[3]) else: print 'Unknown command %s' % sys.argv[1] sys.exit(-1)