~bzr/ubuntu/karmic/bzr-explorer/bzr-ppa

« back to all changes in this revision

Viewing changes to lib/explorer.py

  • Committer: Andrew Starr-Bochicchio
  • Date: 2010-06-14 19:20:24 UTC
  • mfrom: (311.1.174 1.0)
  • Revision ID: a.starr.b@gmail.com-20100614192024-mzq8es6oytb805bn
New upstream bugfix release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
    location as mod_location,
41
41
    location_set_browser,
42
42
    location_viewer,
 
43
    script_engine,
43
44
    switch_dialog,
44
45
    tool_dialogs,
45
46
    ui_explorer,
118
119
class QExplorerMainWindow(QBzrWindow):
119
120
 
120
121
    def __init__(self, parent=None, location_list=None, hat=None,
121
 
            desktop=None, dry_run=False):
 
122
            desktop=None, dry_run=False, _script=None):
122
123
        """Create a main window.
123
124
 
124
125
        :param location: path/URL to location to open or None.
130
131
          If None, an intelligent guess is made.
131
132
        :param dry_run: if True, just show commands that will be
132
133
          run without running them.
 
134
        :param _script: ID of an internal script to run. Do not use.
133
135
        """
134
136
        # Init the UI
135
137
        QBzrWindow.__init__(self, [], parent)
220
222
                self.open_saved_location(location)
221
223
        else:
222
224
            self.do_welcome()
 
225
        if _script:
 
226
            engine = script_engine.ScriptEngine()
 
227
            engine.run(_script, self)
223
228
 
224
229
    def _refresh_user_configuration(self):
225
230
        """Call this after editing bazaar.conf."""