viestur | aquarius do you have a minute? | 11:41 |
---|---|---|
viestur | can someone halp me with this code: http://paste.ubuntu.com/1076964/ | 13:18 |
viestur | it is ment to upload files to ubuntu-one and share the | 13:18 |
viestur | m | 13:18 |
viestur | and it is working just fine | 13:18 |
viestur | but, I don't understand how do i get the uploading progress information, to display in unity's launcer | 13:19 |
aquarius | viestur, hey | 15:29 |
viestur | hey | 15:29 |
viestur | i got everything working | 15:29 |
viestur | it turned out that there was some mistake when i copied id | 15:29 |
viestur | it | 15:29 |
viestur | i rewrote it with hand and then it worked perfectly fine | 15:29 |
aquarius | excellent | 15:30 |
viestur | but i didn't understand, how do i get the progress of uploading | 15:30 |
viestur | as far as i understood it is something with lambd | 15:31 |
viestur | aquarius, i misunderstood something? | 15:53 |
aquarius | ah, sorry, I was afk | 15:53 |
aquarius | to get upload *progress* you'll need to watch for another signal | 15:54 |
viestur | OK | 15:54 |
viestur | what signal? | 15:54 |
aquarius | I'm not sure; I'm looking in d-feet now to work it out :) | 15:55 |
aquarius | aha, UploadFileProgress | 15:55 |
aquarius | use syncdaemontool.connect_signal("UploadFileProgress", some_function) | 15:56 |
viestur | but how do i use it? | 15:56 |
viestur | ou | 15:56 |
aquarius | and then some_function will get passed progress details | 15:56 |
viestur | thanks :) | 15:56 |
aquarius | you'll have to experiment with it yourself; I've not actually used that signal | 15:56 |
viestur | OK | 15:56 |
viestur | is there som info about in online? | 15:56 |
aquarius | let me have a play with it. | 15:58 |
viestur | OK, thanks :) | 15:59 |
aquarius | OK, we don't seem to fire that signal. | 16:12 |
viestur | you have any idea how to get it? | 16:13 |
aquarius | viestur, So, I don't know how you get upload progress, right now, I'm afraid. I recommend that you ask dobey or ralsina or verterok, who may know. I've tried dbus-monitor'ing /status and we fire UploadStarted and UploadFinished but no UploadFileProgress signals. It is possible that you need to turn it on somehow (so that we don't spend time firing a zillion signals that nobody is listening to), but you'll need one | 16:14 |
aquarius | of the core syncdaemon engineers for that | 16:14 |
aquarius | I believe that the Ubuntu One control panel can do it, so it must *be* doable, but I don't know how, myself, I'm afraid. | 16:14 |
aquarius | dobey may do, as may alecu or ralsina -- however, today's Sunday, so there might not be anyone around... | 16:14 |
viestur | OK | 16:15 |
viestur | do you know in what language is written the ubuntu one client in ubuntu? | 16:15 |
dobey | the control panel doesn't | 16:22 |
dobey | there is no signal for progress of files | 16:22 |
dobey | there are internal events in ubuntuone-syncdaemon, which it uses to set the progress on the u1 launcher | 16:23 |
viestur | but can i use them? | 16:28 |
viestur | dobey? | 16:28 |
dobey | no | 16:28 |
dobey | they are internal events; they are not exposed on dbus | 16:28 |
dobey | well, i *think* there is a way to have sd send all events out as signals on dbus, but it will basically completely flood dbus with signals | 16:29 |
viestur | ou | 16:29 |
dobey | or we might do it anyway | 16:29 |
dobey | there is the /events object path | 16:30 |
aquarius | dobey, ooh, so it just can't be done, then? | 16:30 |
dobey | and there is an Event signal | 16:30 |
viestur | but if it fluds all the dbus, will my app will slow the computer down | 16:30 |
dobey | so maybe you can listen to that and filter | 16:30 |
aquarius | dobey, I didn't try /events. I tried /status, which fires UploadStarted and UPloadFinished, and there is an UploadFileProgress signal in there named by d-feet, but that signal doesn't seem to fire | 16:30 |
dobey | oh, so there are progress signals | 16:31 |
dobey | if there are signals for it, then they should be the things one listens to | 16:31 |
viestur | yes but aquarius said that it didn't work | 16:33 |
viestur | didn't work for me too | 16:33 |
dobey | then file a bug | 16:34 |
dobey | but i am going back to my weekend now :) | 16:34 |
aquarius | dobey, ya, that's what I tried -- I did "dbus-monitor path=/status" and then put a big file in ~/Ubuntu One. I got an UploadStarted and an UploadFinished (and a bunch of ContentMetaQueueChanged and StatusCHanged etc), but no UploadFileProgress | 16:34 |
aquarius | dobey, I merely wondered whether you knew something I don't -- do the progress signals need turning on or something? The ones that the unity launcher button uses are internal signals, huh? | 16:35 |
dobey | no, there is no turning on; yes the launcher progress bar is actually *in* syncdaemon | 16:35 |
viestur | so no progressbar for me ten :D | 16:36 |
viestur | then | 16:36 |
aquarius | viestur, ya. Sorry, then; we do not expose progress updates to external applications | 16:37 |
viestur | aquarius, but isn't there some signal that could return aproximet progress | 16:38 |
aquarius | viestur, it'd be worth filing a bug against ubuntuone-client explaining why you want this, and then the syncdaemon team can decide how best or whether to do it | 16:38 |
dobey | viestur: you can implement it using the appropriate signals which don't currently work, and file a bug, and when it gets fixed, your progress bar will just magically start working | 16:38 |
viestur | like half done, or something? | 16:38 |
aquarius | viestur, there isn't, I'm afraid; we have Started and Finished for uploads and that's it, based on what dobey's saying | 16:38 |
dobey | well there's also the Progress signals | 16:39 |
dobey | which are apparently the thing you want that's "like half done" :) | 16:39 |
viestur | it'd be close enough | 16:39 |
dobey | so please file a bug about them not working | 16:39 |
viestur | yeah but it'll be too late for the app showdown | 16:40 |
dobey | anyway, really going back to the weekend now | 16:40 |
dobey | later | 16:40 |
viestur | thanks :) | 16:40 |
viestur | thank you too aquarius | 16:41 |
viestur | you where a great help :) | 16:41 |
=== m_conley is now known as m_conley_away | ||
=== m_conley_away is now known as m_conley |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!