=== MacSlow is now known as MacSlow|lunch | ||
=== MacSlow|lunch is now known as MacSlow | ||
MacSlow | How can I print the QML-type of a proxy-object with AP? | 16:31 |
---|---|---|
MacSlow | There are calls like get_children_by_type() but nothing like get_type() or something similar. | 16:32 |
balloons | MacSlow, hmm | 17:02 |
balloons | using print_tree will print everything of course, including the qml type | 17:02 |
MacSlow | balloons, yeah I know... but that's just too much to deal with in a handy fashion | 17:03 |
* balloons is thinking | 17:03 | |
balloons | ideally you would avoid using xpath directly | 17:04 |
MacSlow | balloons, a what? "xpath" | 17:04 |
balloons | so if you get_properties that doesn't do what you want? | 17:05 |
MacSlow | balloons, sadly not | 17:05 |
MacSlow | 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 |
balloons | right, but it doesn't give you th objectpath? | 17:06 |
MacSlow | balloons, nope... here's an example of the output... http://pastebin.ubuntu.com/10327157/ | 17:07 |
MacSlow | balloons, I could try to work-around with get_parent() and get_properties() but that's far from elegant | 17:08 |
balloons | MacSlow, yep that certainly works | 17:08 |
balloons | I'm curious about get_classname_from_path | 17:08 |
balloons | anyways, I suspect it's something worthy of adding support for in autopilot | 17:09 |
MacSlow | 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:10 |
MacSlow | the get_parent() work-around got me what I wanted... but *sigh* | 17:11 |
balloons | MacSlow, :-) Sure, what did you want it for? | 17:11 |
balloons | the idea that you need it, when it seemingly hasn't come up in the past is interesting | 17:11 |
balloons | elopio, btw, am I missing something, or is there no way to get the qmltype returned ^^? | 17:11 |
MacSlow | 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:11 |
elopio | hum, it's the class name, isn't it? | 17:13 |
balloons | elopio, yes classname | 17:13 |
MacSlow | elopio, I'm just writing up an email with all the info I could gather to ask you and rhuddie about this | 17:14 |
elopio | MacSlow: cool, because I don't get what you are trying to do :) | 17:14 |
MacSlow | elopio, I'm might try a few more things still | 17:14 |
MacSlow | elopio, the eMail will make things more clear... hopefully :) | 17:15 |
balloons | 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:15 |
MacSlow | balloons, I'm anything but an AP-expert... I'm just the one left do write that particular test :) | 17:16 |
MacSlow | s/do/to | 17:17 |
balloons | MacSlow, can you report a bug against autopilot for what you are wanting? | 17:20 |
MacSlow | 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:22 |
balloons | MacSlow, lol, it's worth filling | 17:27 |
MacSlow | balloons, against which lp-project? Just plain autopilot? | 17:30 |
balloons | https://bugs.launchpad.net/autopilot/+filebug | 17:30 |
MacSlow | balloons, https://bugs.launchpad.net/autopilot/+bug/1423988 | 17:33 |
ubot5 | Launchpad bug 1423988 in Autopilot "Add a get_qml_type() to autopilot.introspection" [Wishlist,New] | 17:33 |
MacSlow | balloons, too brief? | 17:33 |
balloons | 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 |
balloons | you can leave it as-is; let the ap guys decide implementation of generic or not | 17:35 |
MacSlow | ok | 17:36 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!