=== MacSlow is now known as MacSlow|lunch === MacSlow|lunch is now known as MacSlow [16:31] How can I print the QML-type of a proxy-object with AP? [16:32] There are calls like get_children_by_type() but nothing like get_type() or something similar. [17:02] MacSlow, hmm [17:02] using print_tree will print everything of course, including the qml type [17:03] balloons, yeah I know... but that's just too much to deal with in a handy fashion [17:03] * balloons is thinking [17:04] ideally you would avoid using xpath directly [17:04] balloons, a what? "xpath" [17:05] so if you get_properties that doesn't do what you want? [17:05] balloons, sadly not [17:06] balloons, initially I hoped it would spit out the qmlitem-type too... but as far as I can tell that call just dumps real QML-item-properties to stdout [17:06] right, but it doesn't give you th objectpath? [17:07] balloons, nope... here's an example of the output... http://pastebin.ubuntu.com/10327157/ [17:08] balloons, I could try to work-around with get_parent() and get_properties() but that's far from elegant [17:08] MacSlow, yep that certainly works [17:08] I'm curious about get_classname_from_path [17:09] anyways, I suspect it's something worthy of adding support for in autopilot [17:10] balloons, first I've to get the ap-test written... the nice to have's is for people who actually know stuff... which I'm not one of [17:11] the get_parent() work-around got me what I wanted... but *sigh* [17:11] MacSlow, :-) Sure, what did you want it for? [17:11] the idea that you need it, when it seemingly hasn't come up in the past is interesting [17:11] elopio, btw, am I missing something, or is there no way to get the qmltype returned ^^? [17:11] balloons, trying to figure out how to get hold of orientation-related properties of the shell, when unity8 was started with the fake sensors [17:13] hum, it's the class name, isn't it? [17:13] elopio, yes classname [17:14] elopio, I'm just writing up an email with all the info I could gather to ask you and rhuddie about this [17:14] MacSlow: cool, because I don't get what you are trying to do :) [17:14] elopio, I'm might try a few more things still [17:15] elopio, the eMail will make things more clear... hopefully :) [17:15] I think it would be easier enough to add a method for it. The thing is, seeing as no one has ever needed it, I too am wondering why MacSlow does. In theory, you are selecting and always know the qmltype [17:16] balloons, I'm anything but an AP-expert... I'm just the one left do write that particular test :) [17:17] s/do/to [17:20] MacSlow, can you report a bug against autopilot for what you are wanting? [17:22] balloons, well if you folks say it's never come up as a request before, I'm hesitating - as a AP-noob - to spoil the feature request-list with it [17:27] MacSlow, lol, it's worth filling [17:30] balloons, against which lp-project? Just plain autopilot? [17:30] https://bugs.launchpad.net/autopilot/+filebug [17:33] balloons, https://bugs.launchpad.net/autopilot/+bug/1423988 [17:33] Launchpad bug 1423988 in Autopilot "Add a get_qml_type() to autopilot.introspection" [Wishlist,New] [17:33] balloons, too brief? [17:35] MacSlow, another sentence would be useful in the description. You want to be able to say proxy_object.get_qml_type().. However, it should be generalized.. so perhaps get_type_name [17:35] you can leave it as-is; let the ap guys decide implementation of generic or not [17:36] ok