/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/info.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:
25
25
 
26
26
import bzrlib.errors as errors
27
27
 
28
 
from bzrlib.plugins.gtk.dialog import error_dialog
 
28
from dialog import error_dialog
29
29
from guifiles import GLADEFILENAME
30
30
 
31
31
 
108
108
 
109
109
    try:
110
110
        branch = a_bzrdir.open_branch()
111
 
        repository = branch.repository
112
 
        control = a_bzrdir
113
111
        branch.lock_read()
114
112
        try:
115
113
            ret['location'] = info_helper.get_location_info(repository, branch)
144
142
 
145
143
class OliveInfo:
146
144
    """ Display Informations window and perform the needed actions. """
147
 
    def __init__(self, branch):
 
145
    def __init__(self, wt):
148
146
        """ Initialize the Informations window. """
149
147
        self.glade = gtk.glade.XML(GLADEFILENAME, 'window_info', 'olive-gtk')
150
148
        
154
152
        # Check if current location is a branch
155
153
        self.notbranch = False
156
154
        try:
157
 
            self.ret = info(branch.base)
 
155
            self.ret = info(wt.basedir)
158
156
        except errors.NotBranchError:
159
157
            self.notbranch = True
160
158
            return