ahayzen | Hey, I'm trying to port the music-app to Ubuntu.Components 1.2 which includes a new MainView (appears as MainView12) however when I run autopilot it comes back with "ValueError: More than one custom proxy class matches this object: Matching classes are: <class 'music_app.MainView12'>,<class 'ubuntuuitoolkit._custom_proxy_objects._mainview.MainView'>." ... what is the best way around this? Settings validate_dbus_object() to return False | 13:37 |
---|---|---|
ahayzen | works but then it won't use my helper if I understand the code correctly :/ | 13:37 |
balloons | afternoon ahayzen | 13:39 |
ahayzen | o/ | 13:39 |
ahayzen | balloons, this is the mp i'm working on https://code.launchpad.net/~ahayzen/music-app/refactor-bump-framework-1504/+merge/258126 (ignore the jenkins failures as that is failing due to it trying to run 15.04 framework on a 14.10 machine) and it will 'pass' locally as it has the return False in it but is this really the right way of doing it? | 13:45 |
balloons | ahayzen, lol, what a hack to disbale validation heh. It's interesting <class 'music_app.MainView12'> exists | 13:47 |
ahayzen | well i made it :) | 13:47 |
ahayzen | MainView12 that is | 13:47 |
balloons | I guess I should look at the full branch | 13:48 |
ahayzen | it doesn't work as it can't find the type if you leave it as MainView so I set my helper to MainView12 but then you hit the duplication issue lol | 13:49 |
ahayzen | hmmm and it partially works by not requesting by type and only by objectName as timp suggested yesterday... | 13:50 |
ahayzen | balloons, doing this seems to 'work' http://pastebin.ubuntu.com/10984596/ but then is that still using my helper? | 13:52 |
ahayzen | seems to be :) balloons i think i solved my own issue :) | 13:54 |
balloons | ahayzen, ahh right.. I didn't get a chance to open the code just yet, but indeed | 13:56 |
ahayzen | balloons, is that the right way to go do you think? by only specifying the objectName ? | 13:56 |
balloons | the versioning issues requiring versioned classnames should be squashed, afaik | 13:56 |
balloons | on the select's, can't you just select the MainView type, no objectname | 13:57 |
balloons | ? | 13:57 |
ahayzen | let me try... | 13:57 |
ahayzen | "autopilot.exceptions.StateNotFoundError: Object not found with name 'MainView'." | 13:57 |
balloons | and selecting MainView12 | 13:58 |
balloons | ? | 13:58 |
ahayzen | then under vis it appears as MainView12 .. hence why i went down that route... | 13:58 |
ahayzen | balloons, and having a MainView12 helper? or a MainView helper? | 13:58 |
balloons | a MainView helper. But it sounds like that bug is still around | 13:58 |
balloons | https://bugs.launchpad.net/autopilot-qt/+bug/1341671 | 13:59 |
ahayzen | "NameError: name 'MainView12' is not defined" | 13:59 |
ubot5 | Ubuntu bug 1341671 in Autopilot Qt Support "Versioned QML classes are not recognized by their public type name" [High,Confirmed] | 13:59 |
ahayzen | and then if the helper is MainView12 you get that duplicate one I said at the start | 13:59 |
ahayzen | yeah seems to be ^^ bug and the ones linked | 14:00 |
balloons | seems elopio_ would say, do it as you did in the paste | 14:00 |
balloons | https://bugs.launchpad.net/autopilot/+bug/1350532 | 14:00 |
ubot5 | Ubuntu bug 1350532 in Autopilot "validate_dbus_object can cause more than one class in the cpo cache" [Undecided,New] | 14:00 |
balloons | use objectname to select it | 14:00 |
ahayzen | ok i'll do that for now then :) thanks balloons | 14:00 |
balloons | ahayzen, however thanks for the heads up on those bugs.. Time to ask veebers and company nicely to take them on :-) | 14:01 |
ahayzen | hehe | 14:01 |
balloons | I thought they had been fixed! | 14:01 |
* ahayzen now tries to figure out the best way to please PEP8 | 14:02 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!