~gilir/+junk/ubiquity-lxdm-autologin

« back to all changes in this revision

Viewing changes to ubiquity/frontend/kde_components/PartitionModel.py

  • Committer: Bazaar Package Importer
  • Author(s): Mario Limonciello, Evan Dandrea, Mario Limonciello, Roman Shtylman
  • Date: 2010-02-21 22:17:26 UTC
  • Revision ID: james.westby@ubuntu.com-20100221221726-e7y2vgur60z1yhz6
Tags: 2.1.23
[ Evan Dandrea ]
* Fix docstrings. They need to be the first statement in a function.
* Fix method call to set_summary_device in the advanced dialog.
  Thanks Roman Shtylman.

[ Mario Limonciello ]
* Fix an UnboundLocalError in oem-config mode related to trusted_db.
* Remove all of the mythbuntu frontend from ubiquity.  Now that it's fully
  stable, it's being moved to the mythbuntu-live-autostart package so that
  it can benefit from being maintained by anyone in ~mythbuntu-dev.
* Automatic update of included source packages: grub-installer
  1.49ubuntu5.

[ Roman Shtylman ]
* Fix for (LP: #424216) KDE ui on small screens
* Fix for (LP: #485322) KDE ui forward/install buttons
* Fix for (LP: #524090) KDE ui gray bar and scaling wallpaper

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
from ubiquity.misc import *
9
9
from ubiquity import i18n
10
10
 
11
 
"""Get the string name in the given lang or a default."""
12
11
def get_string(name, lang=None, prefix=None):
 
12
    """Get the string name in the given lang or a default."""
13
13
    if lang is None and 'LANG' in os.environ:
14
14
        lang = os.environ['LANG']
15
15
    return i18n.get_string(name, lang, prefix)
122
122
        self.parentItem = parent
123
123
        self.itemData = data
124
124
        self.childItems = []
 
125
        self.controller = controller
125
126
        if controller:
126
127
            self.dbfilter = controller.dbfilter
127
128
        else:
229
230
        return 'method' in partition and 'can_activate_format' in partition
230
231
 
231
232
    def partman_column_format_toggled(self, unused_value):
232
 
        #model = user_data
233
 
        #devpart = model[path][0]
234
 
        #partition = model[path][1]
 
233
        if not self.controller.allowed_change_step():
 
234
            return
 
235
        if not isinstance(self.controller.dbfilter, Page):
 
236
            return
235
237
        devpart = self.itemData[0]
236
238
        partition = self.itemData[1]
237
239
        if 'id' not in partition or 'method' not in partition:
238
240
            return
239
 
        self.ubiquity.allow_change_step(False)
240
 
        self.ubiquity.dbfilter.edit_partition(devpart, fmt='dummy')
 
241
        self.controller.allow_change_step(False)
 
242
        self.controller.dbfilter.edit_partition(devpart, fmt='dummy')
241
243
 
242
244
    def partman_column_size(self):
243
245
        partition = self.itemData[1]