"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "examples/devel/xmlrpc01.py" between
pymol-v1.8.6.0.tar.bz2 and pymol-v2.1.0.tar.bz2

About: PyMOL is a Python-enhanced molecular graphics tool. It excels at 3D visualization of proteins, small molecules, density, surfaces, and trajectories. It also includes molecular editing, ray tracing, and movies. Open Source version.

xmlrpc01.py  (pymol-v1.8.6.0.tar.bz2):xmlrpc01.py  (pymol-v2.1.0.tar.bz2)
skipping to change at line 25 skipping to change at line 25
0.5000 0.5000 0.5000 C 0 0 0 0 0 0.5000 0.5000 0.5000 C 0 0 0 0 0
-0.5000 -0.5000 0.5000 C 0 0 0 0 0 -0.5000 -0.5000 0.5000 C 0 0 0 0 0
-0.5000 0.5000 -0.5000 C 0 0 0 0 0 -0.5000 0.5000 -0.5000 C 0 0 0 0 0
0.5000 -0.5000 -0.5000 C 0 0 0 0 0 0.5000 -0.5000 -0.5000 C 0 0 0 0 0
1 2 1 0 0 0 1 2 1 0 0 0
1 3 1 0 0 0 1 3 1 0 0 0
1 4 1 0 0 0 1 4 1 0 0 0
1 5 1 0 0 0 1 5 1 0 0 0
M END M END
""" """
import sys,xmlrpclib,tempfile,os import sys,tempfile,os
try:
import xmlrpclib
except ImportError:
import xmlrpc.client as xmlrpclib
fName = tempfile.mktemp('.mol') fName = tempfile.mktemp('.mol')
open(fName,'w+').write(molData) open(fName,'w+').write(molData)
port = 9123 port = 9123
if len(sys.argv)>1: if len(sys.argv)>1:
port = int(sys.argv[1]) port = int(sys.argv[1])
s = xmlrpclib.Server('http://localhost:%d'%(port)) s = xmlrpclib.Server('http://localhost:%d'%(port))
s.do('delete fooby') s.do('delete fooby')
s.do('delete fooby-o') s.do('delete fooby-o')
 End of changes. 1 change blocks. 
1 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)