/srv/irclogs.ubuntu.com/2015/02/20/#ubuntu-autopilot.txt

=== MacSlow is now known as MacSlow|lunch
=== MacSlow|lunch is now known as MacSlow
MacSlowHow can I print the QML-type of a proxy-object with AP?16:31
MacSlowThere are calls like get_children_by_type() but nothing like get_type() or something similar.16:32
balloonsMacSlow, hmm17:02
balloonsusing print_tree will print everything of course, including the qml type17:02
MacSlowballoons, yeah I know... but that's just too much to deal with in a handy fashion17:03
* balloons is thinking17:03
balloonsideally you would avoid using xpath directly17:04
MacSlowballoons, a what? "xpath"17:04
balloonsso if you get_properties that doesn't do what you want?17:05
MacSlowballoons, sadly not17:05
MacSlowballoons, 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 stdout17:06
balloonsright, but it doesn't give you th objectpath?17:06
MacSlowballoons, nope... here's an example of the output... http://pastebin.ubuntu.com/10327157/17:07
MacSlowballoons, I could try to work-around with get_parent() and get_properties() but that's far from elegant17:08
balloonsMacSlow, yep that certainly works17:08
balloonsI'm curious about get_classname_from_path17:08
balloonsanyways, I suspect it's something worthy of adding support for in autopilot17:09
MacSlowballoons, 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 of17:10
MacSlowthe get_parent() work-around got me what I wanted... but *sigh*17:11
balloonsMacSlow, :-) Sure, what did you want it for?17:11
balloonsthe idea that you need it, when it seemingly hasn't come up in the past is interesting17:11
balloonselopio, btw, am I missing something, or is there no way to get the qmltype returned ^^?17:11
MacSlowballoons, trying to figure out how to get hold of orientation-related properties of the shell, when unity8 was started with the fake sensors17:11
elopiohum, it's the class name, isn't it?17:13
balloonselopio, yes classname17:13
MacSlowelopio, I'm just writing up an email with all the info I could gather to ask you and rhuddie about this17:14
elopioMacSlow: cool, because I don't get what you are trying to do :)17:14
MacSlowelopio, I'm might try a few more things still17:14
MacSlowelopio, the eMail will make things more clear... hopefully :)17:15
balloonsI 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 qmltype17:15
MacSlowballoons, I'm anything but an AP-expert... I'm just the one left do write that particular test :)17:16
MacSlows/do/to17:17
balloonsMacSlow, can you report a bug against autopilot for what you are wanting?17:20
MacSlowballoons, 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 it17:22
balloonsMacSlow, lol, it's worth filling17:27
MacSlowballoons, against which lp-project? Just plain autopilot?17:30
balloonshttps://bugs.launchpad.net/autopilot/+filebug17:30
MacSlowballoons, https://bugs.launchpad.net/autopilot/+bug/142398817:33
ubot5Launchpad bug 1423988 in Autopilot "Add a get_qml_type() to autopilot.introspection" [Wishlist,New]17:33
MacSlowballoons, too brief?17:33
balloonsMacSlow, 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_name17:35
balloonsyou can leave it as-is; let the ap guys decide implementation of generic or not17:35
MacSlowok17:36

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!