Hello Tom, Thanks for the info. However, I still have problems with setting data other than strings. I'm just doing this:
tdata = 123 sharedAppClient.SetData("dataname",tdata) It raises an exception when tdata is of a type other than string. Below is the log from different tests, first with tdata=123, then tdata=[123] and finally tdata="123". ====================================================================== 08/04/04 17:18:46 2724 Toolkit toolkit.py:79 DEBUG Initializing AG Toolkit version 2.2 08/04/04 17:18:48 2724 EventClient eventclient.py:166 DEBUG Have callback handle _685ee500_p_callbackStruct 08/04/04 17:18:52 2724 Tests sharedappclient.py:222 ERROR SharedAppClient.SetData: Failed to set data, key: dataname, value: 123 Traceback (most recent call last): File "C:\Python23\Lib\site-packages\AccessGrid\SharedAppClient.py", line 218, in SetData self.__appProxy.SetData(self.__privateId, dataKey, dataValue) File "C:\software\AccessGrid\build\dist-20040601_225453\Lib\site-packages\AccessGrid\SharedApplication.py", line 565, in SetData File "C:\software\AccessGrid\build\dist-20040601_225453\Lib\site-packages\SOAPpy\Client.py", line 453, in __call__ File "C:\software\AccessGrid\build\dist-20040601_225453\Lib\site-packages\SOAPpy\Client.py", line 475, in __r_call File "C:\software\AccessGrid\build\dist-20040601_225453\Lib\site-packages\SOAPpy\Client.py", line 389, in __call faultType: <Fault SOAP-ENV:Server: Method Failed: Venues:default:apps:000000fe2be22977008400f600820021ee7:SetData> 08/04/04 17:20:57 3196 Toolkit toolkit.py:79 DEBUG Initializing AG Toolkit version 2.2 08/04/04 17:20:58 3196 EventClient eventclient.py:166 DEBUG Have callback handle _5854e500_p_callbackStruct 08/04/04 17:21:02 3196 Tests sharedappclient.py:222 ERROR SharedAppClient.SetData: Failed to set data, key: dataname, value: [123] Traceback (most recent call last): File "C:\Python23\Lib\site-packages\AccessGrid\SharedAppClient.py", line 218, in SetData self.__appProxy.SetData(self.__privateId, dataKey, dataValue) File "C:\software\AccessGrid\build\dist-20040601_225453\Lib\site-packages\AccessGrid\SharedApplication.py", line 565, in SetData File "C:\software\AccessGrid\build\dist-20040601_225453\Lib\site-packages\SOAPpy\Client.py", line 453, in __call__ File "C:\software\AccessGrid\build\dist-20040601_225453\Lib\site-packages\SOAPpy\Client.py", line 475, in __r_call File "C:\software\AccessGrid\build\dist-20040601_225453\Lib\site-packages\SOAPpy\Client.py", line 389, in __call faultType: <Fault SOAP-ENV:Server: Method Failed: Venues:default:apps:000000fe2be426ca008400f600820021670:SetData> 08/04/04 17:22:22 2456 Toolkit toolkit.py:79 DEBUG Initializing AG Toolkit version 2.2 08/04/04 17:22:23 2456 EventClient eventclient.py:166 DEBUG Have callback handle _5854e500_p_callbackStruct 08/04/04 17:22:28 2444 EventClient eventclient.py:183 DEBUG Got read handle=_7894e300_p_globus_io_handle_t result=(0, None, None) n=4 08/04/04 17:22:28 2444 EventClient eventclient.py:236 DEBUG Freeing callback _5854e500_p_callbackStruct within callback 08/04/04 17:22:28 2444 EventClient eventclient.py:245 DEBUG Have new callback handle _5854e500_p_callbackStruct 08/04/04 17:22:28 2444 EventClient eventclient.py:183 DEBUG Got read handle=_7894e300_p_globus_io_handle_t result=(0, None, None) n=310 08/04/04 17:22:28 2444 EventClient eventclient.py:225 DEBUG finally read enough data, wait=310 buflen=310 08/04/04 17:22:28 2444 EventClient eventclient.py:260 DEBUG Invoking callback <bound method SharedAppClient.HandleEvent of <AccessGrid.SharedAppClient.SharedAppClient instance at 0x01285C38>>... 08/04/04 17:22:28 2444 EventClient eventclient.py:266 DEBUG Invoking callback <bound method SharedAppClient.HandleEvent of <AccessGrid.SharedAppClient.SharedAppClient instance at 0x01285C38>>...done 08/04/04 17:22:28 2444 EventClient eventclient.py:268 INFO No callback for Set application data! 08/04/04 17:22:28 2444 EventClient eventclient.py:327 INFO Got callback for Set application data event! 08/04/04 17:22:28 2444 EventClient eventclient.py:231 DEBUG handleData returns 08/04/04 17:22:28 2444 EventClient eventclient.py:236 DEBUG Freeing callback _5854e500_p_callbackStruct within callback 08/04/04 17:22:28 2444 EventClient eventclient.py:245 DEBUG Have new callback handle _5854e500_p_callbackStruct 08/04/04 17:22:28 2456 Tests test.py:65 DEBUG got data: '123' 08/04/04 17:22:28 2456 Tests test.py:66 DEBUG end ================================================================================ Thomas D. Uram wrote: > > > Dioselin Gonzalez wrote: > >> Hello, I'm writing shared applications and have a few questions, I >> apologize in advance if they sound crazy :) >> >> 1. Can we store data of type other than string in the venue? Like >> integers, lists, etc. I see 'sharedAppClient.SetData("dataname", >> 123)' raises an exception because the data value is not string. > > > You should be able to set (almost) any type of data you want. I just > tried with ints, lists, and dicts and did not get an exception. Could > you send more info? >