/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: Szilveszter Farkas (Phanatic)
  • Date: 2007-04-06 17:48:23 UTC
  • mto: (188.2.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 190.
  • Revision ID: szilveszter.farkas@gmail.com-20070406174823-bclt7vsgn2nkcas2
Implemented init functionality.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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