~cmiller/ubuntu/quantal/deluge/fix-parameter-move-storage

« back to all changes in this revision

Viewing changes to deluge/ui/console/main.py

  • Committer: Bazaar Package Importer
  • Author(s): Cristian Greco
  • Date: 2009-12-24 00:57:59 UTC
  • mfrom: (4.1.9 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091224005759-ifkuzevkdqqx4jle
Tags: 1.2.0~rc5-1
* New upstream version.
  - fix startup with fresh configs. (Closes: #560384)
* debian/control: drop useless dependencies on dbus for deluge-gtk.
* fix_manifest_in.patch: dropped, file MANIFEST.in has been deleted by
  upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
141
141
    def __init__(self, args=None):
142
142
        component.Component.__init__(self, "ConsoleUI", 2)
143
143
 
 
144
        self.batch_write = False
 
145
 
144
146
        try:
145
147
            locale.setlocale(locale.LC_ALL, '')
146
148
            self.encoding = locale.getpreferredencoding()
183
185
        d.addCallback(on_connect)
184
186
 
185
187
        self.coreconfig = CoreConfig()
186
 
        if self.interactive:
 
188
        if self.interactive and not deluge.common.windows_check():
187
189
            # We use the curses.wrapper function to prevent the console from getting
188
190
            # messed up if an uncaught exception is experienced.
189
191
            import curses.wrapper
190
192
            curses.wrapper(self.run)
 
193
        elif self.interactive and deluge.common.windows_check():
 
194
            print "You cannot run the deluge-console in interactive mode in Windows.\
 
195
            Please use commands from the command line, eg: deluge-console config;help;exit"
191
196
        else:
192
197
            reactor.run()
193
198