Changeset 1175:39f69649ab7c

Show
Ignore:
Timestamp:
05/22/08 18:53:08 (22 months ago)
Author:
Ronny Pfannschmidt <Ronny.Pfannschmidt@…>
Branch:
default
Message:

adapted api changes

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pida/services/project/project.py

    r1174 r1175  
    8686        command = self.get_option('command') 
    8787        if not command: 
    88             self.boss.get_window().error_dlg( 
     88            self.boss.window.error_dlg( 
    8989                _('Controller has no command set') 
    9090            ) 
     
    188188        name = self.name_entry.get_text() 
    189189        if not name: 
    190             self.svc.boss.get_window().error_dlg( 
     190            self.svc.error_dlg( 
    191191                _('Please enter a controller name')) 
    192192            return 
    193193        for controller in self._project.controllers: 
    194194            if controller.config_section == name: 
    195                 self.svc.boss.get_window().error_dlg( 
     195                self.svc.error_dlg( 
    196196                    _('This project already has a controller named %s') % name) 
    197197                return 
     
    205205        controller = self.controllers_list.get_selected() 
    206206        if controller is not None: 
    207             if self.svc.boss.get_window().yesno_dlg( 
     207            if self.svc.yesno_dlg( 
    208208            _('Are you sure you want to delete controller "%s" from this project?') 
    209209            % controller.config_section): 
     
    326326    def on_project_add(self, action): 
    327327        path = open_directory_dialog( 
    328             self.svc.boss.get_window(), 
     328            self.svc.window, 
    329329            _('Select a directory to add') 
    330330        ) 
     
    341341            controller.execute() 
    342342        else: 
    343             self.svc.boss.get_window().error_dlg( 
     343            self.svc.error_dlg( 
    344344                _('This project has no controllers')) 
    345345 
     
    462462                self._save_options() 
    463463                return project 
    464         if self.boss.get_window().yesno_dlg( 
     464        if self.boss.window.yesno_dlg( 
    465465            _('The directory does not contain a project file, ') + 
    466466            _('do you want to create one?') 
     
    521521 
    522522    def remove_project(self, project): 
    523         if self.boss.get_window().yesno_dlg( 
     523        if self.boss.window.yesno_dlg( 
    524524            _('Are you sure you want to remove project "%s" from the workspace?') 
    525525            % project.name