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

  • Committer: Jelmer Vernooij
  • Date: 2007-02-03 10:25:09 UTC
  • Revision ID: jelmer@samba.org-20070203102509-im0cna70r892xzse
Move some files to the top-level directory, add first test.

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
 
75
75
def set_ui_factory():
76
76
    pygtk = import_pygtk()
77
 
    from olive.ui import GtkUIFactory
 
77
    from ui import GtkUIFactory
78
78
    import bzrlib.ui
79
79
    bzrlib.ui.ui_factory = GtkUIFactory()
80
80
 
92
92
            if str(e) == "could not open display":
93
93
                raise NoDisplayError
94
94
 
95
 
        from bzrlib.plugins.gtk.olive.branch import BranchDialog
 
95
        from bzrlib.plugins.gtk.branch import BranchDialog
96
96
 
97
97
        set_ui_factory()
98
98
        dialog = BranchDialog(os.path.abspath('.'))
113
113
            if str(e) == "could not open display":
114
114
                raise NoDisplayError
115
115
 
116
 
        from bzrlib.plugins.gtk.olive.checkout import CheckoutDialog
 
116
        from bzrlib.plugins.gtk.checkout import CheckoutDialog
117
117
 
118
118
        set_ui_factory()
119
119
        dialog = CheckoutDialog(os.path.abspath('.'))
137
137
            if str(e) == "could not open display":
138
138
                raise NoDisplayError
139
139
 
140
 
        from bzrlib.plugins.gtk.olive.push import PushDialog
 
140
        from push import PushDialog
141
141
 
142
142
        set_ui_factory()
143
143
        dialog = PushDialog(branch)
323
323
                raise NoDisplayError
324
324
 
325
325
        set_ui_factory()
326
 
        from olive.commit import CommitDialog
 
326
        from commit import CommitDialog
327
327
        from bzrlib.commit import Commit
328
328
        from bzrlib.errors import (BzrCommandError,
329
329
                                   NotBranchError,
364
364
    result = TestSuite()
365
365
    result.addTest(tests.test_suite())
366
366
    return result
367