=== mirkobuholzer [n=mirko@c-67-170-232-232.hsd1.ca.comcast.net] has joined #ubuntu-installer === ubuntulog [i=ubuntulo@trider-g7.fabbione.net] has joined #ubuntu-installer === Topic for #ubuntu-installer: Development of d-i and ubiquity in Ubuntu | http://wiki.ubuntu.com/InstallerDevelopment === Topic (#ubuntu-installer): set by cjwatson at Fri Jan 5 15:12:40 2007 === Starting logfile irclogs/ubuntu-installer.log === ubuntulog [i=ubuntulo@ubuntu/bot/ubuntulog] has joined #ubuntu-installer === Topic for #ubuntu-installer: Development of d-i and ubiquity in Ubuntu | http://wiki.ubuntu.com/InstallerDevelopment === Topic (#ubuntu-installer): set by cjwatson at Fri Jan 5 15:12:40 2007 [04:34] (cjwatson/#ubuntu-installer) tepsipakki: you might be interested to hear that I think I've fixed that old pkgsel hand [04:34] (cjwatson/#ubuntu-installer) hang === superm1 [i=malimonc@ubuntu/member/superm1] has joined #ubuntu-installer [04:41] evand, over the weekend i caught some unfortunate ramifications of cjwatson's changes on the mythbuntu files to True/False from "yes"/"no". I just pushed up the resolutions to it. Would you be able to merge them back in? [04:49] superm1: those were my changes [04:49] but I shall take a look momentarily [04:51] oh, i didn't look at the parent for it closely [04:52] well irregardless, i had to make one minor change to filteredcommand.py, but it shouldn't break anything else. [04:54] yes, I'm looking at that now. Why wouldn't you want the data to be UTF-8 encoded? [04:55] blink, please be careful messing with the UTF-8 stuff there :) [04:55] indeed [04:55] that's the product of a lot of tedious bug-fixing related to Kubuntu [04:55] (Qt is insanely picky about encoding) [04:55] well if its bool [04:55] you can't UTF-8 encode it [04:56] superm1: you can only preseed strings [04:56] you should turn it into a string [04:56] snap [04:56] well that was the original thing I had with the "yes"/"no", which was because i thought you could only preseed strings [04:57] internally in python stuff should be True/False [04:57] things appear to work correctly with the bool though [04:57] with that change on filteredcommand.py [04:57] when interacting with debconf, you should turn it into "true"/"false" (debconf booleans) or whatever else is appropriate [04:58] where's this branch? [04:58] one sec i'll grab a link [04:59] here is the LP page: https://code.launchpad.net/~mythbuntu/mythbuntu/ubiquity [05:00] oh, that's right, it's not flagged as a branch of ubiquity so it doesn't show up on code.lp.net/ubiquity [05:00] oh, how do i flag it as a branch of ubiquity? [05:00] superm1: I'd prefer to avoid modifying the core bits of Ubiquity when unnecessary. Changing your code to preseed "true" in the case of True, and "false" in the case of False should be relatively straightforward anyway. [05:01] will debconf convert a string that is "true" to a boolean True then? [05:01] btw, you should make your own changes in separate commits to merges [05:01] browsing history is painful when you violate that rule [05:02] i'll make sure to do that in the future [05:02] I agree with evand - I think that change is a mistake and it's not how the rest of ubiquity does it [05:02] no, debconf won't convert it, frequent idioms are things like value = (db.get("foo/bar") == "true") [05:03] (the confmodule doesn't really know the type, you see) [05:03] right [05:03] and nor does filteredcommand for that matter, at least not without inefficiency [05:03] well is the only reason that boolean types couldn't be preseeded because of that UTF-8 encoding? [05:04] or is there more to that [05:04] there's more to it [05:04] superm1: debconf doesn't understand datatypes, just plain old strings. [05:04] True won't be automatically converted to "true" by anything [05:04] I think I would say rather that there is no mapping from Python data types to debconf data types other than strings. [05:05] other than via strings [05:05] which would explain why there was a difference for True/true by what debconf got [05:05] and since boolean is the only case where there could even really be a convenient mapping, it's not really worth the infrastructure it would take to do it right [05:05] when i thought there was a bool "datatype" [05:06] at the level of language bindings ("confmodules"), type isn't known unless you do another round trip to the debconf frontend to ask it [05:06] all it sees is <-- GET foo/bar --> 0 true [05:06] but foo/bar could be a string for all it knows ... [05:06] or select or whatever [05:07] right. so the type described in a template is only used when you present the user the question [05:07] in order to find out the type you need to do METAGET foo/bar Type [05:07] that makes more sense [05:07] pretty much, yeah [05:08] ubiquity looks up the type when it needs to do "frontend-like" logic [05:08] so for instance in the Partman component it looks up the question type and has default handling for boolean questions that get asked [05:08] (pop up dialog with go back / continue buttons) [05:09] but note that to get the answer back it just does: [05:09] if answer: [05:09] self.preseed(question, 'true') [05:09] else: [05:09] self.preseed(question, 'false') [05:09] which makes more sense for that area [05:09] now, if you want that to be more convenient, I wouldn't object to a preseed_boolean method in filteredcommand [05:09] I think that would probably make sense [05:10] what else would need to be done to enable that preseed_boolean method to work then? [05:10] nothing, just use it [05:10] so instead of the above: [05:10] self.preseed_boolean(question, answer) [05:10] and then the True/False are used and stored to debconf [05:10] would just be a convenience wrapper [05:11] well that's a pretty easy change for me to make then [05:11] it would turn its argument into 'true' or 'false' as appropriate and preseed that [05:11] well to True/False, not 'true'/'false' though [05:11] no] [05:11] that would be wrong [05:12] oh you mean in the wrapper, it should preseed the string 'true' or 'false' [05:12] correct [05:12] gotcha. that sounds like a good consensus to settle upon. [05:12] hrm, the gobuntu community grew from nothing to being more active than plenty of other MLs pretty quickly. [05:13] similarly a value_boolean method would be OK to translate in the other direction, if there's call for it [05:13] i'll ping you guys later tonight or tomorrow when i rework it and test it [05:13] thanks superm1 [05:13] there are no other users for that as yet though [05:14] correction, one other potential user [05:14] (summary.py, the popcon bit) [06:00] wow...so I'm banging my head against a wall trying to figure out why the interface never shows any of the pages when using --automatic mode and testing its interaction with my graceful page skipping work. And then it hits me. I answered all of the questions.