/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to olive/checkout.py

  • Committer: Jelmer Vernooij
  • Date: 2006-09-27 20:30:59 UTC
  • mto: (0.12.2 olive)
  • mto: This revision was merged to the branch mainline in revision 83.
  • Revision ID: jelmer@samba.org-20060927203059-85792ae0a81db524
Bunch of small fixes, cleanups and simplifications.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
    """ Display checkout dialog and perform the needed operations. """
34
34
    def __init__(self, path=None):
35
35
        """ Initialize the Checkout dialog. """
36
 
        self.glade = gtk.glade.XML(gladefile, 'window_checkout', 'olive-gtk')
 
36
        self.glade = gtk.glade.XML('window_checkout', 'olive-gtk')
37
37
        
38
38
        self.window = self.glade.get_widget('window_checkout')
39
39
        
70
70
        checkbutton_lightweight = self.glade.get_widget('checkbutton_checkout_lightweight')
71
71
        lightweight = checkbutton_lightweight.get_active()
72
72
        
 
73
        self.comm.set_busy(self.window)
73
74
        try:
74
75
            source = Branch.open(location)
75
76
            
110
111
        except errors.NotBranchError, errmsg:
111
112
            error_dialog(_('Location is not a branch'),
112
113
                                     _('The specified location has to be a branch.'))
 
114
            self.comm.set_busy(self.window, False)
113
115
            return
114
116
        except errors.TargetAlreadyExists, errmsg:
115
117
            error_dialog(_('Target already exists'),
116
118
                                     _('Target directory (%s)\nalready exists. Please select another target.') % errmsg)
 
119
            self.comm.set_busy(self.window, False)
117
120
            return
118
121
        except errors.NonExistingParent, errmsg:
119
122
            error_dialog(_('Non existing parent directory'),
120
123
                                     _("The parent directory (%s)\ndoesn't exist.") % errmsg)
 
124
            self.comm.set_busy(self.window, False)
121
125
            return
122
126
        
123
127
        self.close()