[Bio] / ModelEditor / MeSharedEditServer.py Repository:
ViewVC logotype

Diff of /ModelEditor/MeSharedEditServer.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3, Fri Jan 7 14:40:33 2005 UTC revision 1.4, Sun Dec 4 17:20:34 2005 UTC
# Line 20  Line 20 
20  from threading import Lock  from threading import Lock
21  import xmlrpclib  import xmlrpclib
22  from SimpleXMLRPCServer                import SimpleXMLRPCServer  from SimpleXMLRPCServer                import SimpleXMLRPCServer
23  from KahDataServices.XmlRpcConverter   import XmlRpcConverter  #from KahDataServices.XmlRpcConverter   import XmlRpcConverter
24  from KahDataServices.ConversionManager import ConversionManager  #from KahDataServices.ConversionManager import ConversionManager
25    from KahDataServices.KahPrimitiveConverter import KahPrimitiveConverter
26  from KahUtils.get_local_hostname       import get_local_hostname  from KahUtils.get_local_hostname       import get_local_hostname
27    #from KahOMGen.KahOMDataPrimitiveHandler              import registerAll as registerKahOM
28    #from FoundryInfoGen.FoundryInfoDataPrimitiveHandler  import registerAll as registerFoundryInfo
29    
30    
31  __clipboard      = None  __clipboard      = None
# Line 152  Line 155 
155      # [0] is needed because xmlrpclib.dumps is used      # [0] is needed because xmlrpclib.dumps is used
156      global __server, __clipboard, __nCb, __serverThread, __cbLock      global __server, __clipboard, __nCb, __serverThread, __cbLock
157    
158        mgr = KahPrimitiveConverter( debugPrint = 1)
159    
160      try:      try:
161          print "trying for id ", id          print "trying for id ", id
162          __cbLock.acquire()          __cbLock.acquire()
163          re = __clipboard[id]          re = __clipboard[id]
164          #print "sending re: "          #print "sending re: "
165          #re.dump()          #re.dump()
166          mgr = ConversionManager (XmlRpcConverter(), debug=1)          #mgr = ConversionManager (XmlRpcConverter(), debug=1)
167          c = mgr.output(re)          c = mgr.write(re)
168          #print "rep is ", c          #print "rep is ", c
169          __cbLock.release()          __cbLock.release()
170          cRe = xmlrpclib.dumps((c,))          cRe = xmlrpclib.dumps((c,))

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3