/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/mkdir.py

  • Committer: Jelmer Vernooij
  • Date: 2007-02-01 15:50:40 UTC
  • Revision ID: jelmer@samba.org-20070201155040-3hq4mfbxs99kzazy
add framework for tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 
28
28
import bzrlib.errors as errors
29
29
 
30
 
from olive import gladefile
31
30
from dialog import error_dialog, warning_dialog
 
31
from guifiles import GLADEFILENAME
 
32
 
32
33
 
33
34
class OliveMkdir:
34
35
    """ Display the Make directory dialog and perform the needed actions. """
35
36
    def __init__(self, wt, wtpath):
36
37
        """ Initialize the Make directory dialog. """
37
 
        self.glade = gtk.glade.XML(gladefile, 'window_mkdir', 'olive-gtk')
 
38
        self.glade = gtk.glade.XML(GLADEFILENAME, 'window_mkdir', 'olive-gtk')
38
39
        
39
40
        self.window = self.glade.get_widget('window_mkdir')
40
41
        
52
53
        """ Display the Make directory dialog. """
53
54
        self.window.show_all()
54
55
 
 
56
    @show_bzr_error
55
57
    def mkdir(self, widget):
56
58
        # Get the widgets
57
59
        entry = self.glade.get_widget('entry_mkdir')
76
78
                                 _('Please specify another name to continue.'))
77
79
                else:
78
80
                    raise
79
 
            except errors.NotBranchError:
80
 
                warning_dialog(_('Directory is not in a branch'),
81
 
                               _('You can only create a non-versioned directory.'))
82
81
        else:
83
82
            # Just a simple directory
84
83
            try: