From: Eric C. N. <eri...@us...> - 2002-05-07 12:46:44
|
Update of /cvsroot/recall/corba/src/Ar In directory usw-pr-cvs1:/tmp/cvs-serv20421/src/Ar Modified Files: Storage.py Log Message: snapshot work for jython/jacorb Index: Storage.py =================================================================== RCS file: /cvsroot/recall/corba/src/Ar/Storage.py,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** Storage.py 13 Feb 2002 02:58:00 -0000 1.9 --- Storage.py 7 May 2002 12:46:41 -0000 1.10 *************** *** 5,15 **** from Ar import idl ! from Recall.CorbaUtil import any, extract_any import pickle import string ! import Recall__POA.idl ! class Storage(Recall__POA.idl.Storage): "Storage implementation that stores integers into a dictionary." --- 5,20 ---- from Ar import idl ! from Recall.CorbaUtil import any, extract_any, constant import pickle import string ! try: ! import Recall__POA.idl ! StoragePOA = Recall__POA.idl.Storage ! except ImportError: ! from Recall.idl import StoragePOA ! ! class Storage(StoragePOA): "Storage implementation that stores integers into a dictionary." *************** *** 83,87 **** def test_write(c): ! n = idl.ARRAY_SIZE for i in range(n): req = idl.WriteRequest(n - i, i) --- 88,92 ---- def test_write(c): ! n = constant(idl.ARRAY_SIZE) for i in range(n): req = idl.WriteRequest(n - i, i) *************** *** 89,93 **** def test_read(c): ! n = idl.ARRAY_SIZE for i in range(n): value = c.read(any(n - i)) --- 94,98 ---- def test_read(c): ! n = constant(idl.ARRAY_SIZE) for i in range(n): value = c.read(any(n - i)) |