-
chud
What's a quick way to get a list of a contact's resources
-
lovetox
Check the contact module
-
chud
so like how broken is jingle ft
-
chud
im having trouble finding any code that would notify the user of incoming transfer
-
lovetox
No idea didn't look at it for years
-
lovetox
But maybe look into the filezransferdialog
-
jstein
My gajim client shows the date in the chat window in a strange format "Sat 03/30/24" No one should use a 2 digit year anymore. How can I set RFC / ISO date in the chat client? I even would suggest it should be the default.
-
cal0pteryx
jstein: advanced config gives you complete freedom: search for "_format"
-
jstein
cal0pteryx, thank you. That works fine. Only z in %Y-%M-%d %H:%m:%S UTC %z is not interpreted
-
jstein
I expected +02:00
-
cal0pteryx
Hm maybe that specific object is not tz-aware. The next release will have fixes for that
-
lovetox
jstein: it depends on your system settingd
-
lovetox
And UTC is not a valid time formatting
-
lovetox
It's also not clear why you would want a timezone
-
lovetox
I hope you know in what timezone you live
-
jstein
I live in a country, that still hat daylight saving we shift the clocks in stupid way (tomorrow for example) Without timszone you have 02:00 A and 02:00 B
-
lovetox
And?
-
jstein
I want to see the real time
-
lovetox
Because of that one day you show the whole year everywhere your timezone?
-
jstein
yes sure
-
jstein
it does not cost a cent
-
jstein
why do I have a clock, if it is running mad 2 h per year? ;-)
-
lovetox
Hm but I agree it should work
-
jstein
I will check, if I need "UTC" as a string
-
jstein
with " signs
-
lovetox
Why do you need utc
-
jstein
I just like that
-
lovetox
I can't argue with that 😁
-
lovetox
Look into python time formatting
-
jstein
when you travel around the world and your flight tickets are all in local time and try to plan your stop over you learn why it is stupid to drop the timezone
-
lovetox
It would well be that random characters are not supported
-
lovetox
Only separatora
-
jstein
removed UTC. I think %z is ignored in my 1.8.4
-
jstein
Will try with next release again
-
jstein
thanks so far
-
lovetox
But check your system settings
-
Andros
Hi 👋
-
lovetox
jstein, i tested this, and it seems like a bug in gajim
-
lovetox
probably as cal0pteryx said, the object is not timezone aware, so it cant print the timezone because it has none
-
chud
do I understand correctly that gajim gui is un-unit-testable mostly
-
chud
like the chat view specificalyl
-
chud
I tried instantiating it with a bunch of MagicMocks all over the place to no avail
-
chud
also how dead is filetransfer.py? I see it instantiates gtk widgets by hand instead of using a .ui, I guess it must be ancient
-
lovetox
thats mostly a preference thing, there is nothing better to define a gui in a xml file
-
chud
>do I understand correctly that gajim gui is un-unit-testable mostly honestly I am wasting a lot of time repeating the same action by hand trying to get it to work, specifically gui and event stuff. I am spending more time on doing gui than I did on the actual logic!
-
lovetox
we tend to do it, to reduce the code, and its sometimes easier to use a gui editor
-
lovetox
> I am spending more time on doing gui than I did on the actual logic! thats quite normal
-
lovetox
all the super logic does not bring you anything if you dont have a good GUI for it
-
lovetox
also yes GUI in general (if we are not talking about web applications) are basically not unit testable
-
lovetox
or its very much effort at least
-
lovetox
its also very much effort on the web i guess, but as its such a big market, there were solutions developed for it
-
lovetox
and its all using one thing, html, while with native guis there are a lot of different frameworks and no generic way to test it
-
chud
I mocked around CallWindow and only now realize how much time that saved. Honestly infuriating spending more time on drawing a simple goddamn button than on what that button does
-
chud
>no generic way to test it Doesn't have to be generic? The gui just has to be loosely coupled I think. Gtk lets you simulate clicks and stuff
-
chud
Also I'm not sure how this should really be, but gajim's gui seems to be rather "fat" and I'm wondering what the rationale is: like, why handle CallUpdated and work out what that actually meant inside the Window object instead of exposing methods like "tell user we're connect{ing,ed}", "display video with this widget"? Especially given that guis indeed are more likely to be hard to unit test, wouldn't you want to keep the logic there to a minimum and move it to other places?
-
lovetox
we usually do that, non-gui logic is in common
-
lovetox
gui logic is in gtk folder
-
lovetox
the general idea or goal would be that you could start a gajim session without a GUI, headless so to to speak
-
lovetox
i dont understand your remark about CallUpdated, its a event raised by the common module, a gui code can receive it if it subscribes to this event
-
lovetox
thats a usual pattern, i dont understand what you are proposing to replace this with
-
lovetox
or are you saying CallUpdated could be more specific, like CallConnected, CallDisconnected, etc
-
lovetox
but we have code in the test folder that instantiates some windows or widgets, this can help immensely if you test some code.
-
lovetox
but thats not what i call a unit test. A unit test could run on a server in some CI job, without human interaction.
-
lovetox
hooking up a button to the right method is usually not the thing that causes bugs, even if , its noticed fast by users, reported, can be easily described, and is generally something that is fixed very fast
-
lovetox
why a call suddenly is interrupted, because some low level logic in the jingle or network code does not work, is not at all easy to debug, can not be good described, often needs extensive debug logs and much time to find the issue, if at all possible.
-
lovetox
so thats, while it would of course be nice to end 2 end test code with the GUI, i think its not the big game changer