[11:41] aquarius do you have a minute? [13:18] can someone halp me with this code: http://paste.ubuntu.com/1076964/ [13:18] it is ment to upload files to ubuntu-one and share the [13:18] m [13:18] and it is working just fine [13:19] but, I don't understand how do i get the uploading progress information, to display in unity's launcer [15:29] viestur, hey [15:29] hey [15:29] i got everything working [15:29] it turned out that there was some mistake when i copied id [15:29] it [15:29] i rewrote it with hand and then it worked perfectly fine [15:30] excellent [15:30] but i didn't understand, how do i get the progress of uploading [15:31] as far as i understood it is something with lambd [15:53] aquarius, i misunderstood something? [15:53] ah, sorry, I was afk [15:54] to get upload *progress* you'll need to watch for another signal [15:54] OK [15:54] what signal? [15:55] I'm not sure; I'm looking in d-feet now to work it out :) [15:55] aha, UploadFileProgress [15:56] use syncdaemontool.connect_signal("UploadFileProgress", some_function) [15:56] but how do i use it? [15:56] ou [15:56] and then some_function will get passed progress details [15:56] thanks :) [15:56] you'll have to experiment with it yourself; I've not actually used that signal [15:56] OK [15:56] is there som info about in online? [15:58] let me have a play with it. [15:59] OK, thanks :) [16:12] OK, we don't seem to fire that signal. [16:13] you have any idea how to get it? [16:14] 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] of the core syncdaemon engineers for that [16:14] 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] dobey may do, as may alecu or ralsina -- however, today's Sunday, so there might not be anyone around... [16:15] OK [16:15] do you know in what language is written the ubuntu one client in ubuntu? [16:22] the control panel doesn't [16:22] there is no signal for progress of files [16:23] there are internal events in ubuntuone-syncdaemon, which it uses to set the progress on the u1 launcher [16:28] but can i use them? [16:28] dobey? [16:28] no [16:28] they are internal events; they are not exposed on dbus [16:29] 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] ou [16:29] or we might do it anyway [16:30] there is the /events object path [16:30] dobey, ooh, so it just can't be done, then? [16:30] and there is an Event signal [16:30] but if it fluds all the dbus, will my app will slow the computer down [16:30] so maybe you can listen to that and filter [16:30] 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:31] oh, so there are progress signals [16:31] if there are signals for it, then they should be the things one listens to [16:33] yes but aquarius said that it didn't work [16:33] didn't work for me too [16:34] then file a bug [16:34] but i am going back to my weekend now :) [16:34] 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:35] 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] no, there is no turning on; yes the launcher progress bar is actually *in* syncdaemon [16:36] so no progressbar for me ten :D [16:36] then [16:37] viestur, ya. Sorry, then; we do not expose progress updates to external applications [16:38] aquarius, but isn't there some signal that could return aproximet progress [16:38] 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] 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] like half done, or something? [16:38] 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:39] well there's also the Progress signals [16:39] which are apparently the thing you want that's "like half done" :) [16:39] it'd be close enough [16:39] so please file a bug about them not working [16:40] yeah but it'll be too late for the app showdown [16:40] anyway, really going back to the weekend now [16:40] later [16:40] thanks :) [16:41] thank you too aquarius [16:41] you where a great help :) === m_conley is now known as m_conley_away === m_conley_away is now known as m_conley