This patch show the build number in the name page for first boot (see attached file). It's very useful to test the correct massive flashing for technical team.<br><br>Index: orig/window.py<br>===================================================================<br>
--- orig.orig/window.py<br>+++ orig/window.py<br>@@ -86,7 +86,20 @@ class _NamePage(_Page):<br> orientation=hippo.ORIENTATION_HORIZONTAL,)<br><br> self._intro = intro<br>+ <br>+ if os.path.exists('/boot/olpc_build'):<br>
+ build_no_path = '/boot/olpc_build'<br>+ elif os.path.exists('/etc/fedora-release'):<br>+ build_no_path = '/etc/fedora-release'<br>+ else:<br>+ build_no_path = None <br>
<br>+ if build_no_path:<br>+ fd = open('/etc/fedora-release', 'r')<br>+ build = fd.read().strip()<br>+ fd.close()<br>+ self.insert_build_no(build)<br>+ <br>
label = hippo.CanvasText(text=_('Name:'))<br> self.append(label)<br><br>@@ -102,6 +115,15 @@ class _NamePage(_Page):<br> if gtk.widget_get_default_direction() == gtk.TEXT_DIR_RTL:<br> self.reverse()<br>
<br>+ def insert_build_no(self, build):<br>+ build_box = hippo.CanvasBox(orientation=hippo.ORIENTATION_HORIZONTAL,xalign=hippo.ALIGNMENT_START,yalign=hippo.ALIGNMENT_START)<br>+ label_build = hippo.CanvasText(text=_("Build:"))<br>
+ build_box.append(label_build)<br>+ data_build = hippo.CanvasText(text=' '+build)<br>+ build_box.append(data_build)<br>+ self.append(build_box,hippo.PACK_FIXED)<br>+<br>+<br> def _text_changed_cb(self, entry, pspec):<br>
valid = len(entry.props.text.strip()) > 0<br> self.set_valid(valid)<br><br clear="all"> <div> </div><font face="'times new roman', serif"><br><br></font>