Extend abstract collect classes to allow custom diffraction viewer#1616
Conversation
|
Good idea ! |
|
I also want to include the But maybe it make sense to turn it into a configuration somehow, unless there's a way of accessing |
|
Could that be part of your "collect" configuration and that hardware object ? I mean the code that opens the actual viewer could take care of where to open it ? For the record, I'm not sure that collect is the best place to have this sort of logic, its where it is for the moment. We might consider to move this elsewhere (not sure where at the moment), maybe something to think about as well. Keeping it on "collect" is fine for the time being. |
|
Updating the HWO config is not an option as we have clients connecting from different IP addresses.
We want to avoid having all instances of a diffraction viewer react to this. Basically, can mxcubecore know the IP address of the requesting client? |
|
I see, I think I misunderstood the usage of I think there is some way to launch external applications from browsers, like is done with zoom for instance. This would be a general solution. Otherwise, yes you could figure out from where/who the "call" is coming but this is/can also be infrastructure dependent. The real IP might be hidden by proxies other other mechanisms. |
|
fully agree that it's infra dependent but in our case it would help. |
|
You can try |
a75777e to
355fe24
Compare
|
Ok, i will just keep it as is and try to work something out. Thanks for the input |
355fe24 to
6b4a548
Compare
|
With the usecase that @epanepucci proposed in mind we can forward the unknown client address through the |
|
Just a thought, can you use something like: You would have to make a script Might work if you have Albula installed on the computer running the browser |
|
Working with IP addresses can quickly become quite complicated for doing this sort of thing, but you can try. |
|
I guess this is still DRAFT/WIP ? |
6b4a548 to
dd744dc
Compare
|
I reverted so that it doesn't break mxcube/mxcubeweb#2113 and I can explore alternative solutions to the ip problem in another PR. Sorry for dragging this discussion. |
|
No problem at all @matyson, just wanted to be sure :) |
dd744dc to
6920b3b
Compare
6920b3b to
4713383
Compare
I am adding a
site_diffraction_viewermethod to the AbstractCollect classes in order to extend the display_image call to accept a site specific diffraction viewer implementation. Defaults toadxv_notifyfor compatibility