[AG-DEV] AG3 Shared App Migration - EventID

Thomas D. Uram turam at mcs.anl.gov
Wed Aug 30 11:41:21 CDT 2006


Todd:

Before 3.0.2, event.GetSenderId will return the private id of the user,
which changes with each entry into the venue, or join to an application;
with 3.0.2, event.GetSenderId will return the public id of the user.  This
is an inconvenient but necessary change.  If you need to compare
the senderid against the local user's id, I'd suggest you compare
event.GetSenderId against SharedAppClient.eventClient.id, which will
work correctly in either version.

If this suggestion doesn't address the problem you're running into,
let us know.

Tom


On 8/30/06 11:20 AM, Todd Zimmerman wrote:
> hmmm I'm using AccessGrid-3.0.2-1.fc5
>
> Could you tell me what particular file the bug was in - then I'll replace it with the cvs version to
> test.  In the meantime, I'll see if I can get Doug to build me a newer rpm.
>
> Thanks,
>
> Todd
>
> Susanne Lefvert wrote:
>   
>> Hello Todd,
>>
>> Which version of the software are you using? The event.GetSenderId()
>> should return the public id of the sender. We did have a bug in the
>> software that sounds like the problem you are describing, that
>> particular bug was fixed in 3.0.2. If you are running earlier versions
>> of the software, I would recommend updating. 
>>
>> Susanne
>>
>>
>> On Aug 25, 2006, at 6:01 PM, Todd Zimmerman wrote:
>>
>>     
>>> Hi Susanne,
>>>
>>> Thanks for the help!
>>>
>>> One further clarification.  The page you referenced indicates to use
>>> "the new event method
>>> event.GetSenderId() to retrieve the public id of a sender" but this
>>> doesn't seem to be the public Id
>>> of the sender (from the user's profile).
>>>
>>>
>>> Further, it seems to be a connection id of some sort (since it changes
>>> per connection) - but not the
>>> connection id I can grab via the .app file (as described in the
>>> section regarding "Connection ID
>>> needed for the data store").  I grabbed that connection ID and it is
>>> different again from the
>>> connectionId returned by the event.
>>>
>>> I've traced a bit of the code to find out where this was from - but
>>> thought perhaps you would just
>>> know off hand.
>>>
>>> Thanks!
>>>
>>>
>>> Todd
>>>
>>> Susanne Lefvert wrote:
>>>       
>>>> Hello Todd,
>>>>
>>>> This document describes the issues in more detail.  I would recommend
>>>> reading it while looking at the shared presentation code that we already
>>>> converted.
>>>>
>>>> http://www.mcs.anl.gov/fl/research/accessgrid/documentation/MigrationGuides/SharedApplicationsMigrationGuide.htm
>>>>
>>>>
>>>> http://fl-cvs.mcs.anl.gov/viewcvs/viewcvs.cgi/AccessGrid/sharedapps/SharedPresentation/SharedPresentation.py
>>>>
>>>>
>>>> Susanne
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> Just trying to migrate my SharedDesktop shared app to AG3 and seem to be
>>>> running into a couple of
>>>> the issues listed here:
>>>>
>>>> http://www-unix.mcs.anl.gov/fl/research/accessgrid/wiki/moin.cgi/SharedApplicationMigrationIssues
>>>>
>>>>
>>>>
>>>> Can someone expand on some of these issues?  Specifically:
>>>>
>>>>
>>>> * Connection id needed for venue data store - should be retreived via
>>>> .app file.
>>>>
>>>>
>>>>     I think you are just referring to the venue data store - not the
>>>> shared app datastore - correct?
>>>>
>>>>
>>>>
>>>>
>>>> * Reactor imports and wxCallAfter interleave call needed for events to
>>>> function.
>>>>     Figured out this one I think.  Added:
>>>>         try:
>>>>                 from twisted.internet import threadedselectreactor
>>>>                 threadedselectreactor.install()
>>>>         except:
>>>>                 pass
>>>>         from twisted.internet import reactor
>>>>
>>>>     plus the reactor.interleave(wxCallAfter) call in the panel code
>>>>
>>>>
>>>>
>>>>
>>>> * More restrictive rules on data format for events - do not send tuples
>>>> and dictionaries.
>>>>     Running into this issue right now :-(  Was sending a tuple - what
>>>> are my choices now??
>>>>
>>>>
>>>> * Data received from the application service (sharedAppClient.GetData())
>>>> may be unicode - convert
>>>> data to correct type.
>>>>
>>>>     Haven't got the data yet - so can't know if I'll run into this
>>>> issue.  Can someone expand?
>>>>
>>>>
>>>>
>>>> * Get public id of sender by using the new event method; GetSenderId()
>>>>     Expand?
>>>>
>>>>
>>>>
>>>> Thanks!
>>>>
>>>> Todd
>>>>
>>>>         
>
>
>   




More information about the ag-dev mailing list